14
0
forked from pool/python-pyPEG2

Accepting request 1284729 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1284729
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyPEG2?expand=0&rev=4
This commit is contained in:
2025-06-11 14:27:06 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 4 08:06:58 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Mon Jun 8 13:14:43 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -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