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
%prep
%setup -q
+%patch0 -p1
touch cython/*.py[xh]
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
--- /dev/null
+--- 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 *; \