Blame SPECS/pyparsing.spec

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