forked from pool/python-netaddr
Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 3136e5633d | |||
| b927a64ac9 | |||
| f2539849ad | |||
| 30a76bcea3 | |||
| 387ac83cee | |||
| bfc93f9c5d | |||
| 59d696ac92 |
BIN
netaddr-1.2.1.tar.gz
LFS
BIN
netaddr-1.2.1.tar.gz
LFS
Binary file not shown.
BIN
netaddr-1.3.0.tar.gz
LFS
Normal file
BIN
netaddr-1.3.0.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,32 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Fix incorrect removal of shebangs
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 5 06:41:14 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 21 09:13:43 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
Thu Mar 21 09:13:43 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-netaddr
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,24 +16,39 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-netaddr
|
Name: python-netaddr
|
||||||
Version: 1.2.1
|
Version: 1.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
|
Summary: Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/drkjam/netaddr
|
URL: https://github.com/netaddr/netaddr
|
||||||
Source: https://files.pythonhosted.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/n/netaddr/netaddr-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
%endif
|
||||||
|
# SECTION test
|
||||||
|
BuildRequires: %{python_module iniconfig}
|
||||||
|
BuildRequires: %{python_module packaging}
|
||||||
|
BuildRequires: %{python_module pluggy}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -55,7 +70,7 @@ Included are routines for:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n netaddr-%{version}
|
%autosetup -p1 -n netaddr-%{version}
|
||||||
sed -i "1d" netaddr/{cli,ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable scripts
|
sed -i "1{\@%{_bindir}/env python@d}" netaddr/{cli,ip/iana,eui/ieee}.py # Fix non-executable scripts
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
@@ -74,6 +89,9 @@ sed -i "1d" netaddr/{cli,ip/iana,eui/ieee,tests/__init__}.py # Fix non-executabl
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative netaddr
|
%python_uninstall_alternative netaddr
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative netaddr
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
%doc AUTHORS.rst CHANGELOG.rst COPYRIGHT.rst README.rst
|
%doc AUTHORS.rst CHANGELOG.rst COPYRIGHT.rst README.rst
|
||||||
|
|||||||
Reference in New Issue
Block a user