Hello community, here is the log from the commit of package python-pyjokes for openSUSE:Factory checked in at 2020-05-26 17:17:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyjokes (Old) and /work/SRC/openSUSE:Factory/.python-pyjokes.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyjokes" Tue May 26 17:17:46 2020 rev:4 rq:807665 version:0.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyjokes/python-pyjokes.changes 2019-09-11 10:36:54.671269784 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyjokes.new.2738/python-pyjokes.changes 2020-05-26 17:18:27.419863442 +0200 @@ -1,0 +2,5 @@ +Wed May 20 07:26:31 UTC 2020 - Petr Gajdos <[email protected]> + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyjokes.spec ++++++ --- /var/tmp/diff_new_pack.HI0w4u/_old 2020-05-26 17:18:28.643866074 +0200 +++ /var/tmp/diff_new_pack.HI0w4u/_new 2020-05-26 17:18:28.647866082 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyjokes # -# 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: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -46,13 +48,23 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pyjokes +%python_clone -a %{buildroot}%{_bindir}/pyjoke %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative pyjokes +%python_install_alternative pyjoke + +%postun +%python_uninstall_alternative pyjokes +%python_uninstall_alternative pyjoke + %files %{python_files} %doc README.rst %license LICENCE.txt -%python3_only %{_bindir}/pyjoke -%python3_only %{_bindir}/pyjokes +%python_alternative %{_bindir}/pyjoke +%python_alternative %{_bindir}/pyjokes %{python_sitelib}/* %changelog
