15
0
forked from pool/python-PyFxA

Accepting request 807616 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807616
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyFxA?expand=0&rev=16
This commit is contained in:
Tomáš Chvátal
2020-05-20 11:29:39 +00:00
committed by Git OBS Bridge
parent bb7fe2c12e
commit f54a75f813
2 changed files with 17 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 20 07:26:28 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Fri Jul 26 07:07:23 UTC 2019 - Antoine Belvire <antoine.belvire@opensuse.org>

View File

@@ -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-PyBrowserID
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 @@ find ./ -type f -exec chmod -x {} +
%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