From bd33b158249b0e2dde43c5c2bad302bfa41a4706dfb11fb38d71a50e15d687f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 21 May 2020 18:34:19 +0000 Subject: [PATCH] Accepting request 807990 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/807990 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nwdiag?expand=0&rev=11 --- python-nwdiag.changes | 5 +++++ python-nwdiag.spec | 24 ++++++++++++++++++------ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/python-nwdiag.changes b/python-nwdiag.changes index dbe190e..6751ca1 100644 --- a/python-nwdiag.changes +++ b/python-nwdiag.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 21 10:56:43 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Fri Feb 28 22:58:57 UTC 2020 - Dirk Mueller diff --git a/python-nwdiag.spec b/python-nwdiag.spec index 17b9303..b914086 100644 --- a/python-nwdiag.spec +++ b/python-nwdiag.spec @@ -31,13 +31,12 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-blockdiag >= 1.5.0 Requires: python-setuptools -Suggests: python-reportlab +Requires(post): update-alternatives +Requires(postun): update-alternatives Suggests: python-docutils Suggests: python-nose Suggests: python-reportlab -Suggests: python-docutils BuildArch: noarch - %python_subpackages %description @@ -51,14 +50,27 @@ nwdiag generates network diagram images from text. %install %python_install +%python_clone -a %{buildroot}%{_bindir}/packetdiag +%python_clone -a %{buildroot}%{_bindir}/rackdiag +%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 + %files %{python_files} %doc README.rst %license LICENSE -%python3_only %{_bindir}/nwdiag -%python3_only %{_bindir}/rackdiag -%python3_only %{_bindir}/packetdiag +%python_alternative %{_bindir}/nwdiag +%python_alternative %{_bindir}/rackdiag +%python_alternative %{_bindir}/packetdiag %{python_sitelib}/* %changelog