Blame SPECS/python3.11-pyparsing.spec

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