Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 1d514de360 | |||
| 64f96a0fbc |
11
PlayOnLinux-python-pipes.patch
Normal file
11
PlayOnLinux-python-pipes.patch
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
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"
|
||||||
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 27 11:15:04 UTC 2025 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Fix error "ModuleNotFoundError: No module named 'pipes'".
|
||||||
|
Modul pipes was removed in python.3.13.
|
||||||
|
- Add PlayOnLinux-python-pipes.patch.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 26 09:12:20 UTC 2024 - ecsos <ecsos@opensuse.org>
|
Mon Feb 26 09:12:20 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
@@ -592,5 +599,3 @@ Thu Jan 24 00:00:00 UTC 2008 - andrea@links2linux.de
|
|||||||
- added fixed italian translation
|
- added fixed italian translation
|
||||||
- added patch to fix .desktop file with suse standards
|
- added patch to fix .desktop file with suse standards
|
||||||
- created package PlayOnLinux-DosBox-Support in this spec
|
- created package PlayOnLinux-DosBox-Support in this spec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package PlayOnLinux
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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 _sname POL-POM-4
|
||||||
%define _sversion 4.4
|
%define _sversion 4.4
|
||||||
%define _name playonlinux
|
%define _name playonlinux
|
||||||
@@ -31,6 +37,8 @@ Source: https://github.com/PlayOnLinux/POL-POM-4/archive/%{_sversion}/%{
|
|||||||
Source1: playonlinux.sh
|
Source1: playonlinux.sh
|
||||||
# PATCH-FIX-OPENSUSE PlayOnLinux-desktop.patch
|
# PATCH-FIX-OPENSUSE PlayOnLinux-desktop.patch
|
||||||
Patch0: %{name}-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.
|
# PATCH-FIX-OPENSUSE PlayOnLinux-fix_media_dir.patch: Fix variable MEDIA_DIR to correct location.
|
||||||
Patch9: %{name}-fix_media_dir.patch
|
Patch9: %{name}-fix_media_dir.patch
|
||||||
# PATCH-FIX-OPENSUSE PlayOnLinux-https.patch: Fix unencrypted connection to www.playonlinux.com
|
# PATCH-FIX-OPENSUSE PlayOnLinux-https.patch: Fix unencrypted connection to www.playonlinux.com
|
||||||
@@ -38,16 +46,16 @@ Patch10: %{name}-https.patch
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
# Not need for build. Only to test if packages are exists.
|
# Not need for build. Only to test if packages are exists.
|
||||||
BuildRequires: python3
|
BuildRequires: %{python_module base < 3.13}
|
||||||
BuildRequires: python3-natsort
|
BuildRequires: %{python_module natsort}
|
||||||
BuildRequires: python3-wxPython
|
BuildRequires: %{python_module wxPython}
|
||||||
|
Requires: %{python_flavor}-base < 3.13
|
||||||
|
Requires: %{python_flavor}-natsort
|
||||||
|
Requires: %{python_flavor}-wxPython
|
||||||
Requires: ImageMagick
|
Requires: ImageMagick
|
||||||
Requires: gettext
|
Requires: gettext
|
||||||
Requires: icoutils
|
Requires: icoutils
|
||||||
Requires: jq
|
Requires: jq
|
||||||
Requires: python3
|
|
||||||
Requires: python3-natsort
|
|
||||||
Requires: python3-wxPython
|
|
||||||
Requires: unzip
|
Requires: unzip
|
||||||
Requires: wget
|
Requires: wget
|
||||||
Requires: wine
|
Requires: wine
|
||||||
@@ -70,10 +78,16 @@ PlayOnLinux brings a cost-free, accessible and efficient solution to this proble
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{_sname}-%{_sversion}
|
%setup -q -n %{_sname}-%{_sversion}
|
||||||
%patch -P 0 -p1
|
%patch -P 0 -p1
|
||||||
|
%patch -P 1 -p1
|
||||||
%patch -P 9 -p1
|
%patch -P 9 -p1
|
||||||
%patch -P 10 -p1
|
%patch -P 10 -p1
|
||||||
# rpmlint
|
# 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' {} \;
|
find . -type f -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|g' {} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|||||||
Reference in New Issue
Block a user