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