From b3409028f223d4c11a75d87c001388e1602171b3 Mon Sep 17 00:00:00 2001
From: mcalabkova <>
Date: Jun 11 2025 14:53:09 +0000
Subject: Update python-phply to version 1.2.6 / rev 7 via SR 1284229
https://build.opensuse.org/request/show/1284229
by user mcalabkova + anag_factory
- Convert to libalternatives
---
diff --git a/.files b/.files
index 1e8ae65..900a6c3 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 616d7d4..1d38460 100644
--- a/.rev
+++ b/.rev
@@ -52,4 +52,12 @@
1282263
+
+ 65140db751e1b1d7e530f18d01bdf2f8
+ 1.2.6
+
+ anag_factory
+ - Convert to libalternatives
+ 1284229
+
diff --git a/python-phply.changes b/python-phply.changes
index 1e724c1..5e98b61 100644
--- a/python-phply.changes
+++ b/python-phply.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+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á
- Convert to pip-based build
diff --git a/python-phply.spec b/python-phply.spec
index 9d93209..a7e7580 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