forked from pool/python-dbus-deviation
Accepting request 852870 from devel:languages:python
- Add missing uninstall alternative - Use update-alternatives for multiple supported python-flavors gh#openSUSE/python-rpm-macros#66 OBS-URL: https://build.opensuse.org/request/show/852870 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dbus-deviation?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 3 07:40:06 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add missing uninstall alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
||||
@@ -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 dbus-interface-vcs-helper
|
||||
|
||||
%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
|
||||
|
||||
Reference in New Issue
Block a user