- Greatly simplify 0001-Fix-detection-of-Python-3.patch to use pkg-config so that it also works with Leap 15.3 - Fix up parts of the specfile so python3 is used in Leap 15.3 OBS-URL: https://build.opensuse.org/request/show/886149 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lash?expand=0&rev=26
25 lines
942 B
Diff
25 lines
942 B
Diff
Simpler python detection patch Simon Lees sflees@suse.de
|
|
|
|
---
|
|
acinclude.m4 | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
Index: lash-0.5.4/acinclude.m4
|
|
===================================================================
|
|
--- lash-0.5.4.orig/acinclude.m4
|
|
+++ lash-0.5.4/acinclude.m4
|
|
@@ -173,12 +173,7 @@ AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
|
|
[AC_REQUIRE([AM_PATH_PYTHON])
|
|
AC_MSG_CHECKING(for headers required to compile python extensions)
|
|
dnl deduce PYTHON_INCLUDES
|
|
-py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
|
|
-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
|
|
-PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
|
|
-if test "$py_prefix" != "$py_exec_prefix"; then
|
|
- PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
|
|
-fi
|
|
+PYTHON_INCLUDES=`pkg-config --cflags python3`
|
|
AC_SUBST(PYTHON_INCLUDES)
|
|
dnl check if the headers exist:
|
|
save_CPPFLAGS="$CPPFLAGS"
|