+++ /dev/null
-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
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)
%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
--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}