Hello community,

here is the log from the commit of package python-CacheControl for 
openSUSE:Factory checked in at 2020-06-10 00:44:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-CacheControl (Old)
 and      /work/SRC/openSUSE:Factory/.python-CacheControl.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-CacheControl"

Wed Jun 10 00:44:44 2020 rev:8 rq:809828 version:0.12.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-CacheControl/python-CacheControl.changes  
2020-01-03 17:36:43.467287659 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-CacheControl.new.3606/python-CacheControl.changes
        2020-06-10 00:44:49.218395200 +0200
@@ -1,0 +2,5 @@
+Wed May 27 09:36:33 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-CacheControl.spec ++++++
--- /var/tmp/diff_new_pack.HUa6Ui/_old  2020-06-10 00:44:50.566398565 +0200
+++ /var/tmp/diff_new_pack.HUa6Ui/_new  2020-06-10 00:44:50.570398575 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-CacheControl
 #
-# Copyright (c) 2020 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
@@ -30,6 +30,8 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-msgpack
 Requires:       python-requests
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Recommends:     python-lockfile >= 0.9
 Suggests:       python-redis >= 2.10.5
 BuildArch:      noarch
@@ -57,16 +59,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/doesitcache
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 # test_file_cache_recognizes_consumed_file_handle uses httpbin.org directly
 PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_bin_suffix} -v -k 
'not test_file_cache_recognizes_consumed_file_handle'
 
+%post
+%python_install_alternative doesitcache
+
+%postun
+%python_uninstall_alternative doesitcache
+
 %files %{python_files}
 %license LICENSE.txt
 %doc README.rst
-%python3_only %{_bindir}/doesitcache
+%python_alternative %{_bindir}/doesitcache
 %{python_sitelib}/*
 
 %changelog


Reply via email to