15
0
forked from pool/python-nwdiag

Accepting request 1284184 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1284184
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nwdiag?expand=0&rev=8
This commit is contained in:
2025-06-10 07:07:59 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 9 12:42:25 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Jun 2 14:49:06 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
Name: python-nwdiag
Version: 3.0.0
Release: 0
@@ -27,12 +28,12 @@ Source: https://files.pythonhosted.org/packages/source/n/nwdiag/nwdiag-%
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-blockdiag >= 1.5.0
Requires: python-setuptools
Requires(post): alts
Requires(postun): alts
Suggests: python-docutils
Suggests: python-nose
Suggests: python-reportlab
@@ -55,15 +56,10 @@ nwdiag generates network diagram images from text.
%python_clone -a %{buildroot}%{_bindir}/nwdiag
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative packetdiag
%python_install_alternative rackdiag
%python_install_alternative nwdiag
%postun
%python_uninstall_alternative packetdiag
%python_uninstall_alternative rackdiag
%python_uninstall_alternative nwdiag
%pre
%python_libalternatives_reset_alternative packetdiag
%python_libalternatives_reset_alternative rackdiag
%python_libalternatives_reset_alternative nwdiag
%files %{python_files}
%doc README.rst