commit 7928e25237b8031641dc42e95f6426de334d1f9b
Author: Jakub Bogusz <[email protected]>
Date:   Sat Oct 24 08:39:22 2015 +0200

    - added cv patch (fixes exception on CvQualifiedType)
    - updated pl
    - R: gccxml
    - rel 2

 python-ctypeslib-cv.patch | 11 +++++++++++
 python-ctypeslib.spec     | 14 ++++++++++++--
 2 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/python-ctypeslib.spec b/python-ctypeslib.spec
index 57c2b83..f3b3e91 100644
--- a/python-ctypeslib.spec
+++ b/python-ctypeslib.spec
@@ -1,22 +1,25 @@
 %define        svnrev  r89065
 %define        snap    20100119
-%define        rel     1
+%define        rel     2
 Summary:       ctypeslib - useful additions to the ctypes FFI library
 Summary(pl.UTF-8):     ctypeslib - przydatne dodatki do biblioteki FFI ctypes
 Name:          python-ctypeslib
 Version:       0.5.6
-Release:       0.%{snap}.5{rel}
+Release:       0.%{snap}.%{rel}
 License:       MIT
 Group:         Libraries/Python
 # svn co http://svn.python.org/projects/ctypes/trunk/ctypeslib
 Source0:       ctypeslib-%{svnrev}.tar.xz
 # Source0-md5: 5ca5986339426eda062818a8b9a5e379
+# http://blog.gmane.org/gmane.comp.python.ctypes/month=20100501
+Patch0:                %{name}-cv.patch
 URL:           https://pypi.python.org/pypi/ctypeslib
 BuildRequires: python-modules >= 1:2.5
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.219
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
+Requires:      gccxml
 Requires:      python-modules >= 1:2.5
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -33,8 +36,15 @@ ctypeslib contains these packages:
 %description -l pl.UTF-8
 ctypeslib - przydatne dodatki do biblioteki FFI ctypes.
 
+ctypeslib zawiera następujące pakiety:
+- ctypeslib.codegen - generator kodu
+- ctypeslib.contrib - różne moduły dostarczone przez użytkowników
+- ctypeslib.util - różne małe funkcje pomocnicze
+- ctypeslib.test - testy jednostkowe
+
 %prep
 %setup -q -n ctypeslib
+%patch0 -p1
 
 %build
 %{__python} setup.py build
diff --git a/python-ctypeslib-cv.patch b/python-ctypeslib-cv.patch
new file mode 100644
index 0000000..a25fa12
--- /dev/null
+++ b/python-ctypeslib-cv.patch
@@ -0,0 +1,11 @@
+--- ctypeslib/ctypeslib/codegen/codegenerator.py.orig  2015-10-06 
18:47:43.000000000 +0200
++++ ctypeslib/ctypeslib/codegen/codegenerator.py       2015-10-23 
23:22:54.836001586 +0200
+@@ -65,7 +65,7 @@
+ 
+ def storage(t):
+     # return the size and alignment of a type
+-    if isinstance(t, typedesc.Typedef):
++    if isinstance(t, typedesc.Typedef) or isinstance(t, 
typedesc.CvQualifiedType):
+         return storage(t.typ)
+     elif isinstance(t, typedesc.ArrayType):
+         s, a = storage(t.typ)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-ctypeslib.git/commitdiff/7928e25237b8031641dc42e95f6426de334d1f9b

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to