Blame SPECS/python3.11-pyparsing.spec

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