Hello community, here is the log from the commit of package python-peewee for openSUSE:Factory checked in at 2020-05-26 17:17:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-peewee (Old) and /work/SRC/openSUSE:Factory/.python-peewee.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-peewee" Tue May 26 17:17:03 2020 rev:14 rq:807652 version:3.13.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-peewee/python-peewee.changes 2020-03-19 19:53:06.640275169 +0100 +++ /work/SRC/openSUSE:Factory/.python-peewee.new.2738/python-peewee.changes 2020-05-26 17:18:01.923808630 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:11 UTC 2020 - Petr Gajdos <pgaj...@suse.com> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-peewee.spec ++++++ --- /var/tmp/diff_new_pack.jCkXdw/_old 2020-05-26 17:18:02.819810556 +0200 +++ /var/tmp/diff_new_pack.jCkXdw/_new 2020-05-26 17:18:02.819810556 +0200 @@ -38,6 +38,8 @@ BuildRequires: python-rpm-macros BuildRequires: unzip BuildRequires: pkgconfig(sqlite3) +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -51,17 +53,23 @@ %install %python_install -%python_clone %{buildroot}%{_bindir}/pwiz.py +%python_clone -a %{buildroot}%{_bindir}/pwiz.py %python_expand %fdupes %{buildroot}%{$python_sitearch} %check %pytest_arch tests +%post +%python_install_alternative pwiz.py + +%postun +%python_uninstall_alternative pwiz.py + %files %{python_files} %license LICENSE %doc CHANGELOG.md README.rst TODO.rst %{_bindir}/pwiz.py-%{python_bin_suffix} -%python3_only %{_bindir}/pwiz.py +%python_alternative %{_bindir}/pwiz.py %{python_sitearch}/* %changelog