--- /dev/null
+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
+ ])
+
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}
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
%prep
%setup -q -n spice-%{version}
+%patch0 -p1
%build
%{__libtoolize}