c5e29d
%global srcname pyparsing
c5e29d
%global sum Python package with an object-oriented approach to text processing
c5e29d
c5e29d
%global build_wheel 1
c5e29d
c5e29d
%global python3_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
c5e29d
c5e29d
Summary:        %{sum}
c5e29d
Name:           pyparsing
c5e29d
Version:        2.1.10
c5e29d
Release:        7%{?dist}
c5e29d
c5e29d
License:        MIT
c5e29d
URL:            http://pyparsing.wikispaces.com/
c5e29d
Source0:        http://downloads.sourceforge.net/pyparsing/pyparsing-%{version}.tar.gz
c5e29d
c5e29d
BuildArch:      noarch
c5e29d
BuildRequires:  dos2unix
c5e29d
BuildRequires:  python3-devel
c5e29d
BuildRequires:  python3-setuptools
c5e29d
c5e29d
%if 0%{?build_wheel}
c5e29d
BuildRequires:  python%{python3_pkgversion}-pip
c5e29d
BuildRequires:  python%{python3_pkgversion}-wheel
c5e29d
%endif
c5e29d
c5e29d
%description
c5e29d
pyparsing is a module that can be used to easily and directly configure syntax
c5e29d
definitions for any number of text parsing applications.
c5e29d
c5e29d
c5e29d
%package        doc
c5e29d
Summary:        Documentation for pyparsing python package
c5e29d
c5e29d
%description    doc
c5e29d
The package contains documentation for pyparsing.
c5e29d
c5e29d
c5e29d
%package -n python3-pyparsing
c5e29d
Summary:        %{sum}
c5e29d
%{?python_provide:%python_provide python3-%{srcname}}
c5e29d
c5e29d
%description -n python3-pyparsing
c5e29d
pyparsing is a module that can be used to easily and directly configure syntax
c5e29d
definitions for any number of text parsing applications.
c5e29d
c5e29d
This is the Python 3 version.
c5e29d
c5e29d
c5e29d
%prep
c5e29d
%setup -q
c5e29d
mv docs/pyparsingClassDiagram.PNG docs/pyparsingClassDiagram.png
c5e29d
rm docs/pyparsingClassDiagram.JPG
c5e29d
dos2unix -k CHANGES LICENSE README
c5e29d
c5e29d
%build
c5e29d
%if 0%{?build_wheel}
c5e29d
%py3_build_wheel
c5e29d
%else
c5e29d
%py3_build
c5e29d
%endif
c5e29d
c5e29d
%install
c5e29d
%if 0%{?build_wheel}
c5e29d
%py3_install_wheel %{python3_wheelname}
c5e29d
%else
c5e29d
%py3_install
c5e29d
%endif
c5e29d
c5e29d
c5e29d
%files -n python3-pyparsing
c5e29d
%license LICENSE
c5e29d
%doc CHANGES README LICENSE
c5e29d
%{python3_sitelib}/pyparsing.py
c5e29d
%{python3_sitelib}/__pycache__/*
c5e29d
%{python3_sitelib}/pyparsing-*dist-info/
c5e29d
c5e29d
%files doc
c5e29d
%license LICENSE
c5e29d
%doc CHANGES README HowToUsePyparsing.html docs examples htmldoc
c5e29d
c5e29d
%changelog
c5e29d
* Tue May 29 2018 Petr Viktorin <pviktori@redhat.com> - 2.1.10-7
c5e29d
- Remove Python 2 subpackage
c5e29d
  https://bugzilla.redhat.com/show_bug.cgi?id=1567403
c5e29d
c5e29d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-6
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c5e29d
c5e29d
* Wed Jan 24 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.10-5
c5e29d
- Remove the empty pyparsing package, provide and obsolete it from python2-pyparsing
c5e29d
c5e29d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-4
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c5e29d
c5e29d
* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.1.10-3
c5e29d
- Rebuild as wheel
c5e29d
c5e29d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-2
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c5e29d
c5e29d
* Fri Dec 30 2016 José Matos <jamatos@fedoraproject.org> - 2.1.10-1
c5e29d
- update to 2.1.10
c5e29d
- do not own __pycache__
c5e29d
c5e29d
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.1.5-3
c5e29d
- Rebuild for Python 3.6
c5e29d
- Add missing BuildRequires for python-setuptools
c5e29d
c5e29d
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-2
c5e29d
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c5e29d
c5e29d
* Thu Jun 16 2016 José Abílio Matos <jamatos@fc.up.pt> - 2.1.5-1
c5e29d
- update to 2.1.5
c5e29d
c5e29d
* Thu May 12 2016 José Matos <jamatos@fedoraproject.org> - 2.1.3-1
c5e29d
- update to 2.1.3
c5e29d
c5e29d
* Sun May  8 2016 José Matos <jamatos@fedoraproject.org> - 2.1.1-1
c5e29d
- update to 2.1.1
c5e29d
c5e29d
* Tue Feb 16 2016 José Matos <jamatos@fedoraproject.org> - 2.1.0-2
c5e29d
- fix typo in provides for the python3 subpackage
c5e29d
c5e29d
* Mon Feb 15 2016 José Matos <jamatos@fedoraproject.org> - 2.1.0-1
c5e29d
- update to 2.1.0
c5e29d
- add a python2 subpackage preserving the upgrade path
c5e29d
c5e29d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-2
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c5e29d
c5e29d
* Fri Jan 08 2016 Terje Rosten <terje.rosten@ntnu.no> - 2.0.7-1
c5e29d
- 2.0.7
c5e29d
c5e29d
* Tue Nov 17 2015 Terje Rosten <terje.rosten@ntnu.no> - 2.0.6-1
c5e29d
- 2.0.6
c5e29d
- Some clean up
c5e29d
c5e29d
* Wed Sep 23 2015 Robert Kuska <rkuska@redhat.com> - 2.0.3-3
c5e29d
- Rebuilt for Python3.5 rebuild
c5e29d
c5e29d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c5e29d
c5e29d
* Fri Nov 28 2014 José Matos <jamatos@fedoraproject.org> - 2.0.3-1
c5e29d
- update to 2.0.3
c5e29d
- include the whole documentation set
c5e29d
c5e29d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c5e29d
c5e29d
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.0.1-2
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
c5e29d
c5e29d
* Sun Oct 27 2013 Terje Rosten <terje.rosten@ntnu.no> - 2.0.1-1
c5e29d
- 2.0.1
c5e29d
c5e29d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-9
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c5e29d
c5e29d
* Wed Apr  3 2013 Thomas Spura <tomspur@fedoraproject.org> - 1.5.6-8
c5e29d
- add patch to correct typo in exception handling
c5e29d
c5e29d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-7
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c5e29d
c5e29d
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-6
c5e29d
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
c5e29d
c5e29d
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-5
c5e29d
- remove rhel logic from with_python3 conditional
c5e29d
c5e29d
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-4
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c5e29d
c5e29d
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-3
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c5e29d
c5e29d
* Tue Dec  6 2011 David Malcolm <dmalcolm@redhat.com> - 1.5.6-2
c5e29d
- fix __pycache__ conditional on RHEL
c5e29d
c5e29d
* Fri Jul  1 2011 José Matos <jamatos@fedoraproject.org> - 1.5.6-1
c5e29d
- New upstream version.
c5e29d
c5e29d
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-2
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c5e29d
c5e29d
* Thu Oct 21 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.5.5-1
c5e29d
- 1.5.5
c5e29d
- use buildroot macro
c5e29d
- fix wrong file end of line encoding
c5e29d
- convert files to utf-8
c5e29d
- doc subpackage
c5e29d
- python3 subpackage
c5e29d
- rpmlint clean
c5e29d
c5e29d
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.5.0-7
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
c5e29d
c5e29d
* Fri Jul 16 2010 Dan Horák <dan[at]danny.cz> - 1.5.0-6
c5e29d
- include egginfo on EL >= 6
c5e29d
c5e29d
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-5
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c5e29d
c5e29d
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-4
c5e29d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c5e29d
c5e29d
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.5.0-3
c5e29d
- Rebuild for Python 2.6
c5e29d
c5e29d
* Mon Aug  4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.5.0-2
c5e29d
- respun (now with the right sources)
c5e29d
c5e29d
* Mon Aug  4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.5.0-1
c5e29d
- new upstream release.
c5e29d
c5e29d
* Tue Apr  1 2008 José Matos <jamatos[AT]fc.up.pt> - 1.4.11-1
c5e29d
- New upstream version, add egg-info for F9+.
c5e29d
c5e29d
* Wed Aug 29 2007 José Matos <jamatos[AT]fc.up.pt> - 1.4.7-1
c5e29d
- New upstream version.
c5e29d
c5e29d
* Sat Apr 21 2007 José Matos <jamatos[AT]fc.up.pt> - 1.4.6-1
c5e29d
- New upstream version.
c5e29d
c5e29d
* Mon Dec 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.4-1
c5e29d
- New upstream version.
c5e29d
c5e29d
* Mon Sep 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.3-1
c5e29d
- New version.
c5e29d
c5e29d
* Wed Aug  3 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.3-1
c5e29d
- Initial RPM release