Sisyphus repository
Last update: 7 december 2022 | SRPMs: 17972 | Visits: 25528850
en ru br
ALT Linux repos
S:0.5.12-alt1

Group :: Games/Other
RPM: lutris

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_enable meson

%define appid net.lutris.Lutris

Name: lutris
Version: 0.5.12
Release: alt1
Summary: Manager for game installation and execution
License: GPL-2.0 and GPL-2.0+ and GPL-3.0+ and CC0-1.0 and LGPL-2.1+ and CC-BY-NC-SA-2.0 and CC-BY-SA-3.0
Group: Games/Other
Url: https://lutris.net

Source: https://lutris.net/releases/lutris_%version.tar.xz
Patch: lutris-0.5.11-alt-python3-pixbuf-path.patch

Provides: python3(lutris.util.ubisoft)
Conflicts: lutris-standalone

BuildRequires: rpm-build-python3
%if_enabled meson
BuildPreReq: meson
%else
BuildRequires: python3-module-setuptools python3-module-wheel
%endif
# Automatically added by buildreq on Fri Aug 30 2019 (-bi)
# optimized out: bash4 bashrc kmod perl python-base python-modules python3 python3-base python3-dev python3-module-pkg_resources rpm-build-python3 sh4 tzdata xz
#BuildRequires: eject fuse python3-module-setuptools rpm-build-gir unzip xlsfonts
Requires: python3-module-magic python3-module-pygobject3 python3-module-yaml python3-module-requests python3-module-pylint python3-module-distro python3-module-setproctitle python3-module-Pillow libgdk-pixbuf-gir libgnome-desktop3-gir libwebkit2gtk-gir libnotify-gir libgtk+3-gir
Requires: python3-module-evdev
# Recommends: psmisc p7zip curl cabextract xrandr glibc-gconv-modules winetricks

BuildArch: noarch

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

Recommends for install: psmisc p7zip curl cabextract xrandr glibc-gconv-modules winetricks

%prep
%setup -n %name
%patch -p1
# hack for missing GdkPixbuf.InterpType.NEAREST in ALT
sed -i 's|GdkPixbuf.InterpType.NEAREST|1|' \
   lutris/gui/widgets/utils.py

%build
%if_enabled meson
%meson
%meson_build
%else
%pyproject_build
%endif

%install
%if_enabled meson
%meson_install
%else
%pyproject_install
%endif
chmod +x %buildroot%_datadir/lutris/bin/lutris-wrapper
%find_lang %name

%files -f %name.lang
%doc README.rst CONTRIBUTING.md AUTHORS
%doc LICENSE
%_bindir/%name
%_datadir/%name/
%_desktopdir/%appid.desktop
%_iconsdir/hicolor/scalable/apps/%name.svg
%_iconsdir/hicolor/??x??/apps/%name.png
%_iconsdir/hicolor/???x???/apps/%name.png
%python3_sitelibdir/%{name}*
%_datadir/metainfo/%appid.metainfo.xml
%_man1dir/%name.1.xz

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin