Add Python 3.8 compatibility
This commit is contained in:
parent
0755572edb
commit
19b9c66a8b
@ -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 <cstratak@redhat.com> - 2.0.0-13
|
||||
- Add Python 3.8 compatibility
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
|
13
python38-compat.patch
Normal file
13
python38-compat.patch
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user