Hello community, here is the log from the commit of package python-exrex for openSUSE:Factory checked in at 2020-05-28 09:17:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-exrex (Old) and /work/SRC/openSUSE:Factory/.python-exrex.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-exrex" Thu May 28 09:17:27 2020 rev:4 rq:809387 version:0.10.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-exrex/python-exrex.changes 2019-06-06 18:16:33.756699376 +0200 +++ /work/SRC/openSUSE:Factory/.python-exrex.new.3606/python-exrex.changes 2020-05-28 09:17:31.776993491 +0200 @@ -1,0 +2,5 @@ +Tue May 26 06:34:10 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-exrex.spec ++++++ --- /var/tmp/diff_new_pack.LR51jk/_old 2020-05-28 09:17:32.340994822 +0200 +++ /var/tmp/diff_new_pack.LR51jk/_new 2020-05-28 09:17:32.340994822 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-exrex # -# Copyright (c) 2019 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 @@ -31,6 +31,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -47,15 +49,22 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/exrex rm %{buildroot}%{_bindir}/exrex.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # no upstream tests +%post +%python_install_alternative exrex + +%postun +%python_uninstall_alternative exrex + %files %{python_files} %{python_sitelib}/* %license COPYING -%python3_only %{_bindir}/exrex +%python_alternative %{_bindir}/exrex %changelog
