Hello community,

here is the log from the commit of package python-pyjokes for 
openSUSE:Leap:15.2 checked in at 2020-05-28 20:10:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pyjokes (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-pyjokes.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyjokes"

Thu May 28 20:10:44 2020 rev:12 rq:809516 version:0.6.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-pyjokes/python-pyjokes.changes  
2020-03-02 13:20:58.214113641 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-pyjokes.new.3606/python-pyjokes.changes    
    2020-05-28 20:10:48.151114434 +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.ThvcGm/_old  2020-05-28 20:10:48.499115469 +0200
+++ /var/tmp/diff_new_pack.ThvcGm/_new  2020-05-28 20:10:48.499115469 +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


Reply via email to