diff --git a/libplist-0.16-fix-python-lib-path.patch b/libplist-0.16-fix-python-lib-path.patch new file mode 100644 index 0000000..9954719 --- /dev/null +++ b/libplist-0.16-fix-python-lib-path.patch @@ -0,0 +1,13 @@ +Index: libplist-0.16/swig/CMakeLists.txt +=================================================================== +--- libplist-0.16/swig/CMakeLists.txt ++++ libplist-0.16/swig/CMakeLists.txt 2009-10-29 09:53:16.000000000 +0100 +@@ -9,7 +9,7 @@ + SWIG_LINK_LIBRARIES( PList plist plist++ ${PYTHON_LIBRARIES} ) + + EXEC_PROGRAM("${PYTHON_EXECUTABLE}" +- ARGS "-c 'try:\n import distutils.sysconfig; print distutils.sysconfig.get_python_lib()\nexcept: pass\n'" ++ ARGS "-c 'try:\n import distutils.sysconfig; print distutils.sysconfig.get_python_lib(plat_specific=1)\nexcept: pass\n'" + OUTPUT_VARIABLE DISTUTILS_PYTHON_ILIBRARY_PATH + ) + diff --git a/libplist.spec b/libplist.spec index 25913ff..9dba0ea 100644 --- a/libplist.spec +++ b/libplist.spec @@ -2,7 +2,7 @@ Name: libplist Version: 0.16 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Library for manipulating Apple Binary and XML Property Lists Group: System Environment/Libraries @@ -85,6 +85,9 @@ rm -rf $RPM_BUILD_ROOT %{python_sitearch}/libplist %changelog +* Thu Oct 29 2009 Peter Robinson 0.16-3 +- Actually add patch for python + * Thu Oct 29 2009 Peter Robinson 0.16-2 - Add python patch and c++ bindings