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