From c3db41b316d2a00bcc9baea830c58fd756d784eeafe50c920f555f371c74a3c3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 3 Dec 2020 06:45:12 +0000 Subject: [PATCH] Accepting request 852774 from home:bnavigator:branches:devel:languages:python - Use update-alternatives for multiple supported python-flavors gh#openSUSE/python-rpm-macros#66 OBS-URL: https://build.opensuse.org/request/show/852774 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbus-deviation?expand=0&rev=3 --- python-dbus-deviation.changes | 6 ++++++ python-dbus-deviation.spec | 18 ++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/python-dbus-deviation.changes b/python-dbus-deviation.changes index 1acda25..0835390 100644 --- a/python-dbus-deviation.changes +++ b/python-dbus-deviation.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 3 01:06:37 UTC 2020 - Benjamin Greiner + +- Use update-alternatives for multiple supported python-flavors + gh#openSUSE/python-rpm-macros#66 + ------------------------------------------------------------------- Tue Aug 4 12:05:17 UTC 2020 - Antonio Larrosa diff --git a/python-dbus-deviation.spec b/python-dbus-deviation.spec index 054a66f..8b21490 100644 --- a/python-dbus-deviation.spec +++ b/python-dbus-deviation.spec @@ -53,16 +53,26 @@ sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/utilities/*.py %install %python_install +%python_clone -a %{buildroot}%{_bindir}/dbus-interface-diff +%python_clone -a %{buildroot}%{_bindir}/dbus-interface-vcs-helper %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pyunittest -v + +%post +%python_install_alternative dbus-interface-diff dbus-interface-vcs-helper + +%postun +%python_uninstall_alternative dbus-interface-diff %files %{python_files} %doc AUTHORS NEWS README %license COPYING -%python3_only %{_bindir}/dbus-interface-diff -%python3_only %{_bindir}/dbus-interface-vcs-helper -%{python_sitelib}/* +%python_alternative %{_bindir}/dbus-interface-diff +%python_alternative %{_bindir}/dbus-interface-vcs-helper +%{python_sitelib}/dbusapi +%{python_sitelib}/dbusdeviation +%{python_sitelib}/dbus_deviation-%{version}*-info %changelog