Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package bump2version for openSUSE:Factory checked in at 2021-02-18 20:39:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bump2version (Old) and /work/SRC/openSUSE:Factory/.bump2version.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bump2version" Thu Feb 18 20:39:54 2021 rev:3 rq:868014 version:1.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/bump2version/bump2version.changes 2020-05-26 17:20:42.268153344 +0200 +++ /work/SRC/openSUSE:Factory/.bump2version.new.28504/bump2version.changes 2021-02-18 20:50:20.123322486 +0100 @@ -1,0 +2,5 @@ +Sat Jan 23 17:38:14 UTC 2021 - Sebastian Wagner <sebix+novell....@sebix.at> + +- use python alternatives for executables + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bump2version.spec ++++++ --- /var/tmp/diff_new_pack.zO3rDV/_old 2021-02-18 20:50:20.723323049 +0100 +++ /var/tmp/diff_new_pack.zO3rDV/_new 2021-02-18 20:50:20.727323053 +0100 @@ -1,7 +1,7 @@ # # spec file for package bump2version # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -32,6 +32,8 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Obsoletes: bumpversion <= 0.6.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -54,17 +56,25 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/bump2version +%python_clone -a %{buildroot}%{_bindir}/bumpversion %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # test_usage_string_fork: bumpversion is not in PATH %pytest -k 'not test_usage_string_fork' +%post +%{python_install_alternative bump2version bumpversion} + +%postun +%python_uninstall_alternative bump2version + %files %{python_files} %doc README.md %license LICENSE.rst -%python3_only %{_bindir}/bumpversion -%python3_only %{_bindir}/bump2version +%python_alternative %{_bindir}/bump2version +%python_alternative %{_bindir}/bumpversion %{python_sitelib}/* %changelog