Blame SPECS/pyparsing.spec

fc75c6
%global srcname pyparsing
fc75c6
%global _summary Python package with an object-oriented approach to text processing
fc75c6
fc75c6
%global build_wheel 1
fc75c6
fc75c6
%global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
fc75c6
fc75c6
# when bootstrapping Python 3, pyparsing needs to be rebuilt before sphinx
fc75c6
%bcond_without doc
fc75c6
fc75c6
Summary:        %{_summary}
fc75c6
Name:           pyparsing
fc75c6
Version:        2.4.7
fc75c6
Release:        7.1%{?dist}
fc75c6
fc75c6
License:        MIT
fc75c6
URL:            https://github.com/pyparsing/pyparsing
fc75c6
Source0:        https://github.com/%{name}/%{name}/archive/%{name}_%{version}/%{name}-%{version}.tar.gz
fc75c6
fc75c6
BuildArch:      noarch
fc75c6
BuildRequires:  dos2unix
fc75c6
BuildRequires:  python%{python3_pkgversion}-devel
fc75c6
BuildRequires:  python%{python3_pkgversion}-setuptools
fc75c6
fc75c6
# python3 bootstrap: this is rebuilt before the final build of python3, which
fc75c6
# adds the dependency on python3-rpm-generators, so we require it manually
fc75c6
BuildRequires:  python3-rpm-generators
fc75c6
fc75c6
%if %{with doc}
fc75c6
BuildRequires:  python%{python3_pkgversion}-sphinx
fc75c6
%endif
fc75c6
fc75c6
%if 0%{?build_wheel}
fc75c6
BuildRequires:  python%{python3_pkgversion}-pip
fc75c6
BuildRequires:  python%{python3_pkgversion}-wheel
fc75c6
%endif
fc75c6
fc75c6
%description
fc75c6
pyparsing is a module that can be used to easily and directly configure syntax
fc75c6
definitions for any number of text parsing applications.
fc75c6
fc75c6
fc75c6
%if %{with doc}
fc75c6
%package        doc
fc75c6
Summary:        Documentation for pyparsing python package
fc75c6
fc75c6
# Most examples are under the project's license, MIT
fc75c6
# pymicko.py is under GPLv3+
fc75c6
# snmp_api.h is under CMU-UC (MIT)
fc75c6
# sparser.py is under GPLv2+
fc75c6
# searchparser.py is under BSD (3-clause, with advertising)
fc75c6
# btpyparse.py is under "Simplified BSD license"
fc75c6
License:        MIT and GPLv2+ and GPLv3+ and BSD
fc75c6
fc75c6
%description    doc
fc75c6
The package contains documentation for pyparsing.
fc75c6
%endif
fc75c6
fc75c6
fc75c6
%package -n python%{python3_pkgversion}-pyparsing
fc75c6
Summary:        %{_summary}
fc75c6
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
fc75c6
fc75c6
%description -n python%{python3_pkgversion}-pyparsing
fc75c6
pyparsing is a module that can be used to easily and directly configure syntax
fc75c6
definitions for any number of text parsing applications.
fc75c6
fc75c6
This is the Python 3 version.
fc75c6
fc75c6
fc75c6
%prep
fc75c6
%setup -q -n %{name}-%{name}_%{version}
fc75c6
dos2unix -k CHANGES LICENSE
fc75c6
fc75c6
fc75c6
%build
fc75c6
%if 0%{?build_wheel}
fc75c6
%py3_build_wheel
fc75c6
%else
fc75c6
%py3_build
fc75c6
%endif
fc75c6
fc75c6
%if %{with doc}
fc75c6
# build docs
fc75c6
pushd docs
fc75c6
# Theme is not available
fc75c6
sed -i '/alabaster/d' conf.py
fc75c6
sphinx-build -b html . html
fc75c6
popd
fc75c6
%endif
fc75c6
fc75c6
%install
fc75c6
%if 0%{?build_wheel}
fc75c6
%py3_install_wheel %{python_wheelname}
fc75c6
%else
fc75c6
%py3_install
fc75c6
%endif
fc75c6
fc75c6
fc75c6
%check
fc75c6
%{__python3} unitTests.py
fc75c6
%{__python3} simple_unit_tests.py
fc75c6
fc75c6
fc75c6
%files -n python%{python3_pkgversion}-pyparsing
fc75c6
%license LICENSE
fc75c6
%doc CHANGES README.rst
fc75c6
%{python3_sitelib}/pyparsing.py
fc75c6
%{python3_sitelib}/__pycache__/*
fc75c6
%{python3_sitelib}/pyparsing-*-info/
fc75c6
fc75c6
%if %{with doc}
fc75c6
%files doc
fc75c6
%license LICENSE
fc75c6
%doc CHANGES README.rst docs/html examples
fc75c6
%endif
fc75c6
fc75c6
fc75c6
%changelog
fc75c6
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.7-7.1
fc75c6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
fc75c6
  Related: rhbz#1991688
fc75c6
fc75c6
* Thu May 27 2021 Petr Viktorin <pviktori@redhat.com> - 2.4.7-6.1
fc75c6
- Fix licence for examples shipped in pyparsing-doc
fc75c6
fc75c6
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.4.7-6
fc75c6
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
fc75c6
fc75c6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.7-5
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
fc75c6
fc75c6
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.7-4
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
fc75c6
fc75c6
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 2.4.7-3
fc75c6
- Rebuilt for Python 3.9
fc75c6
fc75c6
* Thu May 21 2020 Miro Hrončok <mhroncok@redhat.com> - 2.4.7-2
fc75c6
- Bootstrap for Python 3.9
fc75c6
fc75c6
* Mon Apr 06 2020 Dan Horák <dan[at]danny.cz> - 2.4.7-1
fc75c6
- Update to 2.4.7 (#1821085)
fc75c6
fc75c6
* Mon Mar 30 2020 David King <amigadave@amigadave.com> - 2.4.6-3
fc75c6
- Fix the summary for the Python 3 subpackage
fc75c6
fc75c6
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.6-2
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
fc75c6
fc75c6
* Fri Jan 03 2020 Dan Horák <dan[at]danny.cz> - 2.4.6-1
fc75c6
- Update to 2.4.6 (#1786815)
fc75c6
fc75c6
* Fri Nov 15 2019 Dan Horák <dan[at]danny.cz> - 2.4.5-1
fc75c6
- Update to 2.4.5 (#1768725)
fc75c6
- Drop Python2 subpackage (#1770564)
fc75c6
fc75c6
* Tue Oct  8 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.4.2-1
fc75c6
- Update to latest version (#1742167)
fc75c6
fc75c6
* Mon Sep 02 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-6
fc75c6
- Reduce Python 2 build time dependencies
fc75c6
fc75c6
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-5
fc75c6
- Rebuilt for Python 3.8
fc75c6
fc75c6
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-4
fc75c6
- Bootstrap for Python 3.8
fc75c6
fc75c6
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fc75c6
fc75c6
* Mon Apr 15 2019 José Matos <jamatos@fedoraproject.org> - 2.4.0-1
fc75c6
- Update to 2.4.0
fc75c6
fc75c6
* Tue Feb 26 2019 Yatin Karel <ykarel@redhat.com> - 2.3.1-1
fc75c6
- Update to 2.3.1
fc75c6
fc75c6
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
fc75c6
fc75c6
* Thu Jan 10 2019 Dan Horák <dan[at]danny.cz> - 2.3.0-1
fc75c6
- Update to 2.3.0
fc75c6
fc75c6
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fc75c6
fc75c6
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.0-2
fc75c6
- Rebuilt for Python 3.7
fc75c6
fc75c6
* Wed Mar 14 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.2.0-1
fc75c6
- Update to 2.2.0
fc75c6
fc75c6
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.1.10-7
fc75c6
- Update Python 2 dependency declarations to new packaging standards
fc75c6
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
fc75c6
fc75c6
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-6
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fc75c6
fc75c6
* Wed Jan 24 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.10-5
fc75c6
- Remove the empty pyparsing package, provide and obsolete it from python2-pyparsing
fc75c6
fc75c6
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-4
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fc75c6
fc75c6
* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.1.10-3
fc75c6
- Rebuild as wheel
fc75c6
fc75c6
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-2
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fc75c6
fc75c6
* Fri Dec 30 2016 José Matos <jamatos@fedoraproject.org> - 2.1.10-1
fc75c6
- update to 2.1.10
fc75c6
- do not own __pycache__
fc75c6
fc75c6
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.1.5-3
fc75c6
- Rebuild for Python 3.6
fc75c6
- Add missing BuildRequires for python-setuptools
fc75c6
fc75c6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-2
fc75c6
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
fc75c6
fc75c6
* Thu Jun 16 2016 José Abílio Matos <jamatos@fc.up.pt> - 2.1.5-1
fc75c6
- update to 2.1.5
fc75c6
fc75c6
* Thu May 12 2016 José Matos <jamatos@fedoraproject.org> - 2.1.3-1
fc75c6
- update to 2.1.3
fc75c6
fc75c6
* Sun May  8 2016 José Matos <jamatos@fedoraproject.org> - 2.1.1-1
fc75c6
- update to 2.1.1
fc75c6
fc75c6
* Tue Feb 16 2016 José Matos <jamatos@fedoraproject.org> - 2.1.0-2
fc75c6
- fix typo in provides for the python3 subpackage
fc75c6
fc75c6
* Mon Feb 15 2016 José Matos <jamatos@fedoraproject.org> - 2.1.0-1
fc75c6
- update to 2.1.0
fc75c6
- add a python2 subpackage preserving the upgrade path
fc75c6
fc75c6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-2
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fc75c6
fc75c6
* Fri Jan 08 2016 Terje Rosten <terje.rosten@ntnu.no> - 2.0.7-1
fc75c6
- 2.0.7
fc75c6
fc75c6
* Tue Nov 17 2015 Terje Rosten <terje.rosten@ntnu.no> - 2.0.6-1
fc75c6
- 2.0.6
fc75c6
- Some clean up
fc75c6
fc75c6
* Wed Sep 23 2015 Robert Kuska <rkuska@redhat.com> - 2.0.3-3
fc75c6
- Rebuilt for Python3.5 rebuild
fc75c6
fc75c6
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fc75c6
fc75c6
* Fri Nov 28 2014 José Matos <jamatos@fedoraproject.org> - 2.0.3-1
fc75c6
- update to 2.0.3
fc75c6
- include the whole documentation set
fc75c6
fc75c6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fc75c6
fc75c6
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.0.1-2
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
fc75c6
fc75c6
* Sun Oct 27 2013 Terje Rosten <terje.rosten@ntnu.no> - 2.0.1-1
fc75c6
- 2.0.1
fc75c6
fc75c6
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-9
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fc75c6
fc75c6
* Wed Apr  3 2013 Thomas Spura <tomspur@fedoraproject.org> - 1.5.6-8
fc75c6
- add patch to correct typo in exception handling
fc75c6
fc75c6
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-7
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fc75c6
fc75c6
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-6
fc75c6
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
fc75c6
fc75c6
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-5
fc75c6
- remove rhel logic from with_python3 conditional
fc75c6
fc75c6
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-4
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fc75c6
fc75c6
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-3
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fc75c6
fc75c6
* Tue Dec  6 2011 David Malcolm <dmalcolm@redhat.com> - 1.5.6-2
fc75c6
- fix __pycache__ conditional on RHEL
fc75c6
fc75c6
* Fri Jul  1 2011 José Matos <jamatos@fedoraproject.org> - 1.5.6-1
fc75c6
- New upstream version.
fc75c6
fc75c6
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-2
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fc75c6
fc75c6
* Thu Oct 21 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.5.5-1
fc75c6
- 1.5.5
fc75c6
- use buildroot macro
fc75c6
- fix wrong file end of line encoding
fc75c6
- convert files to utf-8
fc75c6
- doc subpackage
fc75c6
- python3 subpackage
fc75c6
- rpmlint clean
fc75c6
fc75c6
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.5.0-7
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
fc75c6
fc75c6
* Fri Jul 16 2010 Dan Horák <dan[at]danny.cz> - 1.5.0-6
fc75c6
- include egginfo on EL >= 6
fc75c6
fc75c6
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-5
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fc75c6
fc75c6
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-4
fc75c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fc75c6
fc75c6
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.5.0-3
fc75c6
- Rebuild for Python 2.6
fc75c6
fc75c6
* Mon Aug  4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.5.0-2
fc75c6
- respun (now with the right sources)
fc75c6
fc75c6
* Mon Aug  4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.5.0-1
fc75c6
- new upstream release.
fc75c6
fc75c6
* Tue Apr  1 2008 José Matos <jamatos[AT]fc.up.pt> - 1.4.11-1
fc75c6
- New upstream version, add egg-info for F9+.
fc75c6
fc75c6
* Wed Aug 29 2007 José Matos <jamatos[AT]fc.up.pt> - 1.4.7-1
fc75c6
- New upstream version.
fc75c6
fc75c6
* Sat Apr 21 2007 José Matos <jamatos[AT]fc.up.pt> - 1.4.6-1
fc75c6
- New upstream version.
fc75c6
fc75c6
* Mon Dec 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.4-1
fc75c6
- New upstream version.
fc75c6
fc75c6
* Mon Sep 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.3-1
fc75c6
- New version.
fc75c6
fc75c6
* Wed Aug  3 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.3-1
fc75c6
- Initial RPM release