2014-11-07 14:55:55 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
%global with_python3 1
|
|
|
|
%endif
|
2005-08-03 19:08:56 +00:00
|
|
|
|
|
|
|
Name: pyparsing
|
2014-11-28 18:39:06 +00:00
|
|
|
Version: 2.0.3
|
2015-06-18 18:14:49 +00:00
|
|
|
Release: 2%{?dist}
|
2005-08-03 19:08:56 +00:00
|
|
|
Summary: An object-oriented approach to text processing
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: MIT
|
2006-12-11 23:43:49 +00:00
|
|
|
URL: http://pyparsing.wikispaces.com/
|
2010-10-25 12:18:40 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/pyparsing/pyparsing-%{version}.tar.gz
|
2005-08-03 19:08:56 +00:00
|
|
|
BuildArch: noarch
|
2006-12-11 23:43:49 +00:00
|
|
|
BuildRequires: python-devel
|
2010-10-25 12:18:40 +00:00
|
|
|
BuildRequires: dos2unix
|
|
|
|
BuildRequires: glibc-common
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
%endif # if with_python3
|
2005-08-03 19:08:56 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
pyparsing is a module that can be used to easily and directly configure syntax
|
|
|
|
definitions for any number of text parsing applications.
|
|
|
|
|
2010-10-25 12:18:40 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for pyparsing
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The package contains documentation for pyparsing.
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-pyparsing
|
|
|
|
Summary: An object-oriented approach to text processing (Python 3 version)
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%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.
|
|
|
|
%endif # if with_python3
|
|
|
|
|
2005-08-03 19:08:56 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-10-25 12:18:40 +00:00
|
|
|
mv docs/pyparsingClassDiagram.PNG docs/pyparsingClassDiagram.png
|
|
|
|
rm docs/pyparsingClassDiagram.JPG
|
2013-11-07 19:56:11 +00:00
|
|
|
dos2unix -k CHANGES LICENSE README
|
|
|
|
for f in CHANGES ; do
|
2010-10-25 12:18:40 +00:00
|
|
|
mv $f $f.iso88591
|
|
|
|
iconv -f ISO-8859-1 -t UTF-8 -o $f $f.iso88591
|
|
|
|
touch -r $f.iso88591 $f
|
|
|
|
rm -f $f.iso88591
|
|
|
|
done
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
%endif # with_python3
|
2005-08-03 19:08:56 +00:00
|
|
|
|
|
|
|
%build
|
2013-11-07 19:56:11 +00:00
|
|
|
%{__python2} setup.py build
|
2010-10-25 12:18:40 +00:00
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
2005-08-03 19:08:56 +00:00
|
|
|
|
|
|
|
%install
|
2010-10-25 12:18:40 +00:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
# Install python 3 first, so that python 2 gets precedence:
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
|
|
|
|
2013-11-07 19:56:11 +00:00
|
|
|
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
2005-08-03 19:08:56 +00:00
|
|
|
|
|
|
|
%clean
|
2010-10-25 12:18:40 +00:00
|
|
|
rm -rf %{buildroot}
|
2005-08-03 19:08:56 +00:00
|
|
|
|
|
|
|
%files
|
2010-10-25 12:18:40 +00:00
|
|
|
%doc CHANGES README LICENSE
|
2010-07-16 11:03:27 +00:00
|
|
|
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
|
2008-04-01 16:19:31 +00:00
|
|
|
%{python_sitelib}/pyparsing*egg-info
|
|
|
|
%endif
|
|
|
|
%{python_sitelib}/pyparsing.py*
|
|
|
|
|
2010-10-25 12:18:40 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-pyparsing
|
|
|
|
%doc CHANGES README LICENSE
|
|
|
|
%{python3_sitelib}/pyparsing*egg-info
|
|
|
|
%{python3_sitelib}/pyparsing.py*
|
|
|
|
%endif # with_python3
|
2014-11-07 14:55:55 +00:00
|
|
|
%if 0%{?with_python3}
|
2010-10-25 12:51:51 +00:00
|
|
|
%{python3_sitelib}/__pycache__/pyparsing*
|
|
|
|
%endif # pycache
|
2010-10-25 12:18:40 +00:00
|
|
|
|
|
|
|
%files doc
|
2014-11-28 18:39:06 +00:00
|
|
|
%doc CHANGES README LICENSE HowToUsePyparsing.html docs examples htmldoc
|
2005-08-03 19:08:56 +00:00
|
|
|
|
|
|
|
%changelog
|
2015-06-18 18:14:49 +00:00
|
|
|
* 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
|
|
|
|
|
2014-11-28 18:39:06 +00:00
|
|
|
* Fri Nov 28 2014 José Matos <jamatos@fedoraproject.org> - 2.0.3-1
|
|
|
|
- update to 2.0.3
|
|
|
|
- include the whole documentation set
|
|
|
|
|
2014-06-07 18:09:52 +00:00
|
|
|
* 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
|
|
|
|
|
2014-05-15 11:44:12 +00:00
|
|
|
* 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
|
|
|
|
|
2013-08-04 06:02:19 +00:00
|
|
|
* 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
|
|
|
|
|
2013-04-02 23:35:49 +00:00
|
|
|
* Wed Apr 3 2013 Thomas Spura <tomspur@fedoraproject.org> - 1.5.6-8
|
|
|
|
- add patch to correct typo in exception handling
|
|
|
|
|
2013-02-14 18:47:30 +00:00
|
|
|
* 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
|
|
|
|
|
2012-08-04 02:59:59 +00:00
|
|
|
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-6
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
|
|
2012-08-03 18:10:36 +00:00
|
|
|
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-5
|
|
|
|
- remove rhel logic from with_python3 conditional
|
|
|
|
|
2012-07-21 04:19:36 +00:00
|
|
|
* 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
|
|
|
|
|
2012-01-14 01:28:45 +00:00
|
|
|
* 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.
|
|
|
|
|
2011-02-09 02:18:45 +00:00
|
|
|
* 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
|
|
|
|
|
2010-10-25 12:18:40 +00:00
|
|
|
* 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
|
|
|
|
|
2010-07-22 03:31:28 +00:00
|
|
|
* 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
|
|
|
|
|
2009-07-26 19:56:35 +00:00
|
|
|
* 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
|
|
|
|
|
2009-02-26 20:18:32 +00:00
|
|
|
* 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.
|
|
|
|
|
2008-04-01 16:19:31 +00:00
|
|
|
* 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.
|
|
|
|
|
2005-08-03 19:08:56 +00:00
|
|
|
* Wed Aug 3 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.3-1
|
|
|
|
- Initial RPM release
|