Blame SPECS/python3.11-pyparsing.spec

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