15
0

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
This commit is contained in:
2020-12-03 06:45:12 +00:00
committed by Git OBS Bridge
parent 3d191752d2
commit c3db41b316
2 changed files with 20 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 3 01:06:37 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Use update-alternatives for multiple supported python-flavors
gh#openSUSE/python-rpm-macros#66
-------------------------------------------------------------------
Tue Aug 4 12:05:17 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>

View File

@@ -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