diff --git a/libplist.spec b/libplist.spec index 272e481..e6f2514 100644 --- a/libplist.spec +++ b/libplist.spec @@ -2,13 +2,17 @@ Name: libplist Version: 2.0.0 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Library for manipulating Apple Binary and XML Property Lists License: LGPLv2+ URL: http://www.libimobiledevice.org/ Source0: http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2 +# Add Python 3.8 compatibility +# Reported upstream: https://github.com/libimobiledevice/libplist/issues/137 +Patch0: python38-compat.patch + BuildRequires: chrpath BuildRequires: gcc gcc-c++ BuildRequires: python3-Cython @@ -46,6 +50,9 @@ Requires: python3 %prep %setup -q + +%patch0 -p1 + ACLOCAL="aclocal -I m4" autoreconf -f -i %build @@ -88,6 +95,9 @@ make check %{python3_sitearch}/plist* %changelog +* Sun Jun 09 2019 Charalampos Stratakis - 2.0.0-13 +- Add Python 3.8 compatibility + * Fri Feb 01 2019 Fedora Release Engineering - 2.0.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/python38-compat.patch b/python38-compat.patch new file mode 100644 index 0000000..fee8350 --- /dev/null +++ b/python38-compat.patch @@ -0,0 +1,13 @@ +diff --git a/m4/ac_python_devel.m4 b/m4/ac_python_devel.m4 +index 545c607..cbeda8a 100644 +--- a/m4/ac_python_devel.m4 ++++ b/m4/ac_python_devel.m4 +@@ -170,7 +170,7 @@ $ac_distutils_result]) + # + AC_MSG_CHECKING([for Python library path]) + if type $PYTHON-config; then +- PYTHON_LDFLAGS=`$PYTHON-config --ldflags` ++ PYTHON_LDFLAGS=`$PYTHON-config --libs --embed` || PYTHON_LDFLAGS=`$PYTHON-config --libs` + fi + if test -z "$PYTHON_LDFLAGS"; then + # (makes two attempts to ensure we've got a version number