%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-pycryptodome Version: 3.20.0 Release: 1mamba Summary: Cryptographic library for Python Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.pycryptodome.org/ Source: http://pypi.debian.net/pycryptodome/pycryptodome-%{version}.tar.gz License: Apache License 2.0, BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libpython311-devel ## AUTOBUILDREQ-END BuildRequires: python3-devel >= 3.11.5-3mamba %description %{summary}. %if 0%{?with_pyver} %pyver_package %endif %prep %setup -q -n pycryptodome-%{version} %build CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} -m installer --destdir=%{buildroot} dist/*.whl #%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}/Crypto %{python_sitearch}/Crypto/* %changelog * Wed Jan 10 2024 Automatic Build System 3.20.0-1mamba - automatic version update by autodist * Thu Dec 28 2023 Automatic Build System 3.19.1-1mamba - automatic version update by autodist * Wed Sep 27 2023 Automatic Build System 3.19.0-2mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba * Sun Sep 17 2023 Automatic Build System 3.19.0-1mamba - automatic version update by autodist * Tue Sep 12 2023 Silvan Calarco 3.18.0-1mamba - package created using the webbuild interface