Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lutris for openSUSE:Factory checked in at 2024-06-03 17:43:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lutris (Old) and /work/SRC/openSUSE:Factory/.lutris.new.24587 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lutris" Mon Jun 3 17:43:11 2024 rev:32 rq:1178122 version:0.5.17 Changes: -------- --- /work/SRC/openSUSE:Factory/lutris/lutris.changes 2024-04-11 19:41:36.146757927 +0200 +++ /work/SRC/openSUSE:Factory/.lutris.new.24587/lutris.changes 2024-06-03 17:43:16.346611864 +0200 @@ -1,0 +2,8 @@ +Sat May 4 06:37:10 UTC 2024 - Richard Rahl <rra...@disroot.org> + +- switch to meson, so we can have translations +- fixing packaging issues with Leap 15.6 (old packaging had Requires + which were not in Leap) +- remove packaging for Leap < 1330 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lutris.spec ++++++ --- /var/tmp/diff_new_pack.vRBuoG/_old 2024-06-03 17:43:16.866631028 +0200 +++ /var/tmp/diff_new_pack.vRBuoG/_new 2024-06-03 17:43:16.870631176 +0200 @@ -16,15 +16,10 @@ # -%global appid net.lutris.Lutris -%if 0%{?suse_version} > 1500 -%define _py 3 -%define _pyb 3 -%else %{?sle15_python_module_pythons} %define _py 311 %define _pyb 3.11 -%endif +%define appid net.lutris.Lutris Name: lutris Version: 0.5.17 Release: 0 @@ -32,43 +27,79 @@ License: GPL-3.0-or-later URL: https://lutris.net Source0: https://lutris.net/releases/lutris_%{version}.tar.xz -BuildRequires: %{python_module devel >= 3.7} -BuildRequires: %{python_module gobject} -BuildRequires: %{python_module setuptools} +%if 0%{?suse_version} >= 1600 BuildRequires: fdupes +BuildRequires: gettext-tools BuildRequires: gobject-introspection BuildRequires: hicolor-icon-theme +BuildRequires: meson BuildRequires: pkgconfig +BuildRequires: python3-devel >= 3.7 +BuildRequires: python3-gobject +BuildRequires: python3-setuptools +BuildRequires: update-desktop-files +Requires: cabextract +Requires: curl +Requires: fluid-soundfont-gm +Requires: p7zip +Requires: psmisc +Requires: python3-Pillow +Requires: python3-PyYAML +Requires: python3-certifi +Requires: python3-dbus-python +Requires: python3-distro +Requires: python3-protobuf +# controller support +Requires: python3-evdev +Requires: python3-gobject +Requires: python3-gobject-Gdk +Requires: python3-lxml +Requires: python3-requests +%if %{with discord} +Requires: python3-pypresence +%endif +%if %{with moddb} +Requires: python3-moddb +%endif +%else +BuildRequires: fdupes +BuildRequires: gettext-tools +BuildRequires: gobject-introspection +BuildRequires: hicolor-icon-theme +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: python%{_py}-devel +BuildRequires: python%{_py}-gobject +BuildRequires: python%{_py}-setuptools BuildRequires: update-desktop-files Requires: cabextract -# Requires: curl Requires: fluid-soundfont-gm Requires: p7zip Requires: psmisc -Requires: python%{_py}-certifi -Requires: python%{_py}-distro Requires: python%{_py}-Pillow Requires: python%{_py}-PyYAML +Requires: python%{_py}-certifi Requires: python%{_py}-dbus-python -Requires: python%{_py}-protobuf -# controller support -Requires: python%{_py}-evdev -Requires: python%{_py}-gobject -Requires: python%{_py}-gobject-Gdk +Requires: python%{_py}-distro Requires: python%{_py}-lxml +Requires: python%{_py}-protobuf Requires: python%{_py}-requests +# controller support +# we can't have controller support in Leap as python311-evdev is missing %if %{with discord} Requires: python%{_py}-pypresence %endif %if %{with moddb} Requires: python%{_py}-moddb %endif +%endif Requires: xrandr # boo#1213440 Recommends: ca-certificates-steamtricks Recommends: winetricks BuildArch: noarch +%lang_package %description Lutris allows to gather and manage (install, configure and launch) @@ -77,46 +108,45 @@ or emulated console games and browser games. %prep -%autosetup -p1 -n %{name} -sed -i "s|!%{_bindir}/env python3|!%{_bindir}/python%{_pyb}|" share/lutris/bin/lutris-wrapper +%autosetup -n %{name} %build -%if 0%{?suse_version} > 1500 -%py3_build +%if 0%{?suse_version} >= 1600 +%meson +%meson_build %else %python_build %endif %install -%if 0%{?suse_version} > 1500 -%py3_install +%if 0%{?suse_version} >= 1600 +%meson_install +%find_lang %{name} +%python3_fix_shebang_path %{buildroot}%{_bindir}/* +%python3_fix_shebang_path %{buildroot}%{_datadir}/%{name}/bin/* %else %python_install +sed -i "s|!%{_bindir}/env python3|!%{_bindir}/python%{_pyb}|" \ + %{buildroot}%{_datadir}/%{name}/bin/%{name}-wrapper %endif -%fdupes %{buildroot}%{_prefix} - -%if 0%{?suse_version} < 1330 -%post -%icon_theme_cache_post -%desktop_database_post - -%postun -%icon_theme_cache_postun -%desktop_database_postun -%endif +%fdupes %{buildroot} %files %doc README.rst CONTRIBUTING.md AUTHORS %license LICENSE %{_bindir}/%{name} -%{_mandir}/man1/%{name}.1%{?ext_man} -%{_datadir}/%{name}/ +%{_mandir}/man?/%{name}.?%{?ext_man} +%{_datadir}/%{name} %{_datadir}/applications/%{appid}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_datadir}/icons/hicolor/??x??/apps/%{name}.png %{_datadir}/icons/hicolor/???x???/apps/%{name}.png -%{python_sitelib}/%{name}-*.egg-info -%{python_sitelib}/%{name}/ -%dir %{_datadir}/metainfo/ +%{python_sitelib}/%{name} %{_datadir}/metainfo/%{appid}.metainfo.xml +%if 0%{?suse_version} >= 1600 +%files lang -f %{name}.lang +%else +%{python_sitelib}/%{name}-*.egg-info +%endif +