1
0
mirror of https://github.com/lutris/lutris synced 2024-07-03 07:28:41 +00:00
lutris/lutris.spec

109 lines
3.1 KiB
RPMSpec
Raw Normal View History

2014-09-11 23:26:48 +00:00
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: lutris
2015-11-28 21:01:31 +00:00
Version: 0.3.7
Release: 2%{?dist}
2014-09-11 23:26:48 +00:00
Summary: Install and play any video game easily
License: GPLv3+
URL: http://lutris.net
Source0: http://lutris.net/releases/lutris_%{version}.tar.gz
BuildArch: noarch
2014-10-30 16:11:20 +00:00
# Common build dependencies
BuildRequires: desktop-file-utils
BuildRequires: python-devel
2014-10-30 16:11:20 +00:00
%if 0%{?fedora_version}
BuildRequires: pygobject3
2015-11-28 00:45:15 +00:00
Requires: pygobject3, PyYAML
2014-10-30 16:11:20 +00:00
%endif
%if 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: pygobject3
2015-11-28 00:45:15 +00:00
Requires: pygobject3, PyYAML
2014-10-30 16:11:20 +00:00
%endif
%if 0%{?suse_version}
BuildRequires: python-gobject
BuildRequires: update-desktop-files
# Needed to workaround "directories not owned by a package" issue
BuildRequires: hicolor-icon-theme
BuildRequires: polkit
Requires: python-gobject, python-gtk, python-PyYAML
2014-10-30 16:11:20 +00:00
%endif
2014-09-11 23:26:48 +00:00
%description
Lutris is a gaming platform for GNU/Linux. Its goal is to make
gaming on Linux as easy as possible by taking care of installing
and setting up the game for the user. The only thing you have to
do is play the game. It aims to support every game that is playable
on Linux.
2014-09-11 23:26:48 +00:00
%prep
%setup -q -n %{name}
2014-09-11 23:26:48 +00:00
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
2014-10-30 16:11:20 +00:00
#desktop icon
%if 0%{?suse_version}
%suse_update_desktop_file -r -i %{name} Network FileTransfer
2014-10-30 16:11:20 +00:00
%endif
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{name}.desktop
2014-10-30 16:11:20 +00:00
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%endif
2014-09-11 23:26:48 +00:00
%files
%dir %{_datadir}/glib-2.0
%dir %{_datadir}/glib-2.0/schemas
%dir %{_datadir}/icons
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%{_bindir}/lutris
2014-09-11 23:26:48 +00:00
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/apps.%{name}.gschema.xml
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/lutris/
2014-09-11 23:26:48 +00:00
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/*
%{python_sitelib}/%{name}-%{version}-py2.7.egg-info
%{python_sitelib}/lutris/
2014-09-11 23:26:48 +00:00
%changelog
* Sat Dec 12 2015 Rémi Verschelde <akien@mageia.org> - 0.3.7-2
- Spec file cleanup
* Fri Nov 27 2015 Mathieu Comandon <strycore@gmail.com> - 0.3.7-1
2015-11-28 21:01:31 +00:00
- Bump to version 0.3.7
2015-11-28 00:48:08 +00:00
2014-10-30 16:11:20 +00:00
* Thu Oct 30 2014 Mathieu Comandon <strycore@gmail.com> - 0.3.6-1
- Bump to version 0.3.6
- Add OpenSuse compatibility (contribution by @malkavi)
2014-09-11 23:26:48 +00:00
* Fri Sep 12 2014 Mathieu Comandon <strycore@gmail.com> - 0.3.5-1
- Bump version to 0.3.5
* Thu Aug 14 2014 Travis Nickles <nickles.travis@gmail.com> - 0.3.4-3
- Edited Requires to include pygobject3.
* Wed Jun 04 2014 Travis Nickles <nickles.travis@gmail.com> - 0.3.4-2
- Changed build and install step based on template generated by
rpmdev-newspec.
- Added Requires.
- Ensure package can be built using mock.
* Tue Jun 03 2014 Travis Nickles <nickles.travis@gmail.com> - 0.3.4-1
- Initial version of the package