mirror of
https://github.com/lutris/lutris
synced 2024-09-05 23:46:21 +00:00
132 lines
3.7 KiB
RPMSpec
132 lines
3.7 KiB
RPMSpec
%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
# openSUSE does not define this, so define for compatibility
|
|
%{!?python3: %define __python3 python3}
|
|
|
|
Name: lutris
|
|
Version: 0.4.1
|
|
Release: 2%{?dist}
|
|
Summary: Install and play any video game easily
|
|
|
|
License: GPL-3.0+
|
|
Group: Amusements/Games/Other
|
|
URL: http://lutris.net
|
|
Source0: http://lutris.net/releases/lutris_%{version}.tar.xz
|
|
|
|
BuildArch: noarch
|
|
|
|
# Common build dependencies
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: python3-devel
|
|
|
|
%if 0%{?fedora_version}
|
|
BuildRequires: pygobject3, python3-wheel, python3-setuptools, python3-gobject
|
|
Requires: pygobject3, PyYAML, pyxdg, dbus-python
|
|
%endif
|
|
%if 0%{?rhel_version} || 0%{?centos_version}
|
|
BuildRequires: pygobject3
|
|
Requires: pygobject3, PyYAML, pyxdg, dbus-python
|
|
%endif
|
|
%if 0%{?suse_version}
|
|
BuildRequires: python3-gobject
|
|
BuildRequires: update-desktop-files
|
|
# Needed to workaround "directories not owned by a package" issue
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: polkit
|
|
BuildRequires: python3-setuptools
|
|
Requires: python3-gobject, python3-PyYAML, python3-xdg, dbus-1-python3
|
|
%endif
|
|
%if 0%{?fedora_version} || 0%{?suse_version}
|
|
BuildRequires: fdupes
|
|
%endif
|
|
|
|
#!BuildIgnore: rpmlint-mini
|
|
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n %{name}
|
|
|
|
|
|
%build
|
|
%{__python3} setup.py build
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
%if 0%{?fedora_version} || 0%{?suse_version}
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
|
%endif
|
|
|
|
#desktop icon
|
|
%if 0%{?suse_version}
|
|
%suse_update_desktop_file -r -i %{name} Network FileTransfer
|
|
%endif
|
|
|
|
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications share/applications/%{name}.desktop
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
%endif
|
|
|
|
%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
|
|
|
|
%files
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/%{name}/
|
|
%{_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/*
|
|
%{python3_sitelib}/%{name}-*.egg-info
|
|
%{python3_sitelib}/%{name}/
|
|
|
|
|
|
%changelog
|
|
* Sat Oct 15 2016 Mathieu Comandon <strycore@gmail.com> - 0.4.0
|
|
- Update to Python 3
|
|
- Bump version to 0.4.0
|
|
|
|
* Sat Dec 12 2015 Rémi Verschelde <akien@mageia.org> - 0.3.7-2
|
|
- Remove ownership of system directories
|
|
- Spec file cleanup
|
|
|
|
* Fri Nov 27 2015 Mathieu Comandon <strycore@gmail.com> - 0.3.7-1
|
|
- Bump to version 0.3.7
|
|
|
|
* 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)
|
|
|
|
* 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
|