|
|
aea940 |
%global __python3 /usr/bin/python3.11
|
|
|
aea940 |
%global python3_pkgversion 3.11
|
|
|
aea940 |
|
|
|
aea940 |
%global srcname pyparsing
|
|
|
aea940 |
|
|
|
aea940 |
%global python_wheelname %{srcname}-%{version}-py3-none-any.whl
|
|
|
aea940 |
|
|
|
aea940 |
# When bootstraping we don't have pytest yet
|
|
|
aea940 |
%bcond_without tests
|
|
|
aea940 |
|
|
|
aea940 |
|
|
|
aea940 |
Summary: Python package with an object-oriented approach to text processing
|
|
|
aea940 |
Name: python%{python3_pkgversion}-pyparsing
|
|
|
aea940 |
Version: 3.0.7
|
|
|
aea940 |
Release: 3%{?dist}
|
|
|
aea940 |
|
|
|
aea940 |
License: MIT
|
|
|
aea940 |
URL: https://github.com/pyparsing/pyparsing
|
|
|
aea940 |
Source0: https://github.com/%{srcname}/%{srcname}/archive/%{srcname}_%{version}/%{srcname}-%{version}.tar.gz
|
|
|
aea940 |
|
|
|
aea940 |
BuildArch: noarch
|
|
|
aea940 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
aea940 |
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
aea940 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
aea940 |
|
|
|
aea940 |
%if %{with tests}
|
|
|
aea940 |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
aea940 |
%endif
|
|
|
aea940 |
|
|
|
aea940 |
BuildRequires: python%{python3_pkgversion}-pip
|
|
|
aea940 |
BuildRequires: python%{python3_pkgversion}-wheel
|
|
|
aea940 |
|
|
|
aea940 |
%description
|
|
|
aea940 |
pyparsing is a module that can be used to easily and directly configure syntax
|
|
|
aea940 |
definitions for any number of text parsing applications.
|
|
|
aea940 |
|
|
|
aea940 |
|
|
|
aea940 |
%prep
|
|
|
aea940 |
%autosetup -p1 -n %{srcname}-%{srcname}_%{version}
|
|
|
aea940 |
|
|
|
aea940 |
|
|
|
aea940 |
%build
|
|
|
aea940 |
%py3_build_wheel
|
|
|
aea940 |
|
|
|
aea940 |
|
|
|
aea940 |
%install
|
|
|
aea940 |
%py3_install_wheel %{python_wheelname}
|
|
|
aea940 |
|
|
|
aea940 |
|
|
|
aea940 |
%if %{with tests}
|
|
|
aea940 |
%check
|
|
|
aea940 |
# Ignore the tests that require the missing railroad dependency
|
|
|
aea940 |
%pytest -v --ignore=tests/test_diagram.py -k "not testEmptyExpressionsAreHandledProperly"
|
|
|
aea940 |
%endif
|
|
|
aea940 |
|
|
|
aea940 |
|
|
|
aea940 |
%files -n python%{python3_pkgversion}-pyparsing
|
|
|
aea940 |
%license LICENSE
|
|
|
aea940 |
%doc CHANGES README.rst
|
|
|
aea940 |
%{python3_sitelib}/pyparsing/
|
|
|
aea940 |
%{python3_sitelib}/pyparsing-%{version}.dist-info/
|
|
|
aea940 |
|
|
|
aea940 |
%changelog
|
|
|
aea940 |
* Wed Feb 01 2023 Charalampos Stratakis <cstratak@redhat.com> - 3.0.7-3
|
|
|
aea940 |
- Explicitly require the python3.11-rpm-macros
|
|
|
aea940 |
|
|
|
aea940 |
* Wed Feb 01 2023 Charalampos Stratakis <cstratak@redhat.com> - 3.0.7-2
|
|
|
aea940 |
- Enable tests
|
|
|
aea940 |
|
|
|
aea940 |
* Fri Nov 25 2022 Charalampos Stratakis <cstratak@redhat.com> - 3.0.7-1
|
|
|
aea940 |
- Initial package
|
|
|
aea940 |
- Fedora contributions by:
|
|
|
aea940 |
Alan Pevec <alan.pevec@redhat.com>
|
|
|
aea940 |
Bill Nottingham <notting@fedoraproject.org>
|
|
|
aea940 |
Charalampos Stratakis <cstratak@redhat.com>
|
|
|
aea940 |
Dan Horák <dan@danny.cz>
|
|
|
aea940 |
David King <amigadave@amigadave.com>
|
|
|
aea940 |
David Malcolm <dmalcolm@redhat.com>
|
|
|
aea940 |
Dennis Gilmore <dennis@ausil.us>
|
|
|
aea940 |
Ignacio Vazquez-Abrams <ivazquez@fedoraproject.org>
|
|
|
aea940 |
Iryna Shcherbina <shcherbina.iryna@gmail.com>
|
|
|
aea940 |
Jesse Keating <jkeating@fedoraproject.org>
|
|
|
aea940 |
José Abílio Oliveira Matos <jamatos@fedoraproject.org>
|
|
|
aea940 |
José Matos <jamatos@fedoraproject.org>
|
|
|
aea940 |
Lumir Balhar <lbalhar@redhat.com>
|
|
|
aea940 |
Miro Hrončok <miro@hroncok.cz>
|
|
|
aea940 |
Petr Viktorin <pviktori@redhat.com>
|
|
|
aea940 |
Robert Kuska <rkuska@redhat.com>
|
|
|
aea940 |
Slavek Kabrda <bkabrda@redhat.com>
|
|
|
aea940 |
Terje Røsten <terje.rosten@ntnu.no>
|
|
|
aea940 |
Thomas Spura <thomas.spura@gmail.com>
|
|
|
aea940 |
Tomáš Hrnčiar <thrnciar@redhat.com>
|
|
|
aea940 |
Ville Skyttä <scop@fedoraproject.org>
|
|
|
aea940 |
yatin <ykarel@redhat.com>
|
|
|
aea940 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
|