forked from pool/python-netaddr
Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 387ac83cee | |||
| bfc93f9c5d | |||
| 59d696ac92 |
@@ -1,13 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-netaddr
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,11 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-netaddr
|
||||
Version: 1.3.0
|
||||
@@ -33,22 +28,17 @@ 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
|
||||
@@ -70,7 +60,7 @@ Included are routines for:
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n netaddr-%{version}
|
||||
sed -i "1{\@%{_bindir}/env python@d}" netaddr/{cli,ip/iana,eui/ieee}.py # Fix non-executable scripts
|
||||
sed -i "1{\@/usr/bin/env python@d}" netaddr/{cli,ip/iana,eui/ieee}.py # Fix non-executable scripts
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
@@ -89,9 +79,6 @@ sed -i "1{\@%{_bindir}/env python@d}" netaddr/{cli,ip/iana,eui/ieee}.py # Fix no
|
||||
%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
|
||||
|
||||
Reference in New Issue
Block a user