diff --git a/python-phply.changes b/python-phply.changes index 6b25d59..1fabb44 100644 --- a/python-phply.changes +++ b/python-phply.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 14:41:21 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Jun 3 11:12:29 UTC 2025 - Markéta Machová diff --git a/python-phply.spec b/python-phply.spec index 529ed89..7db7bcd 100644 --- a/python-phply.spec +++ b/python-phply.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-phply Version: 1.2.6 Release: 0 @@ -29,11 +30,11 @@ BuildRequires: %{python_module ply} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-ply -Requires(post): alts -Requires(postun): alts BuildArch: noarch %python_subpackages @@ -56,13 +57,9 @@ phply is a parser for the PHP programming language written using PLY, a Lex/YACC %check %pytest -%post -%python_install_alternative phpparse -%python_install_alternative phplex - -%postun -%python_uninstall_alternative phpparse -%python_uninstall_alternative phplex +%pre +%python_libalternatives_reset_alternative phpparse +%python_libalternatives_reset_alternative phplex %files %{python_files} %license LICENSE