diff --git a/python-pyPEG2.changes b/python-pyPEG2.changes index 7005895..0abc805 100644 --- a/python-pyPEG2.changes +++ b/python-pyPEG2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 4 08:06:58 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Jun 8 13:14:43 UTC 2020 - Marketa Calabkova diff --git a/python-pyPEG2.spec b/python-pyPEG2.spec index 428bfec..89b551b 100644 --- a/python-pyPEG2.spec +++ b/python-pyPEG2.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyPEG2 # -# Copyright (c) 2020 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,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python %define _name pyPEG2 Name: python-pyPEG2 Version: 2.15.2 @@ -28,15 +26,13 @@ Group: Development/Languages/Python URL: https://fdik.org/pyPEG2 Source: https://files.pythonhosted.org/packages/source/p/%{_name}/%{_name}-%{version}.tar.gz BuildRequires: %{python_module lxml} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros Requires: python-lxml BuildArch: noarch -%ifpython2 -# python-pyPEG2 was last used in openSUSE Leap 14.2. -Provides: %{oldpython}-pyPEG2 = %{version} -Obsoletes: %{oldpython}-pyPEG2 < %{version} -%endif %description pyPEG is a plain and simple intrinsic parser interpreter framework @@ -49,10 +45,10 @@ With pyPEG you can parse many formal languages in a very easy way. %setup -q -n %{_name}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %check %pytest @@ -61,6 +57,6 @@ With pyPEG you can parse many formal languages in a very easy way. %license LICENSE.txt %doc CHANGES.txt README.txt %{python_sitelib}/pypeg2/ -%{python_sitelib}/%{_name}-%{version}-py%{python_version}.egg-info +%{python_sitelib}/py[Pp][Ee][Gg]2-%{version}*-info %changelog