File lutris.spec of Package lutris

#
# spec file for package lutris
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           lutris
Version:        0.4.18
Release:        0
Summary:        Install and play any video game easily
License:        GPL-3.0+
Group:          Amusements/Games/Other
Url:            http://lutris.net
Source:         http://lutris.net/releases/lutris_%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  polkit
BuildRequires:  python3-devel
BuildRequires:  python3-gobject
BuildRequires:  python3-setuptools
BuildRequires:  update-desktop-files
# https://bugzilla.suse.com/show_bug.cgi?id=1022470
#!BuildIgnore:  rpmlint-mini
Requires:       python3-PyYAML
Requires:       python3-gobject
Requires:       python3-gobject-Gdk
BuildArch:      noarch

%description
Lutris allows you to gather and manage (install, configure and launch)
all your games acquired from any source, in a single interface.
This includes for example your Steam or Desura games, Windows games (wine)
or emulated console games and browser games.

%prep
%setup -q -n %{name}

%build
CFLAGS="%{optflags}" python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%suse_update_desktop_file -r -i %{name} Network FileTransfer
%fdupes %{buildroot}%{_prefix}

%post
%icon_theme_cache_post
%desktop_database_post

%postun
%icon_theme_cache_postun
%desktop_database_postun

%files
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/polkit-1/actions/*
%{python3_sitelib}/%{name}-*.egg-info
%{python3_sitelib}/%{name}/
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{name}.appdata.xml

%changelog
openSUSE Build Service is sponsored by