Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-natsort for openSUSE:Factory checked in at 2021-01-20 18:27:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-natsort (Old) and /work/SRC/openSUSE:Factory/.python-natsort.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-natsort" Wed Jan 20 18:27:16 2021 rev:17 rq:864431 version:7.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-natsort/python-natsort.changes 2020-11-25 19:30:27.090562266 +0100 +++ /work/SRC/openSUSE:Factory/.python-natsort.new.28504/python-natsort.changes 2021-01-20 18:27:46.855537339 +0100 @@ -1,0 +2,5 @@ +Tue Jan 19 20:56:40 UTC 2021 - Matej Cepl <mc...@suse.com> + +- Set up alternatives correctly. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-natsort.spec ++++++ --- /var/tmp/diff_new_pack.XCuQrZ/_old 2021-01-20 18:27:47.483537915 +0100 +++ /var/tmp/diff_new_pack.XCuQrZ/_new 2021-01-20 18:27:47.487537918 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-natsort # -# 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 @@ -37,6 +37,8 @@ Requires: python-setuptools Recommends: python-PyICU >= 1.0.0 Recommends: python-fastnumbers >= 2.0.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -54,21 +56,31 @@ %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} export PYTHONPATH=%{buildroot}%{python3_sitelib} help2man -o natsort.1 -N %{buildroot}%{_bindir}/natsort install -Dm0644 natsort.1 %{buildroot}%{_mandir}/man1/natsort.1 +%python_clone -a %{buildroot}%{_bindir}/natsort +%python_clone -a %{buildroot}%{_mandir}/man1/natsort.1 + +%python_expand %fdupes %{buildroot}%{$python_sitelib} + %check export LANG=en_US.UTF8 %pytest --hypothesis-profile=slow-tests +%post +%python_install_alternative natsort natsort.1 + +%postun +%python_uninstall_alternative natsort + %files %{python_files} %license LICENSE %doc README.rst CHANGELOG.md -%{_mandir}/man1/natsort.1%{?ext_man} -%{_bindir}/natsort +%python_alternative %{_bindir}/natsort +%python_alternative %{_mandir}/man1/natsort.1%{?ext_man} %{python_sitelib}/natsort* %changelog