forked from pool/python-pythonfinder
Accepting request 807636 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807636 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pythonfinder?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
8a30a16790
commit
bee2a8a4aa
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 20 07:26:51 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 10 14:59:00 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
Fri Jan 10 14:59:00 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@@ -35,6 +35,8 @@ Requires: python-crayons
|
|||||||
Requires: python-packaging
|
Requires: python-packaging
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
Requires: python-vistir >= 0.2.5
|
Requires: python-vistir >= 0.2.5
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module attrs}
|
BuildRequires: %{python_module attrs}
|
||||||
@@ -66,6 +68,7 @@ rm -rf src/pythonfinder/_vendor/pep514tools
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/pyfinder
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -73,10 +76,16 @@ rm -rf src/pythonfinder/_vendor/pep514tools
|
|||||||
# to modify read-only system image files.
|
# to modify read-only system image files.
|
||||||
%pytest -k 'not (test_python_versions or test_shims_are_kept or test_shims_are_removed)'
|
%pytest -k 'not (test_python_versions or test_shims_are_kept or test_shims_are_removed)'
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative pyfinder
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative pyfinder
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGELOG.rst README.rst
|
%doc CHANGELOG.rst README.rst
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%python3_only %{_bindir}/pyfinder
|
%python_alternative %{_bindir}/pyfinder
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user