7 Commits

Author SHA256 Message Date
5e681b15fc Accepting request 1300758 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems only

OBS-URL: https://build.opensuse.org/request/show/1300758
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netaddr?expand=0&rev=32
2025-08-22 15:47:04 +00:00
bf4d45a995 - Convert to libalternatives on SLE-16-based and newer systems only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netaddr?expand=0&rev=41
2025-08-21 10:00:31 +00:00
91288ea765 Accepting request 1293667 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1293667
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netaddr?expand=0&rev=31
2025-07-17 15:17:03 +00:00
50b25ac9ae - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netaddr?expand=0&rev=39
2025-07-16 10:07:31 +00:00
82d133ee64 Accepting request 1228484 from devel:languages:python
- Fix incorrect removal of shebangs
- update to 1.3.0:
  * Added:
    - Add partial address expansion in IPNetwork via the
      expand_partial switch, this enables opting into pre-1.1.0
      behavior
  * Fixed:
    - Fix running the test suite on musl systems
    - Fix IPAddress IPv6 parsing with ZEROFILL enabled
    - Fix handling of the NOHOST flag in the IPNetwork copy
      constructor

OBS-URL: https://build.opensuse.org/request/show/1228484
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-netaddr?expand=0&rev=30
2024-12-05 16:09:44 +00:00
b3651f2b14 - Fix incorrect removal of shebangs
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netaddr?expand=0&rev=37
2024-12-05 09:53:40 +00:00
c8de4cf5fe Accepting request 1228465 from home:ojkastl_buildservice:Branch_devel_languages_python
update to 1.3.0, tests are all failing due to NameError for sys?\!?

OBS-URL: https://build.opensuse.org/request/show/1228465
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netaddr?expand=0&rev=36
2024-12-05 09:43:29 +00:00
2 changed files with 31 additions and 8 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Aug 21 10:00:05 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems only
-------------------------------------------------------------------
Wed Jul 16 10:07:02 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Thu Dec 5 09:53:32 UTC 2024 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-netaddr
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,11 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-netaddr
Version: 1.3.0
@@ -28,17 +33,22 @@ Source: https://files.pythonhosted.org/packages/source/n/netaddr/netaddr
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
# SECTION test
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module iniconfig}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pluggy}
BuildRequires: %{python_module pytest}
# /SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
@@ -60,7 +70,7 @@ Included are routines for:
%prep
%autosetup -p1 -n netaddr-%{version}
sed -i "1{\@/usr/bin/env python@d}" netaddr/{cli,ip/iana,eui/ieee}.py # Fix non-executable scripts
sed -i "1{\@%{_bindir}/env python@d}" netaddr/{cli,ip/iana,eui/ieee}.py # Fix non-executable scripts
%build
%pyproject_wheel
@@ -79,6 +89,9 @@ sed -i "1{\@/usr/bin/env python@d}" netaddr/{cli,ip/iana,eui/ieee}.py # Fix non-
%postun
%python_uninstall_alternative netaddr
%pre
%python_libalternatives_reset_alternative netaddr
%files %{python_files}
%license LICENSE.rst
%doc AUTHORS.rst CHANGELOG.rst COPYRIGHT.rst README.rst