From 6a81be656a3dae2b0e46aff7b422ecbc7dcef747936c053f0ae79bddab37ec17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 19 May 2020 08:52:50 +0000 Subject: [PATCH] Accepting request 807138 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/807138 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stomp.py?expand=0&rev=16 --- python-stomp.py.changes | 5 +++++ python-stomp.py.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-stomp.py.changes b/python-stomp.py.changes index 96d14a9..b32c328 100644 --- a/python-stomp.py.changes +++ b/python-stomp.py.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 19 08:03:05 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Tue Feb 18 20:08:47 UTC 2020 - Sebastian Wagner diff --git a/python-stomp.py.spec b/python-stomp.py.spec index 6b9b35f..40b2159 100644 --- a/python-stomp.py.spec +++ b/python-stomp.py.spec @@ -30,6 +30,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-docopt >= 0.6.2 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -45,12 +47,19 @@ A Python client library for accessing messaging servers (such as ActiveMQ, Apoll %install %python_install +%python_clone -a %{buildroot}%{_bindir}/stomp %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative stomp + +%postun +%python_uninstall_alternative stomp + %files %{python_files} %doc README CHANGELOG %license LICENSE %{python_sitelib}/* -%python3_only %{_bindir}/stomp +%python_alternative %{_bindir}/stomp %changelog