Hello community,

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

Package is "python-PyFxA"

Tue May 26 17:17:36 2020 rev:8 rq:807663 version:0.7.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-PyFxA/python-PyFxA.changes        
2019-07-26 12:44:31.333834280 +0200
+++ /work/SRC/openSUSE:Factory/.python-PyFxA.new.2738/python-PyFxA.changes      
2020-05-26 17:18:23.327854645 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:28 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-PyFxA.spec ++++++
--- /var/tmp/diff_new_pack.dHGVOc/_old  2020-05-26 17:18:24.403856958 +0200
+++ /var/tmp/diff_new_pack.dHGVOc/_new  2020-05-26 17:18:24.407856967 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-PyFxA
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2017-2018 The openSUSE Project.
 #
 # All modifications and additions to the file contributed by third parties
@@ -42,6 +42,8 @@
 Requires:       python-cryptography
 Requires:       python-requests >= 2.4.2
 Requires:       python-six
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %ifpython3
 Requires:       python-setuptools
@@ -63,15 +65,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/fxa-client
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 # test_monkey_patch_for_gevent gevent no longer packaged as it is deprecated
-%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} 
py.test-%{$python_bin_suffix} -v -k 'not test_monkey_patch_for_gevent' 
fxa/tests/
+%pytest -k 'not test_monkey_patch_for_gevent' fxa/tests/
+
+%post
+%python_install_alternative fxa-client
+
+%postun
+%python_uninstall_alternative fxa-client
 
 %files %{python_files}
 %doc CHANGES.txt README.rst
-%python3_only %{_bindir}/fxa-client
+%python_alternative %{_bindir}/fxa-client
 %{python_sitelib}/*
 
 %changelog


Reply via email to