From a98ca8effdab3850ec4b8f0dbc3bae8015e7cebf3d18065fe142fbcbafbee078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Wed, 10 Nov 2021 14:13:15 +0000 Subject: [PATCH] fix OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hunter?expand=0&rev=2 --- python-hunter.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/python-hunter.spec b/python-hunter.spec index 5f2e6a1..9e68832 100644 --- a/python-hunter.spec +++ b/python-hunter.spec @@ -29,6 +29,8 @@ BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun):update-alternatives %python_subpackages %description @@ -44,14 +46,20 @@ but for debugging, logging, inspection and other nefarious purposes. %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch}/ +%python_clone -a %{buildroot}%{_bindir}/hunter-trace %check +%post +%python_install_alternative hunter-trace + +%postun +%python_uninstall_alternative hunter-trace + %files %{python_files} +%python_alternative %{_bindir}/hunter-trace %license LICENSE %doc AUTHORS.rst CHANGELOG.rst README.rst -%{python_sitelib}/pytest-cov.pth -%{python_sitelib}/pytest_cov -%{python_sitelib}/pytest_cov-%{version}-py%{python_version}.egg-info +%{python_sitearch}/* %changelog