python-ipaddr/python-ipaddr.spec

58 lines
1.6 KiB
RPMSpec
Raw Normal View History

Name: python-ipaddr
Version: 2.2.0
Release: 3mamba
Summary: A library for working with IP addresses, both IPv4 and IPv6
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/google/ipaddr-py
Source: https://pypi.debian.net/ipaddr/ipaddr-%{version}.tar.gz
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
%if "%{?with_pyver}"
%pyver_package
%endif
%description
%{summary}.
%prep
%setup -q -n ipaddr-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%{python_sitearch}/ipaddr-%{version}-py*.egg-info
%doc COPYING
%changelog
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 2.2.0-3mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Wed Apr 26 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.0-2mamba
- rebuilt with python 3.10
* Sat Jul 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.0-1mamba
- update to 2.2.0
* Sat May 03 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.10-1mamba
- package created using the webbuild interface