]> git.pld-linux.org Git - packages/python-M2Crypto.git/blobdiff - python-M2Crypto.spec
- package .egg-info for python 2.5
[packages/python-M2Crypto.git] / python-M2Crypto.spec
index 2f3f4d8910e9883a2cca30ecccd5c0a3cd22b3aa..40c6107419ca1a0ad38189e4911476074e78982d 100644 (file)
@@ -1,22 +1,21 @@
-%include       /usr/lib/rpm/macros.python
-
+# NOTE: doesn't work properly (at least TLS in cjc) when built with recent swig
 Summary:       Python interface to OpenSSL
 Summary(pl):   Interfejs Pythona do OpenSSL
 Name:          python-M2Crypto
-Version:       0.11
+Version:       0.16
 Release:       2
 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
-URL:           http://sandbox.rulemaker.net/ngps/m2/
 Group:         Development/Languages/Python
+Source0:       http://wiki.osafoundation.org/pub/Projects/MeTooCrypto/m2crypto-%{version}.tar.gz
+# Source0-md5: 6fc06583a2be56fc2a46872a0540d78e
+Patch0:                %{name}-swig_sources.patch
+URL:           http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: python-devel >= 1:2.5
+BuildRequires: swig >= 1.3.24
+#BuildRequires:        swig-python >= 1.3.25
+BuildRequires: unzip
 %pyrequires_eq python
-BuildRequires: python-devel >= 2.2.1
-BuildRequires: openssl-devel >= 0.9.7c
-BuildRequires: swig >= 1.3.17
-BuildRequires: rpm-pythonprov
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -37,12 +36,11 @@ M2Crypto udost
 %prep
 %setup -q -n m2crypto-%{version}
 %patch0 -p1
-%patch1 -p1
+
+find demo -type d -name CVS | xargs rm -rf
 
 %build
-# workaroud (no way to pass -ISWIG to swig invocation)
-cp SWIG/*.i SWIG/*.h .
-python setup.py build 
+python setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -53,18 +51,20 @@ python setup.py install \
        --optimize=2
 
 # shutup check-files
-find $RPM_BUILD_ROOT/%{py_sitedir} -name \*.py \
+find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py \
        -exec rm {} \;
-       
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc BUGS CHANGES INSTALL LICENCE README STORIES doc/*.html demo
+%doc CHANGES LICENCE README doc/*.html demo
+%dir %{py_sitedir}/M2Crypto
 %attr(755,root,root) %{py_sitedir}/M2Crypto/*.so
 %{py_sitedir}/M2Crypto/*.py[oc]
 %dir %{py_sitedir}/M2Crypto/SSL
 %{py_sitedir}/M2Crypto/SSL/*.py[oc]
 %dir %{py_sitedir}/M2Crypto/PGP
 %{py_sitedir}/M2Crypto/PGP/*.py[oc]
+%{py_sitedir}/M2Crypto-*.egg-info
This page took 0.068933 seconds and 4 git commands to generate.