From cef55211faf9e2d0beb0234824bf872711f288073dda293e0efc36d994d0b0ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 14:43:55 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-phply?expand=0&rev=14 --- python-phply.changes | 5 +++++ python-phply.spec | 15 ++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) 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