Hello community,

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

Package is "python-user_agent"

Tue May 19 14:48:16 2020 rev:5 rq:806959 version:0.1.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-user_agent/python-user_agent.changes      
2019-02-26 22:22:49.178057245 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-user_agent.new.2738/python-user_agent.changes
    2020-05-19 14:48:19.104049066 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:44 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-user_agent.spec ++++++
--- /var/tmp/diff_new_pack.XSo75e/_old  2020-05-19 14:48:20.088051168 +0200
+++ /var/tmp/diff_new_pack.XSo75e/_new  2020-05-19 14:48:20.092051177 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-user_agent
 #
-# 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
@@ -23,18 +23,19 @@
 Summary:        User-Agent generator for Python
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/lorien/user_agent
-Source:         
https://pypi.io/packages/source/u/user_agent/user_agent-%{version}.tar.gz
+URL:            https://github.com/lorien/user_agent
+Source:         
https://files.pythonhosted.org/packages/source/u/user_agent/user_agent-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-six
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module pytest}
 # /SECTION
-Requires:       python-six
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -48,14 +49,21 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/ua
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_exec setup.py test
 
+%post
+%python_install_alternative ua
+
+%postun
+%python_uninstall_alternative ua
+
 %files %{python_files}
 %license LICENSE
-%python3_only %{_bindir}/ua
+%python_alternative %{_bindir}/ua
 %{python_sitelib}/*
 
 %changelog


Reply via email to