[packages/libplist] package plist.pxd for cython

glen glen at pld-linux.org
Thu Sep 6 19:09:44 CEST 2012


commit d92842ba6807a917352d032c55c0ef5fe98686c1
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Sep 6 20:06:32 2012 +0300

    package plist.pxd for cython
    
    or we get error:
    $ python -c "import imobilesync"
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/share/python2.7/site-packages/imobilesync/__init__.py", line 1, in <module>
      File "/usr/share/python2.7/site-packages/imobilesync/data/__init__.py", line 1, in <module>
      File "/usr/share/python2.7/site-packages/imobilesync/data/base.py", line 2, in <module>
      File "/usr/share/python2.7/site-packages/imobilesync/sync.py", line 1, in <module>
      File "plist.pxd", line 6, in init imobiledevice (imobiledevice.c:29961)
    ValueError: plist.Node has the wrong size, try recompiling

 libplist.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/libplist.spec b/libplist.spec
index 5e2c776..b435a0a 100644
--- a/libplist.spec
+++ b/libplist.spec
@@ -7,7 +7,7 @@ Summary:	Library for manipulating Apple Property Lists
 Summary(pl.UTF-8):	Biblioteka do manipulowania Apple Property Lists
 Name:		libplist
 Version:	1.8
-Release:	3
+Release:	4
 License:	LGPL v2+
 Group:		Libraries
 #Source0-Download: http://www.libimobiledevice.org/
@@ -87,6 +87,7 @@ rm -rf $RPM_BUILD_ROOT
 # cmake sucks, fix perms
 %if %{with cython}
 chmod a+x $RPM_BUILD_ROOT%{py_sitedir}/plist.so
+cp -p cython/plist.pxd $RPM_BUILD_ROOT%{py_sitedir}
 %endif
 %if %{with swig}
 chmod a+x $RPM_BUILD_ROOT%{py_sitedir}/plist/_plist.so
@@ -120,6 +121,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %if %{with cython}
 %attr(755,root,root) %{py_sitedir}/plist.so
+%attr(755,root,root) %{py_sitedir}/plist.pxd
 %endif
 %if %{with swig}
 %dir %{py_sitedir}/plist
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libplist.git/commitdiff/d92842ba6807a917352d032c55c0ef5fe98686c1



More information about the pld-cvs-commit mailing list