]> git.pld-linux.org Git - packages/python-M2Crypto.git/blobdiff - python-M2Crypto.spec
- swig_sources.patch for modern method signature
[packages/python-M2Crypto.git] / python-M2Crypto.spec
index 2f3f4d8910e9883a2cca30ecccd5c0a3cd22b3aa..d9f5289a1d8462139585f7640cb8547c2eabc8a2 100644 (file)
@@ -1,22 +1,23 @@
-%include       /usr/lib/rpm/macros.python
 
 Summary:       Python interface to OpenSSL
 Summary(pl):   Interfejs Pythona do OpenSSL
 Name:          python-M2Crypto
-Version:       0.11
-Release:       2
+Version:       0.13
+Release:       4
 License:       BSD-like
-Source0:       http://www.pobox.org.sg/home/ngps/m2/m2crypto-%{version}.zip
-# Source0-md5: c018c94e00b33aac969fbbe02b244aba
-Patch0:                M2Crypto-smime_callback.patch
-Patch1:                M2Crypto-pkcs7_get0_signers.patch
+Source0:       http://sandbox.rulemaker.net/ngps/Dist/m2crypto-%{version}.zip
+# Source0-md5: be2790a34349ab452dddbcfe4c95606a
+#              http://sandbox.rulemaker.net/ngps/Dist/0.13p1.patch
+Patch0:                %{name}-0.13p1.patch
+Patch1:                %{name}-swig_sources.patch
 URL:           http://sandbox.rulemaker.net/ngps/m2/
 Group:         Development/Languages/Python
 %pyrequires_eq python
 BuildRequires: python-devel >= 2.2.1
-BuildRequires: openssl-devel >= 0.9.7c
+BuildRequires: openssl-devel >= 0.9.7d
 BuildRequires: swig >= 1.3.17
 BuildRequires: rpm-pythonprov
+BuildRequires: unzip
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -36,12 +37,10 @@ M2Crypto udost
 
 %prep
 %setup -q -n m2crypto-%{version}
-%patch0 -p1
+%patch0 -p0
 %patch1 -p1
 
 %build
-# workaroud (no way to pass -ISWIG to swig invocation)
-cp SWIG/*.i SWIG/*.h .
 python setup.py build 
 
 %install
@@ -61,7 +60,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc BUGS CHANGES INSTALL LICENCE README STORIES doc/*.html demo
+%doc BUGS CHANGES INSTALL LICENCE README doc/*.html demo
 %attr(755,root,root) %{py_sitedir}/M2Crypto/*.so
 %{py_sitedir}/M2Crypto/*.py[oc]
 %dir %{py_sitedir}/M2Crypto/SSL
This page took 0.072013 seconds and 4 git commands to generate.