Blame SPECS/python3.11-pyparsing.spec

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