2016-11-29 22:42:12 +00:00
|
|
|
%{!?__python3: %global __python3 /usr/bin/python3}
|
2016-10-15 05:19:04 +00:00
|
|
|
%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
2016-11-29 22:42:12 +00:00
|
|
|
%{!?py3_build: %global py3_build CFLAGS="%{optflags}" %{__python3} setup.py build}
|
|
|
|
%{!?py3_install: %global py3_install %{__python3} setup.py install --skip-build --root %{buildroot}}
|
2014-09-11 23:26:48 +00:00
|
|
|
|
|
|
|
Name: lutris
|
2017-04-09 23:39:42 +00:00
|
|
|
Version: 0.4.7.1
|
2015-12-12 14:34:46 +00:00
|
|
|
Release: 2%{?dist}
|
2014-09-11 23:26:48 +00:00
|
|
|
Summary: Install and play any video game easily
|
|
|
|
|
2015-12-13 21:48:03 +00:00
|
|
|
License: GPL-3.0+
|
2015-12-14 14:14:18 +00:00
|
|
|
Group: Amusements/Games/Other
|
2014-09-11 23:26:48 +00:00
|
|
|
URL: http://lutris.net
|
2016-03-06 22:57:33 +00:00
|
|
|
Source0: http://lutris.net/releases/lutris_%{version}.tar.xz
|
2014-09-11 23:26:48 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2014-10-30 16:11:20 +00:00
|
|
|
|
2015-12-12 14:34:46 +00:00
|
|
|
# Common build dependencies
|
|
|
|
BuildRequires: desktop-file-utils
|
2016-10-15 04:08:04 +00:00
|
|
|
BuildRequires: python3-devel
|
2014-10-30 16:11:20 +00:00
|
|
|
|
2015-12-12 14:34:46 +00:00
|
|
|
%if 0%{?fedora_version}
|
2016-11-29 22:42:12 +00:00
|
|
|
BuildRequires: python3-gobject, python3-wheel, python3-setuptools, python3-gobject
|
2017-04-14 22:40:13 +00:00
|
|
|
Requires: python3-gobject, python3-PyYAML, cabextract
|
2014-10-30 16:11:20 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?rhel_version} || 0%{?centos_version}
|
2016-11-29 22:42:12 +00:00
|
|
|
BuildRequires: python3-gobject
|
2017-04-14 22:40:13 +00:00
|
|
|
Requires: python3-gobject, python3-PyYAML, cabextract
|
2014-10-30 16:11:20 +00:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
2016-10-15 07:23:14 +00:00
|
|
|
BuildRequires: python3-gobject
|
2015-12-12 14:34:46 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2015-12-13 21:46:39 +00:00
|
|
|
# Needed to workaround "directories not owned by a package" issue
|
|
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
BuildRequires: polkit
|
2016-10-16 22:48:23 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2017-04-14 22:40:13 +00:00
|
|
|
Requires: python3-gobject, python3-PyYAML, cabextract
|
2014-10-30 16:11:20 +00:00
|
|
|
%endif
|
2015-12-14 14:14:18 +00:00
|
|
|
%if 0%{?fedora_version} || 0%{?suse_version}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
|
|
|
|
|
|
|
#!BuildIgnore: rpmlint-mini
|
2014-10-30 16:11:20 +00:00
|
|
|
|
|
|
|
|
2014-09-11 23:26:48 +00:00
|
|
|
%description
|
2015-12-12 14:40:36 +00:00
|
|
|
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
|
2015-12-12 14:40:36 +00:00
|
|
|
%setup -q -n %{name}
|
2014-09-11 23:26:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2016-11-29 22:42:12 +00:00
|
|
|
%py3_build
|
2014-09-11 23:26:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2016-11-29 22:42:12 +00:00
|
|
|
%py3_install
|
2015-12-14 14:14:18 +00:00
|
|
|
%if 0%{?fedora_version} || 0%{?suse_version}
|
2016-10-15 08:13:47 +00:00
|
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
2015-12-14 14:14:18 +00:00
|
|
|
%endif
|
2014-09-11 23:26:48 +00:00
|
|
|
|
2014-10-30 16:11:20 +00:00
|
|
|
#desktop icon
|
|
|
|
%if 0%{?suse_version}
|
2015-12-13 21:34:03 +00:00
|
|
|
%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}
|
2016-10-15 08:13:47 +00:00
|
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications share/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
|
|
|
|
2015-12-14 14:37:20 +00:00
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
%post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%desktop_database_post
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
%postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%endif
|
|
|
|
|
2014-09-11 23:26:48 +00:00
|
|
|
%files
|
2015-12-13 21:51:56 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{name}/
|
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}/pixmaps/%{name}.png
|
|
|
|
%{_datadir}/polkit-1/actions/*
|
2016-10-17 20:16:42 +00:00
|
|
|
%{python3_sitelib}/%{name}-*.egg-info
|
2016-10-15 05:19:04 +00:00
|
|
|
%{python3_sitelib}/%{name}/
|
2014-09-11 23:26:48 +00:00
|
|
|
|
2016-11-03 20:23:56 +00:00
|
|
|
%dir
|
|
|
|
%{_datadir}/appdata/
|
2014-09-11 23:26:48 +00:00
|
|
|
|
|
|
|
%changelog
|
2016-11-29 22:42:12 +00:00
|
|
|
* Tue Nov 29 2016 Mathieu Comandon <strycore@gmail.com> - 0.4.3
|
|
|
|
- Ensure correct Python3 dependencies
|
|
|
|
- Set up Python macros for building (Thanks to Pharaoh_Atem on #opensuse-buildservice)
|
|
|
|
|
2016-10-15 08:13:47 +00:00
|
|
|
* Sat Oct 15 2016 Mathieu Comandon <strycore@gmail.com> - 0.4.0
|
|
|
|
- Update to Python 3
|
|
|
|
- Bump version to 0.4.0
|
|
|
|
|
2015-12-12 14:34:46 +00:00
|
|
|
* Sat Dec 12 2015 Rémi Verschelde <akien@mageia.org> - 0.3.7-2
|
2015-12-13 21:51:56 +00:00
|
|
|
- Remove ownership of system directories
|
2015-12-12 14:34:46 +00:00
|
|
|
- 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
|