Hello community, here is the log from the commit of package python-managesieve for openSUSE:Factory checked in at 2020-05-26 17:23:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-managesieve (Old) and /work/SRC/openSUSE:Factory/.python-managesieve.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-managesieve" Tue May 26 17:23:20 2020 rev:17 rq:808681 version:0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-managesieve/python-managesieve.changes 2019-02-20 14:15:21.538858522 +0100 +++ /work/SRC/openSUSE:Factory/.python-managesieve.new.2738/python-managesieve.changes 2020-05-26 17:23:21.128494868 +0200 @@ -1,0 +2,5 @@ +Mon May 25 06:50:44 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-managesieve.spec ++++++ --- /var/tmp/diff_new_pack.2Lf6Hu/_old 2020-05-26 17:23:21.648495986 +0200 +++ /var/tmp/diff_new_pack.2Lf6Hu/_new 2020-05-26 17:23:21.652495995 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-managesieve # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2009 Guido Berhoerster. # # All modifications and additions to the file contributed by third parties @@ -19,7 +19,6 @@ %define oname managesieve %{?!python_module:%define python_module() python-%{**} python3-%{**}} - Name: python-managesieve Version: 0.6 Release: 0 @@ -32,6 +31,8 @@ BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives # provides same binary: /usr/bin/sieveshell Conflicts: perl-Cyrus-SIEVE-managesieve BuildArch: noarch @@ -53,15 +54,21 @@ %install %python_install -%python_clone %{buildroot}%{_bindir}/sieveshell +%python_clone -a %{buildroot}%{_bindir}/sieveshell %check %python_exec setup.py test -v +%post +%python_install_alternative sieveshell + +%postun +%python_uninstall_alternative sieveshell + %files %{python_files} %doc README.txt %{_bindir}/sieveshell-%{python_bin_suffix} -%python3_only %{_bindir}/sieveshell +%python_alternative %{_bindir}/sieveshell %{python_sitelib}/* %changelog
