diff --git a/python-netaddr.spec b/python-netaddr.spec index 6f4688f..29fc33c 100644 --- a/python-netaddr.spec +++ b/python-netaddr.spec @@ -1,5 +1,6 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-netaddr -Version: 0.10.1 +Version: 1.1.0 Release: 1mamba Summary: A network address manipulation library for Python Group: System/Libraries @@ -12,9 +13,6 @@ License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: libpython311-devel ## AUTOBUILDREQ-END -BuildRequires: python3-devel >= 3.11.5-3mamba -BuildRequires: libpython-devel -Requires: python >= %python_version %description %{summary}. @@ -27,27 +25,32 @@ Requires: python >= %python_version %setup -q -n netaddr-%{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 - -%files %{?pyappend} -f %{name}.filelist -%defattr(-,root,root) -%if "%{?pyappend}" != "py3" -%exclude %{_bindir}/netaddr +%if "%{?with_pyver}" != "3" +# Rename any conflicting file outside of python site packages tree +for f in %{_bindir}/netaddr; do + mv %{buildroot}${f}{,-%{?pyappend}} +done %endif -%doc AUTHORS LICENSE + +%files %{?pyappend} +%defattr(-,root,root) +%{_bindir}/netaddr* +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%doc AUTHORS.rst LICENSE.rst %changelog +* Fri Feb 16 2024 Automatic Build System 1.1.0-1mamba +- automatic version update by autodist + * Wed Jan 03 2024 Automatic Build System 0.10.1-1mamba - automatic version update by autodist