Hello community, here is the log from the commit of package python-pyperf for openSUSE:Factory checked in at 2020-05-26 17:18:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyperf (Old) and /work/SRC/openSUSE:Factory/.python-pyperf.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyperf" Tue May 26 17:18:32 2020 rev:4 rq:807684 version:2.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyperf/python-pyperf.changes 2020-03-23 12:50:40.227960558 +0100 +++ /work/SRC/openSUSE:Factory/.python-pyperf.new.2738/python-pyperf.changes 2020-05-26 17:19:00.111933725 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:37 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyperf.spec ++++++ --- /var/tmp/diff_new_pack.E0CaZB/_old 2020-05-26 17:19:01.063935772 +0200 +++ /var/tmp/diff_new_pack.E0CaZB/_new 2020-05-26 17:19:01.063935772 +0200 @@ -28,6 +28,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: python-psutil BuildArch: noarch # SECTION test requirements @@ -48,15 +50,22 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pyperf %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest +%post +%python_install_alternative pyperf + +%postun +%python_uninstall_alternative pyperf + %files %{python_files} %doc README.rst %license COPYING -%python3_only %{_bindir}/pyperf +%python_alternative %{_bindir}/pyperf %{python_sitelib}/* %changelog
