automatic version update by autodist [release 1.1.0-1mamba;Fri Feb 16 2024]

This commit is contained in:
Automatic Build System 2024-02-17 11:15:26 +01:00
parent 7bd218b6cd
commit 44246e80a9

View File

@ -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 <autodist@openmamba.org> 1.1.0-1mamba
- automatic version update by autodist
* Wed Jan 03 2024 Automatic Build System <autodist@mambasoft.it> 0.10.1-1mamba
- automatic version update by autodist