Accepting request 809257 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/809257 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flit?expand=0&rev=3
This commit is contained in:
parent
7bce029f45
commit
366e3a25f0
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 26 06:34:17 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun May 19 05:59:49 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
Sun May 19 05:59:49 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-flit
|
# spec file for package python-flit
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -39,6 +39,8 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: python-docutils
|
Requires: python-docutils
|
||||||
Requires: python-pytoml
|
Requires: python-pytoml
|
||||||
Requires: python-requests-download
|
Requires: python-requests-download
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{python3_version_nodots} < 36
|
%if %{python3_version_nodots} < 36
|
||||||
BuildRequires: %{python_module zipfile36}
|
BuildRequires: %{python_module zipfile36}
|
||||||
@ -61,6 +63,7 @@ sed -i 's/distutils.core/setuptools/' setup.py
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/flit
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -68,10 +71,16 @@ sed -i 's/distutils.core/setuptools/' setup.py
|
|||||||
# test_invalid_classifier requires internet
|
# test_invalid_classifier requires internet
|
||||||
%pytest -k 'not (test_build_sdist or test_invalid_classifier)'
|
%pytest -k 'not (test_build_sdist or test_invalid_classifier)'
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative flit
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative flit
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python3_only %{_bindir}/flit
|
%python_alternative %{_bindir}/flit
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user