[packages/python-netaddr] - disabled python3 and dropped netaddr package here, release 4
qboosh
qboosh at pld-linux.org
Sun Nov 2 11:15:07 CET 2025
commit 4105d38c8e20e1bfd243c8fb765a9cff0d027b5d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 2 11:15:05 2025 +0100
- disabled python3 and dropped netaddr package here, release 4
python-netaddr.spec | 27 +++------------------------
1 file changed, 3 insertions(+), 24 deletions(-)
---
diff --git a/python-netaddr.spec b/python-netaddr.spec
index 894145f..d94131f 100644
--- a/python-netaddr.spec
+++ b/python-netaddr.spec
@@ -3,14 +3,15 @@
%bcond_without doc # Sphinx based documentation
%bcond_without tests # unit tests
%bcond_without python2 # CPython 2.x modules
-%bcond_without python3 # CPython 3.x modules
+%bcond_with python3 # CPython 3.x modules (built from python3-netaddr.spec)
%define module netaddr
Summary: A pure Python network address representation and manipulation library
Summary(pl.UTF-8): Czysto pythonowa biblioteka do reprezentacji i operacji na adresach sieciowych
Name: python-netaddr
+# keep 0.x here for python2 support
Version: 0.10.1
-Release: 3
+Release: 4
License: BSD
Group: Development/Languages/Python
Source0: https://files.pythonhosted.org/packages/source/n/netaddr/%{module}-%{version}.tar.gz
@@ -119,22 +120,6 @@ Zawiera funkcje do:
- zapytań o informacje organizacyjne dotyczące IEEE OUI i IAB
- zapytań o dane związane ze standardami IP z kluczowych źródeł IANA
-%package -n netaddr
-Summary: An interactive shell for the Python netaddr library
-Summary(pl.UTF-8): Interaktywna powłoka do biblioteki Pythona netaddr
-Group: Development/Languages/Python
-%if %{with python3}
-Requires: python3-netaddr = %{version}-%{release}
-%else
-Requires: %{name} = %{version}-%{release}
-%endif
-
-%description -n netaddr
-Interactive shell for the python-netaddr library.
-
-%description -n netaddr -l pl.UTF-8
-Interaktywna powłoka do biblioteki Pythona netaddr.
-
%package apidocs
Summary: API documentation for Python netaddr module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona netaddr
@@ -184,10 +169,8 @@ rm -rf $RPM_BUILD_ROOT
%py_postclean
-%if %{with python3}
%{__rm} $RPM_BUILD_ROOT%{_bindir}/*
%endif
-%endif
%if %{with python3}
%py3_install
@@ -212,10 +195,6 @@ rm -rf $RPM_BUILD_ROOT
%{py3_sitescriptdir}/netaddr-%{version}-py*.egg-info
%endif
-%files -n netaddr
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/netaddr
-
%if %{with doc}
%files apidocs
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-netaddr.git/commitdiff/4105d38c8e20e1bfd243c8fb765a9cff0d027b5d
More information about the pld-cvs-commit
mailing list