zbyszek / rpms / pyparsing

Forked from rpms/pyparsing 4 years ago
Clone
Alan Pevec ab40035
%if 0%{?fedora}
Alan Pevec ab40035
%global with_python3 1
Alan Pevec ab40035
%endif
5f051aa
5f051aa
Name:           pyparsing
47d06e0
Version:        2.0.3
47d06e0
Release:        1%{?dist}
5f051aa
Summary:        An object-oriented approach to text processing
5f051aa
Group:          Development/Libraries
5f051aa
License:        MIT
1838cc7
URL:            http://pyparsing.wikispaces.com/
05d7628
Source0:        http://downloads.sourceforge.net/pyparsing/pyparsing-%{version}.tar.gz
5f051aa
BuildArch:      noarch
1838cc7
BuildRequires:  python-devel
05d7628
BuildRequires:  dos2unix
05d7628
BuildRequires:  glibc-common
05d7628
%if 0%{?with_python3}
05d7628
BuildRequires: python3-devel
05d7628
%endif # if with_python3
5f051aa
5f051aa
%description
5f051aa
pyparsing is a module that can be used to easily and directly configure syntax
5f051aa
definitions for any number of text parsing applications.
5f051aa
05d7628
%package doc
05d7628
Summary:        Documentation for pyparsing
05d7628
Group:          Development/Libraries
05d7628
05d7628
%description doc
05d7628
The package contains documentation for pyparsing.
05d7628
05d7628
%if 0%{?with_python3}
05d7628
%package -n python3-pyparsing
05d7628
Summary:        An object-oriented approach to text processing (Python 3 version)
05d7628
Group:          Development/Libraries
05d7628
05d7628
%description -n python3-pyparsing
05d7628
pyparsing is a module that can be used to easily and directly configure syntax
05d7628
definitions for any number of text parsing applications.
05d7628
05d7628
This is the Python 3 version.
05d7628
%endif # if with_python3
05d7628
5f051aa
%prep
5f051aa
%setup -q
05d7628
mv docs/pyparsingClassDiagram.PNG docs/pyparsingClassDiagram.png
05d7628
rm docs/pyparsingClassDiagram.JPG
Terje Røsten 03ffa9d
dos2unix -k CHANGES LICENSE README
Terje Røsten 03ffa9d
for f in CHANGES ; do
05d7628
    mv $f $f.iso88591
05d7628
    iconv -f ISO-8859-1 -t UTF-8 -o $f $f.iso88591
05d7628
    touch -r $f.iso88591 $f
05d7628
    rm -f $f.iso88591
