Hello community,

here is the log from the commit of package python-moksha-common for 
openSUSE:Factory checked in at 2020-05-26 17:23:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-moksha-common (Old)
 and      /work/SRC/openSUSE:Factory/.python-moksha-common.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-moksha-common"

Tue May 26 17:23:01 2020 rev:3 rq:808675 version:1.2.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-moksha-common/python-moksha-common.changes    
    2018-12-24 11:39:49.941535142 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-moksha-common.new.2738/python-moksha-common.changes
      2020-05-26 17:23:14.912481504 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:50 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-moksha-common.spec ++++++
--- /var/tmp/diff_new_pack.1AjaeP/_old  2020-05-26 17:23:15.580482941 +0200
+++ /var/tmp/diff_new_pack.1AjaeP/_new  2020-05-26 17:23:15.584482949 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-moksha-common
 #
-# Copyright (c) 2018 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
@@ -33,6 +33,8 @@
 Requires:       python-kitchen
 Requires:       python-pytz
 Requires:       python-six
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %if %{with test}
 BuildRequires:  %{python_module decorator}
@@ -55,16 +57,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/moksha
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %if %{with test}
 %check
 %python_exec setup.py test
 %endif
 
+%post
+%python_install_alternative moksha
+
+%postun
+%python_uninstall_alternative moksha
+
 %files %{python_files}
 %license COPYING
 %doc AUTHORS README
-%python3_only %{_bindir}/moksha
+%python_alternative %{_bindir}/moksha
 %{python_sitelib}/*
 
 %changelog


Reply via email to