[packages/python-M2Crypto] - updated to 0.24.0

qboosh qboosh at pld-linux.org
Sat Mar 26 13:11:05 CET 2016


commit c2789b238a3f86a6599c5258b3e2177ba029bd54
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Mar 26 13:15:26 2016 +0100

    - updated to 0.24.0

 python-M2Crypto.spec | 34 ++++++++++++++++++++++++----------
 1 file changed, 24 insertions(+), 10 deletions(-)
---
diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec
index 60a262a..b64d433 100644
--- a/python-M2Crypto.spec
+++ b/python-M2Crypto.spec
@@ -1,23 +1,35 @@
+#
+# Conditional build:
+%bcond_with	tests	# test target [fails, some files are missing]
+
 Summary:	Python interface to OpenSSL
 Summary(pl.UTF-8):	Interfejs Pythona do OpenSSL
 Name:		python-M2Crypto
-Version:	0.22.5
-Release:	2
+Version:	0.24.0
+Release:	1
 License:	BSD-like
 Group:		Libraries/Python
+#Source0Download: https://pypi.python.org/simple/m2crypto/
 Source0:	https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
-# Source0-md5:	f84eb07aa1687f39bc26ee7b1ba5a105
+# Source0-md5:	8e87235942c76d1ba9f999ee33764fdb
 Patch0:		%{name}-store2ssl.patch
 Patch1:		%{name}-swig.patch
 URL:		https://gitlab.com/m2crypto/m2crypto
-BuildRequires:	openssl-devel >= 0.9.8
+BuildRequires:	openssl-devel >= 1.0.1e
 BuildRequires:	python-devel >= 1:2.6
-BuildRequires:	python-modules
+BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-setuptools
+%if %{with tests}
+%if "%{py_ver}" < "2.7"
+BuildRequires:	python-unittest2
+%endif
+%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.710
 BuildRequires:	swig-python >= 2.0
 BuildRequires:	unzip
-%pyrequires_eq	python
+%pyrequires_eq	python-libs
+Requires:	openssl >= 1.0.1e
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -35,17 +47,19 @@ M2Crypto udostępnia z poziomu Pythona następujące funkcje:
 - SSL do implementacji klientów i serwerów
 - S/MIME v2.
 
+M2Crypto jest wydane na bardzo liberalnej licencji BSD - szczegóły w
+pliku LICENCE.
+
 %prep
 %setup -q -n M2Crypto-%{version}
 %patch0 -p1
 %patch1 -p1
 
 %build
-%py_build
+%py_build %{?with_tests:test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
 
 %py_install
 
@@ -56,9 +70,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc CHANGES LICENCE README.rst
 %dir %{py_sitedir}/M2Crypto
-%attr(755,root,root) %{py_sitedir}/M2Crypto/*.so
+%attr(755,root,root) %{py_sitedir}/M2Crypto/__m2crypto.so
 %{py_sitedir}/M2Crypto/*.py[co]
 %dir %{py_sitedir}/M2Crypto/PGP
 %{py_sitedir}/M2Crypto/PGP/*.py[co]
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list