05d7628
done
05d7628
05d7628
%if 0%{?with_python3}
05d7628
rm -rf %{py3dir}
05d7628
cp -a . %{py3dir}
05d7628
%endif # with_python3
5f051aa
5f051aa
%build
Terje Røsten 03ffa9d
%{__python2} setup.py build
05d7628
05d7628
%if 0%{?with_python3}
05d7628
pushd %{py3dir}
05d7628
%{__python3} setup.py build
05d7628
popd
05d7628
%endif # with_python3
5f051aa
5f051aa
%install
05d7628
rm -rf %{buildroot}
05d7628
05d7628
# Install python 3 first, so that python 2 gets precedence:
05d7628
%if 0%{?with_python3}
05d7628
pushd %{py3dir}
05d7628
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
05d7628
popd
05d7628
%endif # with_python3
05d7628
Terje Røsten 03ffa9d
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
5f051aa
5f051aa
%clean
05d7628
rm -rf %{buildroot}
5f051aa
5f051aa
%files
05d7628
%doc CHANGES README LICENSE
36c2e86
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
8a8ca28
%{python_sitelib}/pyparsing*egg-info
8a8ca28
%endif
8a8ca28
%{python_sitelib}/pyparsing.py*
8a8ca28
05d7628
%if 0%{?with_python3}
05d7628
%files -n python3-pyparsing
05d7628
%doc CHANGES README LICENSE
05d7628
%{python3_sitelib}/pyparsing*egg-info
05d7628
%{python3_sitelib}/pyparsing.py*
05d7628
%endif # with_python3
Alan Pevec ab40035
%if 0%{?with_python3}
35fdcd0
%{python3_sitelib}/__pycache__/pyparsing*
35fdcd0
%endif # pycache
05d7628
05d7628
%files doc
47d06e0
%doc CHANGES README LICENSE HowToUsePyparsing.html docs examples htmldoc
5f051aa
5f051aa
%changelog
47d06e0
* Fri Nov 28 2014 José Matos <jamatos@fedoraproject.org> - 2.0.3-1
47d06e0
- update to 2.0.3
47d06e0
- include the whole documentation set
47d06e0
63ec489
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
63ec489
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
63ec489
04304e0
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.0.1-2
04304e0
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
04304e0
Terje Røsten 03ffa9d
* Sun Oct 27 2013 Terje Rosten <terje.rosten@ntnu.no> - 2.0.1-1
Terje Røsten 03ffa9d
- 2.0.1
Terje Røsten 03ffa9d
462889d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-9
462889d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
462889d
Thomas Spura caf4922
* Wed Apr  3 2013 Thomas Spura <tomspur@fedoraproject.org> - 1.5.6-8
Thomas Spura caf4922
- add patch to correct typo in exception handling
Thomas Spura caf4922
a867879
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-7
a867879
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a867879
6dc9397
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-6
6dc9397
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
6dc9397
b2d0797
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 1.5.6-5
b2d0797
- remove rhel logic from with_python3 conditional
b2d0797
8b7ae27
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-4
8b7ae27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8b7ae27
c5ba59a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-3
c5ba59a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c5ba59a
8c2862a
* Tue Dec  6 2011 David Malcolm <dmalcolm@redhat.com> - 1.5.6-2
8c2862a
- fix __pycache__ conditional on RHEL
8c2862a
31310ba
* Fri Jul  1 2011 José Matos <jamatos@fedoraproject.org> - 1.5.6-1
31310ba
- New upstream version.
31310ba
f88befa
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-2
f88befa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f88befa
05d7628
* Thu Oct 21 2010 Terje Rosten <terje.rosten@ntnu.no> - 1.5.5-1
05d7628
- 1.5.5
05d7628
- use buildroot macro
05d7628
- fix wrong file end of line encoding
05d7628
- convert files to utf-8
05d7628
- doc subpackage
05d7628
- python3 subpackage
05d7628
- rpmlint clean
05d7628
18b72d7
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.5.0-7
18b72d7
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
18b72d7
36c2e86
* Fri Jul 16 2010 Dan Horák <dan[at]danny.cz> - 1.5.0-6
36c2e86
- include egginfo on EL >= 6
36c2e86
05c5e91
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-5
05c5e91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
05c5e91
740018b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-4
740018b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
740018b
35f9d49
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.5.0-3
35f9d49
- Rebuild for Python 2.6
35f9d49
3e5b6e1
* Mon Aug  4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.5.0-2
3e5b6e1
- respun (now with the right sources)
3e5b6e1
44915c6
* Mon Aug  4 2008 José Matos <jamatos[AT]fc.up.pt> - 1.5.0-1
44915c6
- new upstream release.
44915c6
8a8ca28
* Tue Apr  1 2008 José Matos <jamatos[AT]fc.up.pt> - 1.4.11-1
8a8ca28
- New upstream version, add egg-info for F9+.
8a8ca28
ae06558
* Wed Aug 29 2007 José Matos <jamatos[AT]fc.up.pt> - 1.4.7-1
ae06558
- New upstream version.
ae06558
5a15a9a
* Sat Apr 21 2007 José Matos <jamatos[AT]fc.up.pt> - 1.4.6-1
5a15a9a
- New upstream version.
5a15a9a
1838cc7
* Mon Dec 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.4-1
1838cc7
- New upstream version.
1838cc7
5754eee
* Mon Sep 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.3-1
5754eee
- New version.
5754eee
5f051aa
* Wed Aug  3 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.3-1
5f051aa
- Initial RPM release