From d798826c743e0e9816282a61dd0bc724aedc6690 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 17 Feb 2024 11:15:07 +0100 Subject: [PATCH] automatic version update by autodist [release 0.41.0-1mamba;Fri Feb 16 2024] --- python-M2Crypto.spec | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/python-M2Crypto.spec b/python-M2Crypto.spec index d1ce095..1832be1 100644 --- a/python-M2Crypto.spec +++ b/python-M2Crypto.spec @@ -1,12 +1,13 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-M2Crypto -Version: 0.40.1 +Version: 0.41.0 Release: 1mamba Summary: A python wrapper for OpenSSL featuring RSA, DSA, DH, EC, HMACs, message digests, symmetric ciphers and more Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: https://pypi.org/project/M2Crypto/ +URL: https://gitlab.com/m2crypto/m2crypto Source: http://pypi.debian.net/M2Crypto/M2Crypto-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN @@ -14,9 +15,6 @@ BuildRequires: glibc-devel BuildRequires: libopenssl-devel BuildRequires: libpython311-devel ## AUTOBUILDREQ-END -BuildRequires: python3-devel >= 3.11.5-3mamba -BuildRequires: libpython-devel -Requires: python >= %python_version %description M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA, DH, EC, 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 and ZSmime: An S/MIME messenger for Zope. M2Crypto can also be used to provide SSL for Twisted. Smartcards supported through the Engine interface. @@ -26,27 +24,34 @@ M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA, DH, %endif %prep -%setup -q -c %{name}-%{version} +%setup -q -n %{pkgname}-%{version} %build -cd M2Crypto-%{version} -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -cd M2Crypto-%{version} -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{_includedir}/python \ - --install-lib=%{python_sitearch} \ - --single-version-externally-managed \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -%files %{?pyappend} -f M2Crypto-%{version}/%{name}.filelist +#%if "%{?with_pyver}" != "3" +## Rename any conflicting file outside of python site packages tree +#for f in %{_bindir}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif + +%files %{?pyappend} %defattr(-,root,root) +%dir %{python_sitearch}/%{pkgname}-%{version}.dist-info +%{python_sitearch}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitearch}/%{pkgname} +%{python_sitearch}/%{pkgname}/* +%doc LICENCE %changelog +* Fri Feb 16 2024 Automatic Build System 0.41.0-1mamba +- automatic version update by autodist + * Thu Oct 26 2023 Automatic Build System 0.40.1-1mamba - automatic version update by autodist