Hello community, here is the log from the commit of package python-PyFxA for openSUSE:Leap:15.2 checked in at 2020-06-01 23:03:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-PyFxA (Old) and /work/SRC/openSUSE:Leap:15.2/.python-PyFxA.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PyFxA" Mon Jun 1 23:03:05 2020 rev:5 rq:809174 version:0.7.3 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-PyFxA/python-PyFxA.changes 2020-03-09 18:01:08.800691853 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-PyFxA.new.3606/python-PyFxA.changes 2020-06-01 23:03:06.238739166 +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.uAC4eM/_old 2020-06-01 23:03:06.610740346 +0200 +++ /var/tmp/diff_new_pack.uAC4eM/_new 2020-06-01 23:03:06.614740358 +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