Hello community,

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

Package is "python-glean"

Thu May 28 09:16:48 2020 rev:6 rq:809365 version:1.15.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-glean/python-glean.changes        
2020-05-01 11:13:08.831820566 +0200
+++ /work/SRC/openSUSE:Factory/.python-glean.new.3606/python-glean.changes      
2020-05-28 09:16:57.120911721 +0200
@@ -1,0 +2,5 @@
+Tue May 26 06:34:26 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-glean.spec ++++++
--- /var/tmp/diff_new_pack.C4clu5/_old  2020-05-28 09:16:58.028913863 +0200
+++ /var/tmp/diff_new_pack.C4clu5/_new  2020-05-28 09:16:58.032913872 +0200
@@ -23,11 +23,15 @@
 Summary:        Program to write static config from config-drive
 License:        Apache-2.0
 Group:          Development/Languages/Python
-URL:            http://www.openstack.org/
+URL:            https://www.openstack.org/
 Source:         
https://files.pythonhosted.org/packages/source/g/glean/glean-%{version}.tar.gz
 BuildRequires:  %{python_module pbr}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module Sphinx >= 1.1.2}
 BuildRequires:  %{python_module mock >= 1.0}
@@ -38,9 +42,6 @@
 BuildRequires:  %{python_module testscenarios >= 0.4}
 BuildRequires:  %{python_module testtools >= 0.9.34}
 # /SECTION
-BuildRequires:  fdupes
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -58,6 +59,9 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/glean-install
+%python_clone -a %{buildroot}%{_bindir}/glean
+%python_clone -a %{buildroot}%{_bindir}/glean.sh
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -66,12 +70,22 @@
 $python setup.py test
 }
 
+%post
+%python_install_alternative glean-install
+%python_install_alternative glean
+%python_install_alternative glean.sh
+
+%postun
+%python_uninstall_alternative glean-install
+%python_uninstall_alternative glean
+%python_uninstall_alternative glean.sh
+
 %files %{python_files}
 %doc AUTHORS ChangeLog README.rst
 %license LICENSE
-%python3_only %{_bindir}/glean.sh
-%python3_only %{_bindir}/glean
-%python3_only %{_bindir}/glean-install
+%python_alternative %{_bindir}/glean.sh
+%python_alternative %{_bindir}/glean
+%python_alternative %{_bindir}/glean-install
 %{python_sitelib}/*
 
 %changelog


Reply via email to