diff --git a/python-autobahn.changes b/python-autobahn.changes index 2cdb2a2..236e2c8 100644 --- a/python-autobahn.changes +++ b/python-autobahn.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 27 09:36:10 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Mon Apr 20 05:41:32 UTC 2020 - Steve Kowalik diff --git a/python-autobahn.spec b/python-autobahn.spec index c839dbe..deba039 100644 --- a/python-autobahn.spec +++ b/python-autobahn.spec @@ -72,6 +72,8 @@ Requires: python3-txaio >= 18.8.1 Requires: python3-ujson >= 1.35 Requires: python3-wsaccel >= 0.6.2 Requires: python3-zope.interface >= 3.6.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -93,6 +95,7 @@ export CFLAGS="%{optflags}" %install export AUTOBAHN_USE_NVX=true %python_install +%python_clone -a %{buildroot}%{_bindir}/wamp %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -102,10 +105,16 @@ export PYTHONDONTWRITEBYTECODE=1 export PY_IGNORE_IMPORTMISMATCH=1 %pytest_arch +%post +%python_install_alternative wamp + +%postun +%python_uninstall_alternative wamp + %files %{python_files} %license LICENSE %doc README.rst %{python_sitearch}/* -%python3_only %{_bindir}/wamp +%python_alternative %{_bindir}/wamp %changelog