diff --git a/python-pystache.changes b/python-pystache.changes index f543ceb..5ccade4 100644 --- a/python-pystache.changes +++ b/python-pystache.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 27 14:52:00 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Thu Jun 26 12:52:01 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-pystache.spec b/python-pystache.spec index f3db7ef..ee75e5f 100644 --- a/python-pystache.spec +++ b/python-pystache.spec @@ -17,6 +17,7 @@ %{?sle15_python_module_pythons} +%bcond_without libalternatives Name: python-pystache Version: 0.6.8 Release: 0 @@ -30,8 +31,10 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts BuildArch: noarch %description @@ -58,16 +61,14 @@ https://github.com/mustache/spec. %pyproject_install %python_clone -a %{buildroot}%{_bindir}/pystache %python_clone -a %{buildroot}%{_bindir}/pystache-test +%python_group_libalternatives pystache pystache-test %{python_expand %fdupes %{buildroot}%$python_sitelib/} %check %pytest -%post -%{python_install_alternative pystache pystache-test} - -%postun -%{python_uninstall_alternative pystache pystache-test} +%pre +%python_libalternatives_reset_alternative pystache %files %{python_files} %license LICENSE