diff --git a/python-dash.changes b/python-dash.changes index b9156e6..9d49268 100644 --- a/python-dash.changes +++ b/python-dash.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 26 07:22:29 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Sat Apr 18 20:31:40 UTC 2020 - Arun Persaud diff --git a/python-dash.spec b/python-dash.spec index 6a57801..2a0018b 100644 --- a/python-dash.spec +++ b/python-dash.spec @@ -40,6 +40,8 @@ Requires: python-future # needed for dash/testing/browser.py Requires: python-percy Requires: python-plotly +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Flask >= 1.0.2} @@ -74,13 +76,23 @@ sed -i -e 's:==:>=:g' requires-*txt %install %python_install +%python_clone -a %{buildroot}%{_bindir}/renderer +%python_clone -a %{buildroot}%{_bindir}/dash-generate-components %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative renderer +%python_install_alternative dash-generate-components + +%postun +%python_uninstall_alternative renderer +%python_uninstall_alternative dash-generate-components + %files %{python_files} %doc README.md %license LICENSE -%python3_only %{_bindir}/dash-generate-components -%python3_only %{_bindir}/renderer +%python_alternative %{_bindir}/dash-generate-components +%python_alternative %{_bindir}/renderer %{python_sitelib}/dash %{python_sitelib}/dash-%{version}-py*.egg-info