c2627a1
%global srcname pyparsing
5a36cfd
%global _summary Python package with an object-oriented approach to text processing
5f051aa
68bce9f
# when bootstrapping Python 3, pyparsing needs to be rebuilt before depndency generator is available
68bce9f
%bcond_with bootstrap
68bce9f
%if %{without bootstrap}
5c83231
%global build_wheel 1
4de2fd9
%global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
68bce9f
%endif
5c83231
8051b2f
5a36cfd
Summary:        %{_summary}
Terje Røsten a3002fe
Name:           pyparsing
b591dd2
Version:        2.4.7
1a6c822
Release:        8%{?dist}
c2627a1
5f051aa
License:        MIT
a077473
URL:            https://github.com/pyparsing/pyparsing
a077473
Source0:        https://github.com/%{name}/%{name}/archive/%{name}_%{version}/%{name}-%{version}.tar.gz
c2627a1
5f051aa
BuildArch:      noarch
05d7628
BuildRequires:  dos2unix
72af38d
BuildRequires:  python%{python3_pkgversion}-devel
72af38d
BuildRequires:  python%{python3_pkgversion}-setuptools
8051b2f
68bce9f
%if %{without bootstrap}
72af38d
BuildRequires:  python%{python3_pkgversion}-sphinx
8051b2f
%endif
c2627a1
5c83231
%if 0%{?build_wheel}
5c83231
BuildRequires:  python%{python3_pkgversion}-pip
5c83231
BuildRequires:  python%{python3_pkgversion}-wheel
5c83231
%endif
5c83231
5f051aa
%description
5f051aa
pyparsing is a module that can be used to easily and directly configure syntax
5f051aa
definitions for any number of text parsing applications.
5f051aa
c2627a1
68bce9f
%if %{without bootstrap}
Terje Røsten a3002fe
%package        doc
c2627a1
Summary:        Documentation for pyparsing python package
05d7628
efe5375
# Most examples are under the project's license, MIT
efe5375
# pymicko.py is under GPLv3+
efe5375
# snmp_api.h is under CMU-UC (MIT)
efe5375
# sparser.py is under GPLv2+
efe5375
# searchparser.py is under BSD (3-clause, with advertising)
efe5375
# btpyparse.py is under "Simplified BSD license"
efe5375
License:        MIT and GPLv2+ and GPLv3+ and BSD
efe5375
Terje Røsten a3002fe
%description    doc
05d7628
The package contains documentation for pyparsing.
8051b2f
%endif
05d7628
c2627a1
72af38d
%package -n python%{python3_pkgversion}-pyparsing
5a36cfd
Summary:        %{_summary}
68bce9f
%if %{with bootstrap}
68bce9f
Provides:       python%{python3_pkgversion}dist(pyparsing) = %{version}
68bce9f
Provides:       python%{python3_version}dist(pyparsing) = %{version}
68bce9f
%endif
68bce9f
72af38d
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
05d7628
72af38d
%description -n python%{python3_pkgversion}-pyparsing
05d7628
pyparsing is a module that can be used to easily and directly configure syntax
05d7628
definitions for any number of text parsing applications.
05d7628
05d7628
This is the Python 3 version.
c2627a1
05d7628
5f051aa
%prep
a077473
%setup -q -n %{name}-%{name}_%{version}
5cc7f74
dos2unix -k CHANGES LICENSE
a077473
5f051aa
5f051aa
%build
5c83231
%if 0%{?build_wheel}
5c83231
%py3_build_wheel
5c83231
%else
c2627a1
%py3_build
5c83231
%endif
5f051aa
68bce9f
%if %{without bootstrap}
a077473
# build docs
5cc7f74
pushd docs
5cc7f74
# Theme is not available
5cc7f74
sed -i '/alabaster/d' conf.py
5cc7f74
sphinx-build -b html . html
5cc7f74
popd
8051b2f
%endif
a077473
5f051aa
%install
5c83231
%if 0%{?build_wheel}
4de2fd9
%py3_install_wheel %{python_wheelname}
5c83231
%else
c2627a1
%py3_install
5c83231
%endif
5f051aa
c2627a1
a077473
%check
a077473
%{__python3} unitTests.py
a077473
%{__python3} simple_unit_tests.py
a077473
a077473
72af38d
%files -n python%{python3_pkgversion}-pyparsing
Terje Røsten a3002fe
%license LICENSE
5cc7f74
%doc CHANGES README.rst
b7afddd
%{python3_sitelib}/pyparsing.py
b7afddd
%{python3_sitelib}/__pycache__/*
4de2fd9
%{python3_sitelib}/pyparsing-*-info/
05d7628
68bce9f
%if %{without bootstrap}
05d7628
%files doc
Terje Røsten a3002fe
%license LICENSE
5cc7f74
%doc CHANGES README.rst docs/html examples
8051b2f
%endif
a077473
5f051aa
5f051aa
%changelog
1a6c822
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 2.4.7-8
1a6c822
- Rebuilt for Python 3.10
1a6c822
b626401
* Tue Jun 01 2021 Python Maint <python-maint@redhat.com> - 2.4.7-7
b626401
- Bootstrap for Python 3.10
b626401
efe5375
* Thu May 27 2021 Petr Viktorin <pviktori@redhat.com> - 2.4.7-6
efe5375
- Fix licence for examples shipped in pyparsing-doc
efe5375
c807be7
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.7-5
c807be7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c807be7
2c75ee0
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.7-4
2c75ee0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2c75ee0
e4e78f8
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 2.4.7-3
e4e78f8
- Rebuilt for Python 3.9
e4e78f8
7e29f7e
* Thu May 21 2020 Miro Hrončok <mhroncok@redhat.com> - 2.4.7-2
7e29f7e
- Bootstrap for Python 3.9
7e29f7e
b591dd2
* Mon Apr 06 2020 Dan Horák <dan[at]danny.cz> - 2.4.7-1
b591dd2
- Update to 2.4.7 (#1821085)
b591dd2
5a36cfd
* Mon Mar 30 2020 David King <amigadave@amigadave.com> - 2.4.6-3
5a36cfd
- Fix the summary for the Python 3 subpackage
5a36cfd
f46ef46
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.6-2
f46ef46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f46ef46
843c45d
* Fri Jan 03 2020 Dan Horák <dan[at]danny.cz> - 2.4.6-1
843c45d
- Update to 2.4.6 (#1786815)
843c45d
92b95e1
* Fri Nov 15 2019 Dan Horák <dan[at]danny.cz> - 2.4.5-1
92b95e1
- Update to 2.4.5 (#1768725)
92b95e1
- Drop Python2 subpackage (#1770564)
92b95e1
13c6a1e
* Tue Oct  8 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.4.2-1
13c6a1e
- Update to latest version (#1742167)
13c6a1e
4de2fd9
* Mon Sep 02 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-6
4de2fd9
- Reduce Python 2 build time dependencies
4de2fd9
6e5dd1a
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-5
6e5dd1a
- Rebuilt for Python 3.8
6e5dd1a
e89bc0c
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-4
8051b2f
- Bootstrap for Python 3.8
8051b2f
98618aa
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
98618aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
98618aa
f80a608
* Mon Apr 15 2019 José Matos <jamatos@fedoraproject.org> - 2.4.0-1
f80a608
- Update to 2.4.0
f80a608
5cc7f74
* Tue Feb 26 2019 Yatin Karel <ykarel@redhat.com> - 2.3.1-1
5cc7f74
- Update to 2.3.1
5cc7f74
baf5150
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
baf5150
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
baf5150
a077473
* Thu Jan 10 2019 Dan Horák <dan[at]danny.cz> - 2.3.0-1
a077473
- Update to 2.3.0
a077473
28c86b2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
28c86b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
28c86b2
8fc124c
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.0-2
8fc124c
- Rebuilt for Python 3.7
8fc124c
3fe513e
* Wed Mar 14 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.2.0-1
3fe513e
- Update to 2.2.0
3fe513e
da481da
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.1.10-7
da481da
- Update Python 2 dependency declarations to new packaging standards
da481da
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
da481da
684560d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-6
684560d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
684560d
0f31fda
* Wed Jan 24 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.10-5
0f31fda
- Remove the empty pyparsing package, provide and obsolete it from python2-pyparsing
0f31fda
d030dbb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-4
d030dbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d030dbb
5c83231
* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.1.10-3
5c83231
- Rebuild as wheel
5c83231
facfe68
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-2
facfe68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
facfe68
b7afddd
* Fri Dec 30 2016 José Matos <jamatos@fedoraproject.org> - 2.1.10-1
b7afddd
- update to 2.1.10
b7afddd
- do not own __pycache__
b7afddd
dc7835a
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.1.5-3
dc7835a
- Rebuild for Python 3.6
dc7835a
- Add missing BuildRequires for python-setuptools
dc7835a
9ce1ef4
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-2
9ce1ef4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
9ce1ef4
39e3f30
* Thu Jun 16 2016 José Abílio Matos <jamatos@fc.up.pt> - 2.1.5-1
39e3f30
- update to 2.1.5
39e3f30
5846ac2
* Thu May 12 2016 José Matos <jamatos@fedoraproject.org> - 2.1.3-1
5846ac2
- update to 2.1.3
5846ac2
cb5b176
* Sun May  8 2016 José Matos <jamatos@fedoraproject.org> - 2.1.1-1
cb5b176
- update to 2.1.1
cb5b176
267f8d3
* Tue Feb 16 2016 José Matos <jamatos@fedoraproject.org> - 2.1.0-2
267f8d3
- fix typo in provides for the python3 subpackage
267f8d3
c2627a1
* Mon Feb 15 2016 José Matos <jamatos@fedoraproject.org> - 2.1.0-1
c2627a1
- update to 2.1.0
c2627a1
- add a python2 subpackage preserving the upgrade path
c2627a1
101415e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-2
101415e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
101415e
Terje Røsten f349778
* Fri Jan 08 2016 Terje Rosten <terje.rosten@ntnu.no> - 2.0.7-1
Terje Røsten f349778
- 2.0.7
Terje Røsten f349778
Terje Røsten a3002fe
* Tue Nov 17 2015 Terje Rosten <terje.rosten@ntnu.no> - 2.0.6-1
Terje Røsten a3002fe
- 2.0.6
Terje Røsten a3002fe
- Some clean up
Terje Røsten a3002fe
Robert Kuska ca75ec0
* Wed Sep 23 2015 Robert Kuska <rkuska@redhat.com> - 2.0.3-3
Robert Kuska ca75ec0
- Rebuilt for Python3.5 rebuild
Robert Kuska ca75ec0
86cf1fb
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
86cf1fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
86cf1fb
47d06e0
* Fri Nov 28 2014 José Matos <jamatos@fedoraproject.org> - 2.0.3-1
47d06e0
- update to 2.0.3
47d06e0
- include the whole documentation set
47d06e0
63ec489
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
63ec489
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
63ec489
04304e0
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.0.1-2
04304e0
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
04304e0
Terje Røsten 03ffa9d
* Sun Oct 27 2013 Terje Rosten <terje.rosten@ntnu.no> - 2.0.1-1
Terje Røsten 03ffa9d
- 2.0.1
Terje Røsten 03ffa9d
462889d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-9
462889d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
462889d
Thomas Spura caf4922
* Wed Apr  3 2013 Thomas Spura <tomspur@fedoraproject.org> - 1.5.6-8
Thomas Spura caf4922
- add patch to correct typo in exception handling
Thomas Spura caf4922
a867879
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-7
a867879
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a867879
6dc9397
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-6
6dc9397
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
6dc9397
b2d0797
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-5
b2d0797
- remove rhel logic from with_python3 conditional
b2d0797
8b7ae27
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-4
8b7ae27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8b7ae27
c5ba59a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-3
c5ba59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c5ba59a
8c2862a
* Tue Dec  6 2011 David Malcolm <dmalcolm@redhat.com> - 1.5.6-2
8c2862a
- fix __pycache__ conditional on RHEL
8c2862a
31310ba
* Fri Jul  1 2011 José Matos <jamatos@fedoraproject.org> - 1.5.6-1
31310ba
- New upstream version.
31310ba
f88befa
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-2
f88befa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f88befa
05d7628
* Thu Oct 21 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.5.5-1
05d7628
- 1.5.5
05d7628
- use buildroot macro
05d7628
- fix wrong file end of line encoding
05d7628
- convert files to utf-8
05d7628
- doc subpackage
05d7628
- python3 subpackage
05d7628
- rpmlint clean
05d7628
18b72d7
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.5.0-7
18b72d7
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
18b72d7
36c2e86
* Fri Jul 16 2010 Dan Horák <dan[at]danny.cz> - 1.5.0-6
36c2e86
- include egginfo on EL >= 6
36c2e86
05c5e91
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-5
05c5e91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
05c5e91
740018b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-4
740018b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
740018b
35f9d49
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.5.0-3
35f9d49
- Rebuild for Python 2.6
35f9d49
3e5b6e1
* Mon Aug  4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.5.0-2
3e5b6e1
- respun (now with the right sources)
3e5b6e1
44915c6
* Mon Aug  4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.5.0-1
44915c6
- new upstream release.
44915c6
8a8ca28
* Tue Apr  1 2008 José Matos <jamatos[AT]fc.up.pt> - 1.4.11-1
8a8ca28
- New upstream version, add egg-info for F9+.
8a8ca28
ae06558
* Wed Aug 29 2007 José Matos <jamatos[AT]fc.up.pt> - 1.4.7-1
ae06558
- New upstream version.
ae06558
5a15a9a
* Sat Apr 21 2007 José Matos <jamatos[AT]fc.up.pt> - 1.4.6-1
5a15a9a
- New upstream version.
5a15a9a
1838cc7
* Mon Dec 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.4-1
1838cc7
- New upstream version.
1838cc7
5754eee
* Mon Sep 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.3-1
5754eee
- New version.
5754eee
5f051aa
* Wed Aug  3 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.3-1
5f051aa
- Initial RPM release