]> git.pld-linux.org Git - packages/libplist.git/commitdiff
- fix building with python 3.8 auto/th/libplist-2.0.0-5
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 2 Nov 2019 20:50:36 +0000 (21:50 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 2 Nov 2019 20:50:36 +0000 (21:50 +0100)
- rel 5

libplist.spec
python-3.8.patch [new file with mode: 0644]

index 31c52ba2d255e11b1eee2b5d687f37a5f5c6ab9f..06bc29cee608e7768921078796757e3761ecf760 100644 (file)
@@ -11,12 +11,13 @@ Summary:    Library for manipulating Apple Property Lists
 Summary(pl.UTF-8):     Biblioteka do manipulowania Apple Property Lists
 Name:          libplist
 Version:       2.0.0
-Release:       4
+Release:       5
 License:       LGPL v2.1+
 Group:         Libraries
 # Source0Download: http://www.libimobiledevice.org/
 Source0:       http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
 # Source0-md5: 16fb70d869f66e23cbe140109e78b650
+Patch0:                python-3.8.patch
 URL:           http://www.libimobiledevice.org/
 BuildRequires: autoconf >= 2.64
 BuildRequires: automake
@@ -146,6 +147,7 @@ Plik nagłówkowy Cythona dla wiązania Pythona do biblioteki libplist.
 
 %prep
 %setup -q
+%patch0 -p1
 
 touch cython/*.py[xh]
 
@@ -171,6 +173,8 @@ cd ..
 topdir=$(pwd)
 install -d build-py3
 cd build-py3
+export PYTHON_EXTRA_LIBS=$(python3-config --libs --embed)
+export PYTHON_LDFLAGS=$(python3-config --libs --embed)
 ../%configure \
        PYTHON=%{__python3} \
        --disable-silent-rules
diff --git a/python-3.8.patch b/python-3.8.patch
new file mode 100644 (file)
index 0000000..19917d1
--- /dev/null
@@ -0,0 +1,16 @@
+--- libplist-2.0.0/m4/ac_python_devel.m4~      2015-01-31 20:18:32.000000000 +0100
++++ libplist-2.0.0/m4/ac_python_devel.m4       2019-11-02 21:47:11.479855891 +0100
+@@ -169,10 +169,10 @@
+       # Check for Python library path
+       #
+       AC_MSG_CHECKING([for Python library path])
+-      if type $PYTHON-config; then
+-              PYTHON_LDFLAGS=`$PYTHON-config --ldflags`
+-      fi
+       if test -z "$PYTHON_LDFLAGS"; then
++              if type $PYTHON-config; then
++                      PYTHON_LDFLAGS=`$PYTHON-config --ldflags`
++              fi
+               # (makes two attempts to ensure we've got a version number
+               # from the interpreter)
+               py_version=`$PYTHON -c "from distutils.sysconfig import *; \
This page took 0.17007 seconds and 4 git commands to generate.