Hello community,
here is the log from the commit of package python-bugzillatools for
openSUSE:Factory checked in at 2020-06-10 00:44:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-bugzillatools (Old)
and /work/SRC/openSUSE:Factory/.python-bugzillatools.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-bugzillatools"
Wed Jun 10 00:44:51 2020 rev:7 rq:809829 version:0.5.5
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-bugzillatools/python-bugzillatools.changes
2018-12-13 19:48:03.876730443 +0100
+++
/work/SRC/openSUSE:Factory/.python-bugzillatools.new.3606/python-bugzillatools.changes
2020-06-10 00:44:53.054404776 +0200
@@ -1,0 +2,5 @@
+Wed May 27 09:36:32 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-bugzillatools.spec ++++++
--- /var/tmp/diff_new_pack.Yc4H4D/_old 2020-06-10 00:44:54.458408281 +0200
+++ /var/tmp/diff_new_pack.Yc4H4D/_new 2020-06-10 00:44:54.462408291 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-bugzillatools
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -34,6 +34,8 @@
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
# We want to conflict even package literally called python-bugzilla
# without the python version number
Conflicts: %{oldpython}-bugzilla
@@ -58,14 +60,21 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/bugzilla
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -munittest discover -v
+%post
+%python_install_alternative bugzilla
+
+%postun
+%python_uninstall_alternative bugzilla
+
%files %{python_files}
%doc CHANGES README.rst gpl-3.0.txt
-%python3_only %{_bindir}/bugzilla
+%python_alternative %{_bindir}/bugzilla
%{python_sitelib}/bzlib
%{python_sitelib}/bzrlib
%{python_sitelib}/bugzillatools-%{version}-py%{python_version}.egg-info