From 3c9c982a2d749020ae5f457624a99c1bd9f393180fd5680c0420627c16ed2c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 28 May 2020 07:34:19 +0000 Subject: [PATCH] Accepting request 809551 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809551 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-actdiag?expand=0&rev=14 --- python-actdiag.changes | 5 +++++ python-actdiag.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-actdiag.changes b/python-actdiag.changes index 8488a8b..90b5104 100644 --- a/python-actdiag.changes +++ b/python-actdiag.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 27 09:35:59 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Tue Feb 25 15:57:30 UTC 2020 - Thomas Bechtold diff --git a/python-actdiag.spec b/python-actdiag.spec index 882c1d6..4ddda10 100644 --- a/python-actdiag.spec +++ b/python-actdiag.spec @@ -31,13 +31,15 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-blockdiag >= 1.5.0 Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch %if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 || 0%{?rhel} >= 8 Suggests: python-docutils Suggests: python-nose Suggests: python-pep8 >= 1.3 Suggests: python-reportlab %endif -BuildArch: noarch %python_subpackages %description @@ -51,12 +53,19 @@ actdiag generates activity-diagram image files from spec-text files. %install %python_install +%python_clone -a %{buildroot}%{_bindir}/actdiag %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative actdiag + +%postun +%python_uninstall_alternative actdiag + %files %{python_files} %license LICENSE %doc README.rst -%python3_only %{_bindir}/actdiag +%python_alternative %{_bindir}/actdiag %{python_sitelib}/* %changelog