pyparsing/pyparsing.spec

320 lines
9.7 KiB
RPMSpec
Raw Normal View History

%global srcname pyparsing
%global sum Python package with an object-oriented approach to text processing
2017-02-15 12:54:23 +00:00
%global build_wheel 1
%global python2_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
%global python3_wheelname %python2_wheelname
2019-08-14 21:21:56 +00:00
# when bootstrapping Python 3, pyparsing needs to be rebuilt before sphinx
%bcond_with doc
Summary: %{sum}
2015-11-17 18:35:06 +00:00
Name: pyparsing
2019-04-15 20:14:10 +00:00
Version: 2.4.0
Release: 4%{?dist}
License: MIT
2019-01-10 10:27:15 +00:00
URL: https://github.com/pyparsing/pyparsing
Source0: https://github.com/%{name}/%{name}/archive/%{name}_%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: dos2unix
2015-11-17 18:35:06 +00:00
BuildRequires: python2-devel
BuildRequires: python2-setuptools
2015-11-17 18:35:06 +00:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
2019-08-14 21:21:56 +00:00
%if %{with doc}
BuildRequires: python3-sphinx
2019-08-14 21:21:56 +00:00
%endif
2017-02-15 12:54:23 +00:00
%if 0%{?build_wheel}
BuildRequires: python2-pip
BuildRequires: python2-wheel
2017-02-15 12:54:23 +00:00
BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-wheel
%endif
%description
pyparsing is a module that can be used to easily and directly configure syntax
definitions for any number of text parsing applications.
2019-08-14 21:21:56 +00:00
%if %{with doc}
2015-11-17 18:35:06 +00:00
%package doc
Summary: Documentation for pyparsing python package
2015-11-17 18:35:06 +00:00
%description doc
The package contains documentation for pyparsing.
2019-08-14 21:21:56 +00:00
%endif
%package -n python2-%{srcname}
Summary: %{sum}
%{?python_provide:%python_provide python2-%{srcname}}
Provides: pyparsing = %{version}-%{release}
Obsoletes: pyparsing < 2.1.10-5
%description -n python2-pyparsing
pyparsing is a module that can be used to easily and directly configure syntax
definitions for any number of text parsing applications.
%package -n python3-pyparsing
Summary: %{sum}
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-pyparsing
pyparsing is a module that can be used to easily and directly configure syntax
definitions for any number of text parsing applications.
This is the Python 3 version.
%prep
2019-01-10 10:27:15 +00:00
%setup -q -n %{name}-%{name}_%{version}
dos2unix -k CHANGES LICENSE
2019-01-10 10:27:15 +00:00
%build
2017-02-15 12:54:23 +00:00
%if 0%{?build_wheel}
%py2_build_wheel
%else
%py2_build
2017-02-15 12:54:23 +00:00
%endif
%if 0%{?build_wheel}
%py3_build_wheel
%else
%py3_build
2017-02-15 12:54:23 +00:00
%endif
2019-08-14 21:21:56 +00:00
%if %{with doc}
2019-01-10 10:27:15 +00:00
# build docs
pushd docs
# Theme is not available
sed -i '/alabaster/d' conf.py
sphinx-build -b html . html
popd
2019-08-14 21:21:56 +00:00
%endif
2019-01-10 10:27:15 +00:00
%install
2017-02-15 12:54:23 +00:00
%if 0%{?build_wheel}
%py2_install_wheel %{python2_wheelname}
%else
%py2_install
2017-02-15 12:54:23 +00:00
%endif
%if 0%{?build_wheel}
%py3_install_wheel %{python3_wheelname}
%else
%py3_install
2017-02-15 12:54:23 +00:00
%endif
2019-01-10 10:27:15 +00:00
%check
%{__python2} unitTests.py
%{__python3} unitTests.py
%{__python3} simple_unit_tests.py
%files -n python2-pyparsing
2015-11-17 18:35:06 +00:00
%license LICENSE
%doc CHANGES README.rst
2017-02-15 12:54:23 +00:00
%{python2_sitelib}/pyparsing.py*
%{python2_sitelib}/pyparsing-*dist-info/
%files -n python3-pyparsing
2015-11-17 18:35:06 +00:00
%license LICENSE
%doc CHANGES README.rst
%{python3_sitelib}/pyparsing.py
%{python3_sitelib}/__pycache__/*
2017-02-15 12:54:23 +00:00
%{python3_sitelib}/pyparsing-*dist-info/
2019-08-14 21:21:56 +00:00
%if %{with doc}
%files doc
2015-11-17 18:35:06 +00:00
%license LICENSE
%doc CHANGES README.rst docs/html examples
2019-08-14 21:21:56 +00:00
%endif
2019-01-10 10:27:15 +00:00
%changelog
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-4
2019-08-14 21:21:56 +00:00
- Bootstrap for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-04-15 20:14:10 +00:00
* Mon Apr 15 2019 José Matos <jamatos@fedoraproject.org> - 2.4.0-1
- Update to 2.4.0
* Tue Feb 26 2019 Yatin Karel <ykarel@redhat.com> - 2.3.1-1
- Update to 2.3.1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2019-01-10 10:27:15 +00:00
* Thu Jan 10 2019 Dan Horák <dan[at]danny.cz> - 2.3.0-1
- Update to 2.3.0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-06-13 17:03:31 +00:00
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.0-2
- Rebuilt for Python 3.7
2018-03-14 17:01:36 +00:00
* Wed Mar 14 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.2.0-1
- Update to 2.2.0
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.1.10-7
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jan 24 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.10-5
- Remove the empty pyparsing package, provide and obsolete it from python2-pyparsing
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-02-15 12:54:23 +00:00
* Mon Feb 13 2017 Charalampos Stratakis <cstratak@redhat.com> - 2.1.10-3
- Rebuild as wheel
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Dec 30 2016 José Matos <jamatos@fedoraproject.org> - 2.1.10-1
- update to 2.1.10
- do not own __pycache__
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.1.5-3
- Rebuild for Python 3.6
- Add missing BuildRequires for python-setuptools
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.5-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2016-06-16 14:26:22 +00:00
* Thu Jun 16 2016 José Abílio Matos <jamatos@fc.up.pt> - 2.1.5-1
- update to 2.1.5
2016-05-12 09:00:28 +00:00
* Thu May 12 2016 José Matos <jamatos@fedoraproject.org> - 2.1.3-1
- update to 2.1.3
2016-05-08 18:01:34 +00:00
* Sun May 8 2016 José Matos <jamatos@fedoraproject.org> - 2.1.1-1
- update to 2.1.1
* Tue Feb 16 2016 José Matos <jamatos@fedoraproject.org> - 2.1.0-2
- fix typo in provides for the python3 subpackage
* Mon Feb 15 2016 José Matos <jamatos@fedoraproject.org> - 2.1.0-1
- update to 2.1.0
- add a python2 subpackage preserving the upgrade path
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2016-01-08 18:47:41 +00:00
* Fri Jan 08 2016 Terje Rosten <terje.rosten@ntnu.no> - 2.0.7-1
- 2.0.7
2015-11-17 18:35:06 +00:00
* Tue Nov 17 2015 Terje Rosten <terje.rosten@ntnu.no> - 2.0.6-1
- 2.0.6
- Some clean up
2015-09-23 13:51:04 +00:00
* Wed Sep 23 2015 Robert Kuska <rkuska@redhat.com> - 2.0.3-3
- Rebuilt for Python3.5 rebuild
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Nov 28 2014 José Matos <jamatos@fedoraproject.org> - 2.0.3-1
- update to 2.0.3
- include the whole documentation set
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
2013-11-07 19:56:11 +00:00
* Sun Oct 27 2013 Terje Rosten <terje.rosten@ntnu.no> - 2.0.1-1
- 2.0.1
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Apr 3 2013 Thomas Spura <tomspur@fedoraproject.org> - 1.5.6-8
- add patch to correct typo in exception handling
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-6
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-5
- remove rhel logic from with_python3 conditional
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-12-06 22:28:09 +00:00
* Tue Dec 6 2011 David Malcolm <dmalcolm@redhat.com> - 1.5.6-2
- fix __pycache__ conditional on RHEL
2011-07-01 07:29:45 +00:00
* Fri Jul 1 2011 José Matos <jamatos@fedoraproject.org> - 1.5.6-1
- New upstream version.
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Oct 21 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.5.5-1
- 1.5.5
- use buildroot macro
- fix wrong file end of line encoding
- convert files to utf-8
- doc subpackage
- python3 subpackage
- rpmlint clean
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.5.0-7
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2010-07-16 11:03:27 +00:00
* Fri Jul 16 2010 Dan Horák <dan[at]danny.cz> - 1.5.0-6
- include egginfo on EL >= 6
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-11-29 18:16:52 +00:00
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.5.0-3
- Rebuild for Python 2.6
2008-08-04 15:16:19 +00:00
* Mon Aug 4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.5.0-2
- respun (now with the right sources)
2008-08-04 15:09:09 +00:00
* Mon Aug 4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.5.0-1
- new upstream release.
* Tue Apr 1 2008 José Matos <jamatos[AT]fc.up.pt> - 1.4.11-1
- New upstream version, add egg-info for F9+.
2007-08-29 15:56:25 +00:00
* Wed Aug 29 2007 José Matos <jamatos[AT]fc.up.pt> - 1.4.7-1
- New upstream version.
2007-04-21 10:58:46 +00:00
* Sat Apr 21 2007 José Matos <jamatos[AT]fc.up.pt> - 1.4.6-1
- New upstream version.
2006-12-11 23:43:49 +00:00
* Mon Dec 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.4-1
- New upstream version.
2006-09-11 18:04:32 +00:00
* Mon Sep 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.3-1
- New version.
* Wed Aug 3 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.3-1
- Initial RPM release