]> git.pld-linux.org Git - packages/spice-space.git/commitdiff
- switch to python 3.x master
authorMarcin Krol <hawk@tld-linux.org>
Sat, 22 Jul 2023 14:26:03 +0000 (16:26 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sat, 22 Jul 2023 14:26:03 +0000 (16:26 +0200)
python3.patch [new file with mode: 0644]
spice-space.spec

diff --git a/python3.patch b/python3.patch
new file mode 100644 (file)
index 0000000..c0fcf77
--- /dev/null
@@ -0,0 +1,27 @@
+diff -ur spice-0.15.2.orig/subprojects/spice-common/m4/spice-deps.m4 spice-0.15.2/subprojects/spice-common/m4/spice-deps.m4
+--- spice-0.15.2.orig/subprojects/spice-common/m4/spice-deps.m4        2023-05-12 10:37:16.000000000 +0200
++++ spice-0.15.2/subprojects/spice-common/m4/spice-deps.m4     2023-07-22 16:21:54.669050493 +0200
+@@ -152,22 +152,14 @@
+                        [enable_python_checks="no"])
+     if test "x$enable_python_checks" != "xno"; then
+         AS_IF([test -n "$PYTHON"], # already set required PYTHON version
+-              [AM_PATH_PYTHON
+-               AX_PYTHON_MODULE([six], [1])
+-               AX_PYTHON_MODULE([pyparsing], [1])],
+               [PYTHON=python3
+                AX_PYTHON_MODULE([six])
+                AX_PYTHON_MODULE([pyparsing])
+                test "$HAVE_PYMOD_SIX" = "yes" && test "$HAVE_PYMOD_PYPARSING" = "yes"],
+               [AM_PATH_PYTHON([3])],
+-              [PYTHON=python2
+-               AX_PYTHON_MODULE([six])
+-               AX_PYTHON_MODULE([pyparsing])
+-               test "$HAVE_PYMOD_SIX" = "yes" && test "$HAVE_PYMOD_PYPARSING" = "yes"],
+-              [AM_PATH_PYTHON([2])],
+               [AC_MSG_ERROR([Python modules six and pyparsing are required])])
+     else
+-        AM_PATH_PYTHON
++        AM_PATH_PYTHON([3])
+     fi
+ ])
index 99224cc3c526cb8d721949f970240850aaaf0cc3..e650853fad6ddfcfe72e996d1dcbcd19f7ac79d3 100644 (file)
@@ -14,6 +14,7 @@ License:      LGPL v2.1+
 Group:         Applications/Emulators
 Source0:       https://www.spice-space.org/download/releases/spice-server/spice-%{version}.tar.bz2
 # Source0-md5: 1de1e9157a1e2396884017978e7cf086
+Patch0:                python3.patch
 URL:           https://www.spice-space.org/
 %{?with_opengl:BuildRequires:  OpenGL-GLU-devel}
 %{?with_opengl:BuildRequires:  OpenGL-devel}
@@ -38,9 +39,9 @@ BuildRequires:        opus-devel >= 1.0.0
 BuildRequires: orc-devel >= 0.4
 BuildRequires: pixman-devel >= 0.17.7
 BuildRequires: pkgconfig
-BuildRequires: python >= 2
-BuildRequires: python-pyparsing
-BuildRequires: python-six
+BuildRequires: python3
+BuildRequires: python3-pyparsing
+BuildRequires: python3-six
 BuildRequires: rpmbuild(macros) >= 1.527
 BuildRequires: spice-protocol >= 0.14.3
 BuildRequires: xorg-lib-libX11-devel
@@ -115,6 +116,7 @@ Statyczna biblioteka serwera SPICE.
 
 %prep
 %setup -q -n spice-%{version}
+%patch0 -p1
 
 %build
 %{__libtoolize}
This page took 1.209388 seconds and 4 git commands to generate.