Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package PlayOnLinux for openSUSE:Factory checked in at 2025-06-27 23:02:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/PlayOnLinux (Old) and /work/SRC/openSUSE:Factory/.PlayOnLinux.new.7067 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "PlayOnLinux" Fri Jun 27 23:02:20 2025 rev:4 rq:1288833 version:4.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/PlayOnLinux/PlayOnLinux.changes 2024-02-26 19:47:01.933468996 +0100 +++ /work/SRC/openSUSE:Factory/.PlayOnLinux.new.7067/PlayOnLinux.changes 2025-06-27 23:09:30.929658493 +0200 @@ -1,0 +2,7 @@ +Fri Jun 27 11:15:04 UTC 2025 - ecsos <ec...@opensuse.org> + +- Fix error "ModuleNotFoundError: No module named 'pipes'". + Modul pipes was removed in python.3.13. + - Add PlayOnLinux-python-pipes.patch. + +------------------------------------------------------------------- @@ -595,2 +601,0 @@ - -------------------------------------------------------------------- New: ---- PlayOnLinux-python-pipes.patch ----------(New B)---------- New: Modul pipes was removed in python.3.13. - Add PlayOnLinux-python-pipes.patch. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ PlayOnLinux.spec ++++++ --- /var/tmp/diff_new_pack.yx9d44/_old 2025-06-27 23:09:31.517682898 +0200 +++ /var/tmp/diff_new_pack.yx9d44/_new 2025-06-27 23:09:31.517682898 +0200 @@ -1,7 +1,7 @@ # # spec file for package PlayOnLinux # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,12 @@ # +%if 0%{?suse_version} >= 1600 +%define pythons python311 +%else +%define pythons python3 +%endif + %define _sname POL-POM-4 %define _sversion 4.4 %define _name playonlinux @@ -31,6 +37,8 @@ Source1: playonlinux.sh # PATCH-FIX-OPENSUSE PlayOnLinux-desktop.patch Patch0: %{name}-desktop.patch +# PATCH-FIX-OPENSUSE PlayOnLinux-python-pipes.patch: Fix error "ModuleNotFoundError: No module named 'pipes'", which was removed in python3.13. +Patch1: %{name}-python-pipes.patch # PATCH-FIX-OPENSUSE PlayOnLinux-fix_media_dir.patch: Fix variable MEDIA_DIR to correct location. Patch9: %{name}-fix_media_dir.patch # PATCH-FIX-OPENSUSE PlayOnLinux-https.patch: Fix unencrypted connection to www.playonlinux.com @@ -38,16 +46,16 @@ BuildRequires: fdupes BuildRequires: update-desktop-files # Not need for build. Only to test if packages are exists. -BuildRequires: python3 -BuildRequires: python3-natsort -BuildRequires: python3-wxPython +BuildRequires: %{python_module base < 3.13} +BuildRequires: %{python_module natsort} +BuildRequires: %{python_module wxPython} +Requires: %{python_flavor}-base < 3.13 +Requires: %{python_flavor}-natsort +Requires: %{python_flavor}-wxPython Requires: ImageMagick Requires: gettext Requires: icoutils Requires: jq -Requires: python3 -Requires: python3-natsort -Requires: python3-wxPython Requires: unzip Requires: wget Requires: wine @@ -70,10 +78,16 @@ %prep %setup -q -n %{_sname}-%{_sversion} %patch -P 0 -p1 +%patch -P 1 -p1 %patch -P 9 -p1 %patch -P 10 -p1 # rpmlint -find . -type f -exec sed -i -e 's|\/usr\/bin\/env python|\/usr\/bin\/python|g' {} \; +%if 0%{?suse_version} >= 1600 +find . -type f -exec sed -i -e 's|\/usr\/bin\/python3|\/usr\/bin\/python%{python_bin_suffix}|g' {} \; +find . -type f -exec sed -i -e 's|\/usr\/bin\/env python|\/usr\/bin\/python%{python_bin_suffix}|g' {} \; +%else +find . -type f -exec sed -i -e 's|\/usr\/bin\/env python|\/usr\/bin\/python3|g' {} \; +%endif find . -type f -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|g' {} \; %build ++++++ PlayOnLinux-python-pipes.patch ++++++ diff -Pdpru POL-POM-4-4.4.orig/bash/find_python POL-POM-4-4.4/bash/find_python --- POL-POM-4-4.4.orig/bash/find_python 2020-05-17 16:05:33.000000000 +0200 +++ POL-POM-4-4.4/bash/find_python 2025-06-27 13:40:46.301064997 +0200 @@ -13,6 +13,7 @@ search_python () { POL_PYTHON="" while true; do # list of interpreter names to try, in order + next_python "python3.11" next_python "python3" next_python "python" next_python "python2.7"