forked from pool/python-M2Crypto
Accepting request 535455 from home:alarrosa:branches:devel:languages:python
- Update to 0.27.0 * Fix licence: it is MIT, not BSD * At least minimal support of SNI in httpslib. * Small bugfixes and cleanups. * More effort to make build system more robust. * Restore m2.rsa_set_e() and m2.rsa_set_n(). * Make sure that every exceptional return throws and exception and viceversa. - Add patch fix-build-python3.diff to let it build with python3 - Add patch fix-openssl-include-path.diff to fix openssl include path (the code already includes the openssl/ part) - Create a new package python-M2Crypto-doc for documentation since rpmlint was complaining around 75% of the package was documentation. OBS-URL: https://build.opensuse.org/request/show/535455 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=45
This commit is contained in:
committed by
Git OBS Bridge
parent
eae7642470
commit
8e1366d91b
@@ -22,13 +22,17 @@
|
||||
%define oldpython python
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-M2Crypto
|
||||
Version: 0.26.4
|
||||
Version: 0.27.0
|
||||
Release: 0
|
||||
Url: https://gitlab.com/m2crypto/m2crypto
|
||||
Summary: Crypto and SSL toolkit for Python
|
||||
License: MIT and ZPL-2.0 and BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.io/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM fix-build-python3.diff -- Fixes a str/bytes issue when building with python3
|
||||
Patch0: fix-build-python3.diff
|
||||
# PATCH-FIX-OPENSUSE fix-openssl-include-path.diff -- Fixes include path for openssl
|
||||
Patch1: fix-openssl-include-path.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -67,8 +71,28 @@ HMAC'ing AuthCookies for web session management. FTP/TLS client and
|
||||
server. S/MIME. ZServerSSL: A HTTPS server for Zope. ZSmime: An S/MIME
|
||||
messenger for Zope.
|
||||
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for the Crypto and SSL toolkit for Python
|
||||
Group: Development/Libraries/Python
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description -n %{name}-doc
|
||||
M2Crypto is a crypto and SSL toolkit for Python featuring the following:
|
||||
|
||||
RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including
|
||||
AES). SSL functionality to implement clients and servers. HTTPS
|
||||
extensions to Python's httplib, urllib, and xmlrpclib. Unforgeable
|
||||
HMAC'ing AuthCookies for web session management. FTP/TLS client and
|
||||
server. S/MIME. ZServerSSL: A HTTPS server for Zope. ZSmime: An S/MIME
|
||||
messenger for Zope.
|
||||
|
||||
Documentation for the Crypto and SSL toolkit for Python
|
||||
|
||||
%prep
|
||||
%setup -q -n M2Crypto-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
@@ -77,6 +101,7 @@ export CFLAGS="%{optflags}"
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
%fdupes %{buildroot}%{_docdir}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
@@ -86,7 +111,10 @@ export CFLAGS="%{optflags}"
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES LICENCE README.rst
|
||||
%doc doc/
|
||||
%{python_sitearch}/*
|
||||
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root)
|
||||
%doc doc/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user