15
0
2025-06-09 13:26:12 +00:00
committed by Git OBS Bridge
parent 5e089bf865
commit 35afb0e0ec
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 9 13:25:52 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue May 27 09:49:35 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-eradicate
Version: 2.3.0
@@ -28,10 +29,10 @@ Source: https://files.pythonhosted.org/packages/source/e/eradicate/eradi
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): alts
Requires(postun): alts
Requires: alts
BuildArch: noarch
%python_subpackages
@@ -55,11 +56,8 @@ which is valid Python syntax, but is probably not code.)
%python_clone -a %{buildroot}%{_bindir}/eradicate
%post
%python_install_alternative eradicate
%postun
%python_uninstall_alternative eradicate
%pre
%python_libalternatives_reset_alternative eradicate
%check
%pyunittest -v