From a2f957c14cedb23c4c64f3ad1fc2df62467fef954d3f055d9817480d79300d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 11:12:54 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-phply?expand=0&rev=11 --- python-phply.changes | 5 +++++ python-phply.spec | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/python-phply.changes b/python-phply.changes index 48d892b..6b25d59 100644 --- a/python-phply.changes +++ b/python-phply.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 11:12:29 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Mar 21 15:24:57 UTC 2023 - Dirk Müller diff --git a/python-phply.spec b/python-phply.spec index a43fb32..3d577cd 100644 --- a/python-phply.spec +++ b/python-phply.spec @@ -1,7 +1,7 @@ # # spec file for package python-phply # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-phply Version: 1.2.6 Release: 0 @@ -25,14 +24,16 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/viraptor/phply Source: https://files.pythonhosted.org/packages/source/p/phply/phply-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module ply} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-ply -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -43,10 +44,10 @@ phply is a parser for the PHP programming language written using PLY, a Lex/YACC %autosetup -p1 -n phply-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/phpparse %python_clone -a %{buildroot}%{_bindir}/phplex %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -68,6 +69,7 @@ phply is a parser for the PHP programming language written using PLY, a Lex/YACC %doc README.md %python_alternative %{_bindir}/phplex %python_alternative %{_bindir}/phpparse -%{python_sitelib}/* +%{python_sitelib}/phply +%{python_sitelib}/phply-%{version}*-info %changelog From 861d0907dda86b78f4817c4b809d7fb7ca8679a9fa94380287da1460a6ba0909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 3 Jun 2025 11:16:04 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-phply?expand=0&rev=12 --- python-phply.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-phply.spec b/python-phply.spec index 3d577cd..529ed89 100644 --- a/python-phply.spec +++ b/python-phply.spec @@ -71,5 +71,6 @@ phply is a parser for the PHP programming language written using PLY, a Lex/YACC %python_alternative %{_bindir}/phpparse %{python_sitelib}/phply %{python_sitelib}/phply-%{version}*-info +%{python_sitelib}/phply-%{version}*nspkg.pth %changelog