forked from pool/python-phply
Accepting request 1284229 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1284229 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-phply?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 9 14:41:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 11:12:29 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user