Hello community,

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

Package is "python-flex"

Thu May 28 09:17:17 2020 rev:2 rq:809379 version:6.14.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-flex/python-flex.changes  2019-03-29 
20:34:59.294605173 +0100
+++ /work/SRC/openSUSE:Factory/.python-flex.new.3606/python-flex.changes        
2020-05-28 09:17:19.316964092 +0200
@@ -1,0 +2,5 @@
+Tue May 26 06:34:16 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-flex.spec ++++++
--- /var/tmp/diff_new_pack.gTbIeX/_old  2020-05-28 09:17:19.916965508 +0200
+++ /var/tmp/diff_new_pack.gTbIeX/_new  2020-05-28 09:17:19.920965517 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-flex
 #
-# 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
@@ -49,6 +49,8 @@
 Requires:       python-six >= 1.7.3
 Requires:       python-strict-rfc3339 >= 0.7
 Requires:       python-validate_email >= 1.2
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -63,15 +65,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/swagger-flex
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+%python_install_alternative swagger-flex
+
+%postun
+%python_uninstall_alternative swagger-flex
+
 %files %{python_files}
 %license LICENSE
 %doc CHANGELOG README.md
 %{python_sitelib}/*
-%python3_only %{_bindir}/swagger-flex
+%python_alternative %{_bindir}/swagger-flex
 
 %changelog


Reply via email to