python-nacl/python-nacl.spec

68 lines
2.0 KiB
RPMSpec

%define pkgname PyNaCl
Name: python-nacl
Version: 1.5.0
Release: 4mamba
Summary: A Python binding to libsodium, which is a fork of the Networking and Cryptography library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.org/project/PyNaCl/
Source: https://pypi.debian.net/PyNaCl/PyNaCl-%{version}.tar.gz
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(cffi)
## AUTOBUILDREQ-END
%description
%{summary}.
%if 0%{?with_pyver}
%define py_requires_append \
Obsoletes: python-nacl-py310 < 1.5.0-4mamba
%pyver_package
%endif
%prep
%setup -q -n PyNaCl-%{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}/nacl
%{python_sitearch}/nacl/*
%doc LICENSE
%changelog
* Thu Jan 18 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-4mamba
- rebuilt with distdeps and python-build
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 1.5.0-3mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Thu Jun 08 2023 Automatic Build System <autodist@mambasoft.it> 1.5.0-2mamba
- rebuilt with python 3.10
* Thu Jan 13 2022 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
- automatic version update by autodist
* Tue Sep 08 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-1mamba
- package created using the webbuild interface