diff --git a/python-nacl.spec b/python-nacl.spec index 2add8d2..5d4efe4 100644 --- a/python-nacl.spec +++ b/python-nacl.spec @@ -1,6 +1,7 @@ +%define pkgname PyNaCl Name: python-nacl Version: 1.5.0 -Release: 3mamba +Release: 4mamba Summary: A Python binding to libsodium, which is a fork of the Networking and Cryptography library Group: System/Libraries Vendor: openmamba @@ -12,15 +13,15 @@ License: Apache License 2.0 ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libpython311-devel +BuildRequires: python3.11dist(cffi) ## AUTOBUILDREQ-END -BuildRequires: python3-devel >= 3.11.5-3mamba -BuildRequires: libpython-devel -Requires: python >= %python_version %description %{summary}. %if 0%{?with_pyver} +%define py_requires_append \ +Obsoletes: python-nacl-py310 < 1.5.0-4mamba %pyver_package %endif @@ -28,29 +29,31 @@ Requires: python >= %python_version %setup -q -n PyNaCl-%{version} %build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{python_inc} \ - --install-lib=%{python_sitearch} \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -sed -i "s,.*/man/.*,&.gz," %{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} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -## note: this list is just an example; modify as required -# %{python_sitearch}/%{name}.py* -# %{python_sitearch}/%{name}.so +%dir %{python_sitearch}/%{pkgname}-%{version}.dist-info +%{python_sitearch}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitearch}/nacl +%{python_sitearch}/nacl/* %doc LICENSE -## note: add extra documentation (if any) -# %doc README.rst %changelog +* Thu Jan 18 2024 Silvan Calarco 1.5.0-4mamba +- rebuilt with distdeps and python-build + * Tue Sep 26 2023 Automatic Build System 1.5.0-3mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba