Hello community,

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

Package is "python-hyper"

Thu May 28 20:09:07 2020 rev:3 rq:809067 version:0.7.0+git88.18b629b

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-hyper/python-hyper.changes      
2020-04-25 19:06:19.695756149 +0200
+++ /work/SRC/openSUSE:Leap:15.2/.python-hyper.new.3606/python-hyper.changes    
2020-05-28 20:09:10.710824397 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:21 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-hyper.spec ++++++
--- /var/tmp/diff_new_pack.KYJNRm/_old  2020-05-28 20:09:11.094825540 +0200
+++ /var/tmp/diff_new_pack.KYJNRm/_new  2020-05-28 20:09:11.098825552 +0200
@@ -49,6 +49,8 @@
 Requires:       python-h2 > 2.5.0
 Requires:       python-hyperframe >= 3.2
 Requires:       python-rfc3986 >= 1.1.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 %if %{with python2}
 BuildRequires:  python-enum34 >= 1.0.4
 BuildRequires:  python-futures
@@ -78,6 +80,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/hyper
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -85,10 +88,16 @@
 # test_useful_error_with_no_protocol test_goaway_frame_PROTOCOL_ERROR 
test_goaway_frame_HTTP_1_1_REQUIRED test_goaway_frame_invalid_error_code - 
httplib update changed error messages reported
 %python_exec setup.py pytest --addopts="test/ -k 'not (rpmfail_getaddrinfo or 
test_HTTPConnection_with_custom_context or test_useful_error_with_no_protocol 
or test_goaway_frame_PROTOCOL_ERROR or test_goaway_frame_HTTP_1_1_REQUIRED or 
test_goaway_frame_invalid_error_code)'"
 
+%post
+%python_install_alternative hyper
+
+%postun
+%python_uninstall_alternative hyper
+
 %files %{python_files}
 %license LICENSE
 %doc README.rst
-%python3_only %{_bindir}/hyper
+%python_alternative %{_bindir}/hyper
 %{python_sitelib}/hyper*
 
 %changelog


Reply via email to