Hello community,

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

Package is "python-petact"

Tue May 26 17:17:07 2020 rev:3 rq:807653 version:0.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-petact/python-petact.changes      
2019-06-06 18:16:26.316701555 +0200
+++ /work/SRC/openSUSE:Factory/.python-petact.new.2738/python-petact.changes    
2020-05-26 17:18:05.687816722 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:12 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-petact.spec ++++++
--- /var/tmp/diff_new_pack.epRnS4/_old  2020-05-26 17:18:06.615818717 +0200
+++ /var/tmp/diff_new_pack.epRnS4/_new  2020-05-26 17:18:06.619818726 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-petact
 #
-# 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
@@ -30,6 +30,8 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -49,15 +51,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/petact
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 # no upstream tests
 
+%post
+%python_install_alternative petact
+
+%postun
+%python_uninstall_alternative petact
+
 %files %{python_files}
 %doc README.md
 %license LICENSE
-%python3_only %{_bindir}/petact
+%python_alternative %{_bindir}/petact
 %{python_sitelib}/*
 
 %changelog


Reply via email to