Hello community, here is the log from the commit of package python-audio-degrader for openSUSE:Factory checked in at 2020-06-03 20:31:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-audio-degrader (Old) and /work/SRC/openSUSE:Factory/.python-audio-degrader.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-audio-degrader" Wed Jun 3 20:31:27 2020 rev:2 rq:809811 version:1.2.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-audio-degrader/python-audio-degrader.changes 2019-12-10 22:42:13.501813528 +0100 +++ /work/SRC/openSUSE:Factory/.python-audio-degrader.new.3606/python-audio-degrader.changes 2020-06-03 20:32:08.525104216 +0200 @@ -1,0 +2,5 @@ +Wed May 27 09:36:07 UTC 2020 - Petr Gajdos <pgaj...@suse.com> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-audio-degrader.spec ++++++ --- /var/tmp/diff_new_pack.izvyZP/_old 2020-06-03 20:32:10.077108935 +0200 +++ /var/tmp/diff_new_pack.izvyZP/_new 2020-06-03 20:32:10.081108946 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-audio-degrader # -# 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 @@ -29,6 +29,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-librosa >= 0.6.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module librosa >= 0.6.0} @@ -48,6 +50,7 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/audio_degrader %python_expand %fdupes %{buildroot}%{$python_sitelib} # Tests are not in sdist and there is no github tag for the latest release @@ -56,10 +59,16 @@ # %%check # %%pytest +%post +%python_install_alternative audio_degrader + +%postun +%python_uninstall_alternative audio_degrader + %files %{python_files} %license LICENSE.txt %doc README.md -%python3_only %{_bindir}/audio_degrader +%python_alternative %{_bindir}/audio_degrader %{python_sitelib}/* %changelog