14
0
forked from pool/python-pyPEG2

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyPEG2?expand=0&rev=8
This commit is contained in:
2025-06-04 08:11:10 +00:00
committed by Git OBS Bridge
parent 15a22ad134
commit c55a584f3e
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> 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 %define _name pyPEG2
Name: python-pyPEG2 Name: python-pyPEG2
Version: 2.15.2 Version: 2.15.2
@@ -28,15 +26,13 @@ Group: Development/Languages/Python
URL: https://fdik.org/pyPEG2 URL: https://fdik.org/pyPEG2
Source: https://files.pythonhosted.org/packages/source/p/%{_name}/%{_name}-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/%{_name}/%{_name}-%{version}.tar.gz
BuildRequires: %{python_module lxml} BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-lxml Requires: python-lxml
BuildArch: noarch BuildArch: noarch
%ifpython2
# python-pyPEG2 was last used in openSUSE Leap 14.2.
Provides: %{oldpython}-pyPEG2 = %{version}
Obsoletes: %{oldpython}-pyPEG2 < %{version}
%endif
%description %description
pyPEG is a plain and simple intrinsic parser interpreter framework 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} %setup -q -n %{_name}-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%check %check
%pytest %pytest
@@ -61,6 +57,6 @@ With pyPEG you can parse many formal languages in a very easy way.
%license LICENSE.txt %license LICENSE.txt
%doc CHANGES.txt README.txt %doc CHANGES.txt README.txt
%{python_sitelib}/pypeg2/ %{python_sitelib}/pypeg2/
%{python_sitelib}/%{_name}-%{version}-py%{python_version}.egg-info %{python_sitelib}/py[Pp][Ee][Gg]2-%{version}*-info
%changelog %changelog