15
0

Accepting request 808748 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/808748
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-helpdev?expand=0&rev=8
This commit is contained in:
Tomáš Chvátal
2020-05-25 13:34:47 +00:00
committed by Git OBS Bridge
parent 208e7acf48
commit d722408fc0
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 25 10:59:16 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 18 08:11:04 UTC 2020 - Antonio Larrosa <alarrosa@suse.com> Mon May 18 08:11:04 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>

View File

@@ -30,6 +30,8 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-importlib-metadata Requires: python-importlib-metadata
Requires: python-psutil >= 5.6 Requires: python-psutil >= 5.6
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module importlib-metadata} BuildRequires: %{python_module importlib-metadata}
@@ -50,15 +52,22 @@ sed -i '1{\,^#!%{_bindir}/env python,d}' helpdev/*.py
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/helpdev
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
#test_check_python_packages needs the binary #test_check_python_packages needs the binary
%pytest -k 'not test_check_python_packages' %pytest -k 'not test_check_python_packages'
%post
%python_install_alternative helpdev
%postun
%python_uninstall_alternative helpdev
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%python3_only %{_bindir}/helpdev %python_alternative %{_bindir}/helpdev
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog