2011-05-31 12:57:01 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-M2Crypto
|
|
|
|
#
|
2024-01-03 10:51:48 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-05-31 12:57:01 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-09-24 17:21:46 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-05-31 12:57:01 +02:00
|
|
|
#
|
|
|
|
|
2017-04-27 14:10:19 +02:00
|
|
|
|
|
|
|
%define oldpython python
|
2024-04-03 11:23:23 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-05-31 12:57:01 +02:00
|
|
|
Name: python-M2Crypto
|
- Update to 0.40.0:
- OK, SO NOT THIS RELEASE, BUT IN THE NEXT RELEASE PYTHON2 WILL
TRULY GO!
- BREAKING CHANGES:
- There are no SWIG generated files (src/SWIG/_m2crytpo_wrap.c)
included anymore, so swig must be installed, no
exceptions! Also, for compatibility with Python 3.12+, swig
4.0+ is required.
- All support for asyncore has been removed, as it has been
removed in Python 3.12 as well (which means also removal of
contrib/dispatcher.py, M2Crypto/SSL/ssl_dispatcher.py,
ZServerSSL).
- All use of distutils (including the bundled ones in
setuptools) has been removed, so `setup.py clean` is no
more.
- Excessively complicated and error-prone __init__py has been
cleaned and `import M2Crypto` doesn’t include everything
anymore. Imports should specified as for example with `from
M2Crypto import foo`.
- ASN1_Time handling has been mostly rewritten and it almost
works even on Windows.
- All tests in Gitlab CI (with exceptions of some skipped tests
especially on Windows) are now green, tests of Python 2.7 on
CentOS 7 have been included.
- Introduce m2.err_clear_error()
- Make X509_verify_cert() accessible as m2.x509_verify_cert
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-M2Crypto?expand=0&rev=123
2023-10-24 17:14:34 +02:00
|
|
|
Version: 0.40.0
|
2011-09-22 11:20:17 +02:00
|
|
|
Release: 0
|
2011-05-31 12:57:01 +02:00
|
|
|
Summary: Crypto and SSL toolkit for Python
|
2017-10-25 22:06:47 +02:00
|
|
|
License: MIT
|
2011-05-31 12:57:01 +02:00
|
|
|
Group: Development/Languages/Python
|
2020-03-09 11:09:18 +01:00
|
|
|
URL: https://gitlab.com/m2crypto/m2crypto
|
2021-02-17 12:23:26 +01:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
|
2023-07-04 21:38:52 +02:00
|
|
|
Source1: M2Crypto-%{version}.tar.gz.asc
|
2022-07-12 23:27:22 +02:00
|
|
|
Source99: python-M2Crypto.keyring
|
2023-10-24 17:32:34 +02:00
|
|
|
# PATCH-FIX-UPSTREAM 32bit_ASN1_Time.patch gl#m2crypto/m2crypto/-#341 mcepl@suse.com
|
|
|
|
# Not only Windows but all 32bit archs have fouled ASN1_Time.
|
|
|
|
Patch0: 32bit_ASN1_Time.patch
|
2018-12-05 15:30:33 +01:00
|
|
|
BuildRequires: %{python_module devel}
|
2023-07-04 21:38:52 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2024-01-24 18:05:31 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2024-01-03 10:51:48 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-11-08 19:14:18 +01:00
|
|
|
BuildRequires: %{python_module typing}
|
2023-07-04 21:38:52 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-04-27 14:10:19 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: openssl
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-02-09 10:56:35 +01:00
|
|
|
Requires: python-typing
|
2018-02-20 12:15:15 +01:00
|
|
|
Requires: python-xml
|
2015-12-02 17:56:27 +01:00
|
|
|
# hpj: SLES 12 and Leap 42.1 need swig3 to build this package
|
2017-04-18 23:08:22 +02:00
|
|
|
%if 0%{?sle_version} == 120100
|
2015-11-20 21:54:39 +01:00
|
|
|
BuildRequires: swig3
|
|
|
|
%else
|
2011-05-31 12:57:01 +02:00
|
|
|
BuildRequires: swig
|
2015-11-20 21:54:39 +01:00
|
|
|
%endif
|
2017-04-27 14:10:19 +02:00
|
|
|
%ifpython2
|
|
|
|
Provides: %{oldpython}-m2crypto = %{version}
|
|
|
|
Obsoletes: %{oldpython}-m2crypto < %{version}
|
|
|
|
%endif
|
2017-04-18 23:08:22 +02:00
|
|
|
%python_subpackages
|
2011-05-31 12:57:01 +02:00
|
|
|
|
|
|
|
%description
|
2017-04-18 23:08:22 +02:00
|
|
|
M2Crypto is a crypto and SSL toolkit for Python featuring the following:
|
2011-05-31 12:57:01 +02:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2017-10-20 15:26:33 +02:00
|
|
|
%package -n %{name}-doc
|
|
|
|
Summary: Documentation for the Crypto and SSL toolkit for Python
|
|
|
|
Group: Development/Libraries/Python
|
2018-02-09 10:56:35 +01:00
|
|
|
BuildArch: noarch
|
2017-10-20 15:26:33 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2011-05-31 12:57:01 +02:00
|
|
|
%prep
|
2021-02-17 15:23:27 +01:00
|
|
|
%autosetup -p1 -n M2Crypto-%{version}
|
2011-05-31 12:57:01 +02:00
|
|
|
|
|
|
|
%build
|
2017-04-18 23:08:22 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
2023-07-04 21:38:52 +02:00
|
|
|
%pyproject_wheel
|
2011-05-31 12:57:01 +02:00
|
|
|
|
|
|
|
%install
|
2023-07-04 21:38:52 +02:00
|
|
|
%pyproject_install
|
2017-04-18 23:08:22 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
%check
|
2020-12-08 19:37:18 +01:00
|
|
|
%python_expand ls -l %{buildroot}%{$python_sitearch}/M2Crypto/*.so*
|
2021-01-13 09:17:07 +01:00
|
|
|
export PYTEST_ADDOPTS="--import-mode=append"
|
2024-01-24 18:05:31 +01:00
|
|
|
# Ignore test_verify_with_static_callback that fails with openssl 3.2
|
|
|
|
donttest="test_verify_with_static_callback"
|
|
|
|
%pytest_arch -k "not ($donttest)" tests
|
2011-05-31 12:57:01 +02:00
|
|
|
|
2017-04-18 23:08:22 +02:00
|
|
|
%files %{python_files}
|
|
|
|
%doc CHANGES LICENCE README.rst
|
2023-07-04 21:38:52 +02:00
|
|
|
%{python_sitearch}/M2Crypto
|
|
|
|
%{python_sitearch}/M2Crypto-%{version}*-info
|
2011-05-31 12:57:01 +02:00
|
|
|
|
2017-10-20 15:26:33 +02:00
|
|
|
%files -n %{name}-doc
|
2018-02-09 10:56:35 +01:00
|
|
|
%doc doc/*.rst
|
2017-10-20 15:26:33 +02:00
|
|
|
|
2011-05-31 12:57:01 +02:00
|
|
|
%changelog
|