15
0
forked from pool/python-petact

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-petact?expand=0&rev=9
This commit is contained in:
2025-06-09 14:39:36 +00:00
committed by Git OBS Bridge
parent 5de073e183
commit 2f301c5bae
2 changed files with 10 additions and 7 deletions

View File

@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
Name: python-petact
Version: 0.1.2
Release: 0
@@ -28,11 +29,11 @@ Source99: https://raw.githubusercontent.com/MatthewScholefield/petact/mast
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-setuptools
Requires(post): alts
Requires(postun): alts
BuildArch: noarch
%python_subpackages
@@ -58,11 +59,8 @@ cp %{SOURCE99} .
%check
# no upstream tests
%post
%python_install_alternative petact
%postun
%python_uninstall_alternative petact
%pre
%python_libalternatives_reset_alternative petact
%files %{python_files}
%doc README.md