[packages/python-M2Crypto] - updated to 0.22.3 - removed obsolete swig_sources patch

qboosh qboosh at pld-linux.org
Sun Feb 9 19:52:43 CET 2014


commit c8750eea484884c22b15b848d37d1d64465757c8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 9 19:54:37 2014 +0100

    - updated to 0.22.3
    - removed obsolete swig_sources patch

 python-M2Crypto-swig_sources.patch | 12 ------------
 python-M2Crypto.spec               | 32 ++++++++++++--------------------
 2 files changed, 12 insertions(+), 32 deletions(-)
---
diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec
index 1ff757a..ef3c83a 100644
--- a/python-M2Crypto.spec
+++ b/python-M2Crypto.spec
@@ -1,22 +1,21 @@
 Summary:	Python interface to OpenSSL
 Summary(pl.UTF-8):	Interfejs Pythona do OpenSSL
 Name:		python-M2Crypto
-Version:	0.21.1
+Version:	0.22.3
 Release:	1
 License:	BSD-like
 Group:		Libraries/Python
-Source0:	http://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
-# Source0-md5:	f93d8462ff7646397a9f77a2fe602d17
-Patch0:		%{name}-swig_sources.patch
-Patch1:		%{name}-store2ssl.patch
-Patch2:		%{name}-swig.patch
-URL:		http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto
-BuildRequires:	openssl-devel >= 0.9.7d
-BuildRequires:	python-devel >= 1:2.5
+Source0:	https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
+# Source0-md5:	573f21aaac7d5c9549798e72ffcefedd
+Patch0:		%{name}-store2ssl.patch
+Patch1:		%{name}-swig.patch
+URL:		http://chandlerproject.org/bin/view/Projects/MeTooCrypto
+BuildRequires:	openssl-devel >= 0.9.8
+BuildRequires:	python-devel >= 1:2.6
 BuildRequires:	python-modules
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
-BuildRequires:	swig-python >= 1.3.24
+BuildRequires:	swig-python >= 2.0
 BuildRequires:	unzip
 %pyrequires_eq	python
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -40,9 +39,6 @@ M2Crypto udostępnia z poziomu Pythona następujące funkcje:
 %setup -q -n M2Crypto-%{version}
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
-
-find demo -type d -name CVS | xargs rm -rf
 
 %build
 %{__python} setup.py build
@@ -56,20 +52,16 @@ install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
 	--optimize=2
 
 %py_postclean
-cp -r demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES LICENCE README doc/*.html
+%doc README
 %dir %{py_sitedir}/M2Crypto
 %attr(755,root,root) %{py_sitedir}/M2Crypto/*.so
-%{py_sitedir}/M2Crypto/*.py[oc]
+%{py_sitedir}/M2Crypto/*.py[co]
 %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/SSL/*.py[co]
 %{py_sitedir}/M2Crypto-*.egg-info
-%{_examplesdir}/%{name}-%{version}
diff --git a/python-M2Crypto-swig_sources.patch b/python-M2Crypto-swig_sources.patch
deleted file mode 100644
index 7e109d5..0000000
--- a/python-M2Crypto-swig_sources.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Nur m2crypto-0.16.orig/setup.py m2crypto-0.16/setup.py
---- m2crypto-0.16.orig/setup.py	2006-05-03 22:51:07.000000000 +0100
-+++ m2crypto-0.16/setup.py	2006-08-10 15:38:30.000000000 +0100
-@@ -48,7 +48,7 @@
- 
-     # This copy of swig_sources is from Python 2.2.
- 
--    def swig_sources (self, sources):
-+    def swig_sources (self, sources, extension = None):
- 
-         """Walk the list of source files in 'sources', looking for SWIG
-         interface (.i) files.  Run SWIG on all that are found, and
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-M2Crypto.git/commitdiff/c8750eea484884c22b15b848d37d1d64465757c8



More information about the pld-cvs-commit mailing list