Hello community,

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

Package is "python-subst"

Thu May 28 20:08:08 2020 rev:2 rq:807321 version:0.4.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-subst/python-subst.changes      
2020-02-22 18:49:43.208393741 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-subst.new.3606/python-subst.changes    
2020-05-28 20:08:08.898640409 +0200
@@ -1,0 +2,5 @@
+Tue May 19 08:03:08 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-subst.spec ++++++
--- /var/tmp/diff_new_pack.VxzZ3F/_old  2020-05-28 20:08:09.226641385 +0200
+++ /var/tmp/diff_new_pack.VxzZ3F/_new  2020-05-28 20:08:09.230641397 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-subst
 #
-# 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
@@ -12,26 +12,26 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-subst
 Version:        0.4.0
 Release:        0
-License:        MIT
 Summary:        Utility to replace one string into another in given list of 
files
-Url:            http://mysz.github.io/subst/
+License:        MIT
 Group:          Development/Languages/Python
+URL:            http://mysz.github.io/subst/
 Source:         
https://files.pythonhosted.org/packages/source/s/subst/subst-%{version}.tar.gz
 Source1:        
https://raw.githubusercontent.com/msztolcman/subst/master/LICENSE
-BuildRequires:  python-rpm-macros
 BuildRequires:  %{python_module setuptools}
-# SECTION test requirements
-# /SECTION
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -52,16 +52,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/subst
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 export PYTHONPATH=${PWD}/test
 %python_exec setup.py test
 
+%post
+%python_install_alternative subst
+
+%postun
+%python_uninstall_alternative subst
+
 %files %{python_files}
 %license LICENSE
 %doc README.rst
-%python3_only %{_bindir}/subst
+%python_alternative %{_bindir}/subst
 %{python_sitelib}/*
 
 %changelog


Reply via email to