Hello community,

here is the log from the commit of package python-subst for openSUSE:Factory 
checked in at 2020-05-19 14:57:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-subst (Old)
 and      /work/SRC/openSUSE:Factory/.python-subst.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-subst"

Tue May 19 14:57:13 2020 rev:2 rq:807264 version:0.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-subst/python-subst.changes        
2019-05-16 22:06:20.902491158 +0200
+++ /work/SRC/openSUSE:Factory/.python-subst.new.2738/python-subst.changes      
2020-05-19 14:57:15.525237616 +0200
@@ -1,0 +2,5 @@
+Tue May 19 08:03:08 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-subst.spec ++++++
--- /var/tmp/diff_new_pack.wWmMnf/_old  2020-05-19 14:57:16.641240091 +0200
+++ /var/tmp/diff_new_pack.wWmMnf/_new  2020-05-19 14:57:16.645240100 +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