]> git.pld-linux.org Git - packages/python-M2Crypto.git/commitdiff
- updated to 0.24.0 auto/th/python-M2Crypto-0.24.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 26 Mar 2016 12:15:26 +0000 (13:15 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 26 Mar 2016 12:15:26 +0000 (13:15 +0100)
python-M2Crypto.spec

index 60a262a78411852f5966aa67a33d19947aa5270c..b64d43313aad7cdc61fb800a38fa25b02ee1e5a1 100644 (file)
@@ -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]
This page took 0.101098 seconds and 4 git commands to generate.