From acb303b40bda1ff44c06d3d2248b743d4b64a81d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Thu, 2 Feb 2023 20:15:04 +0000 Subject: [PATCH] Auto sync2gitlab import of python3.11-pyparsing-3.0.7-3.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - python3.11-pyparsing.spec | 95 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 python3.11-pyparsing.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..75c853b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pyparsing-3.0.7.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/python3.11-pyparsing.spec b/python3.11-pyparsing.spec new file mode 100644 index 0000000..edce555 --- /dev/null +++ b/python3.11-pyparsing.spec @@ -0,0 +1,95 @@ +%global __python3 /usr/bin/python3.11 +%global python3_pkgversion 3.11 + +%global srcname pyparsing + +%global python_wheelname %{srcname}-%{version}-py3-none-any.whl + +# When bootstraping we don't have pytest yet +%bcond_without tests + + +Summary: Python package with an object-oriented approach to text processing +Name: python%{python3_pkgversion}-pyparsing +Version: 3.0.7 +Release: 3%{?dist} + +License: MIT +URL: https://github.com/pyparsing/pyparsing +Source0: https://github.com/%{srcname}/%{srcname}/archive/%{srcname}_%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-rpm-macros +BuildRequires: python%{python3_pkgversion}-setuptools + +%if %{with tests} +BuildRequires: python%{python3_pkgversion}-pytest +%endif + +BuildRequires: python%{python3_pkgversion}-pip +BuildRequires: python%{python3_pkgversion}-wheel + +%description +pyparsing is a module that can be used to easily and directly configure syntax +definitions for any number of text parsing applications. + + +%prep +%autosetup -p1 -n %{srcname}-%{srcname}_%{version} + + +%build +%py3_build_wheel + + +%install +%py3_install_wheel %{python_wheelname} + + +%if %{with tests} +%check +# Ignore the tests that require the missing railroad dependency +%pytest -v --ignore=tests/test_diagram.py -k "not testEmptyExpressionsAreHandledProperly" +%endif + + +%files -n python%{python3_pkgversion}-pyparsing +%license LICENSE +%doc CHANGES README.rst +%{python3_sitelib}/pyparsing/ +%{python3_sitelib}/pyparsing-%{version}.dist-info/ + +%changelog +* Wed Feb 01 2023 Charalampos Stratakis - 3.0.7-3 +- Explicitly require the python3.11-rpm-macros + +* Wed Feb 01 2023 Charalampos Stratakis - 3.0.7-2 +- Enable tests + +* Fri Nov 25 2022 Charalampos Stratakis - 3.0.7-1 +- Initial package +- Fedora contributions by: + Alan Pevec + Bill Nottingham + Charalampos Stratakis + Dan Horák + David King + David Malcolm + Dennis Gilmore + Ignacio Vazquez-Abrams + Iryna Shcherbina + Jesse Keating + José Abílio Oliveira Matos + José Matos + Lumir Balhar + Miro Hrončok + Petr Viktorin + Robert Kuska + Slavek Kabrda + Terje Røsten + Thomas Spura + Tomáš Hrnčiar + Ville Skyttä + yatin + Zbigniew Jędrzejewski-Szmek diff --git a/sources b/sources new file mode 100644 index 0000000..98e5dd6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pyparsing-3.0.7.tar.gz) = d5d5547188ebda6fb7f45928174314d3d4d10302acc8fb476cd6590fb4a75167dee5f6397ab0b63efd4cb55c0765708ffd432bcfecf28d8f808815e62615f447