2.0.6
- Some clean up
This commit is contained in:
parent
ca75ec0399
commit
a3002fe52e
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
clog
|
clog
|
||||||
/pyparsing-2.0.3.tar.gz
|
/pyparsing-2.0.3.tar.gz
|
||||||
|
/pyparsing-2.0.6.tar.gz
|
||||||
|
@ -2,35 +2,34 @@
|
|||||||
%global with_python3 1
|
%global with_python3 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: pyparsing
|
|
||||||
Version: 2.0.3
|
|
||||||
Release: 3%{?dist}
|
|
||||||
Summary: An object-oriented approach to text processing
|
Summary: An object-oriented approach to text processing
|
||||||
|
Name: pyparsing
|
||||||
|
Version: 2.0.6
|
||||||
|
Release: 1%{?dist}
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://pyparsing.wikispaces.com/
|
URL: http://pyparsing.wikispaces.com/
|
||||||
Source0: http://downloads.sourceforge.net/pyparsing/pyparsing-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/pyparsing/pyparsing-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python-devel
|
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: glibc-common
|
BuildRequires: python2-devel
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
%endif # if with_python3
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
pyparsing is a module that can be used to easily and directly configure syntax
|
pyparsing is a module that can be used to easily and directly configure syntax
|
||||||
definitions for any number of text parsing applications.
|
definitions for any number of text parsing applications.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for pyparsing
|
Summary: Documentation for pyparsing
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
The package contains documentation for pyparsing.
|
The package contains documentation for pyparsing.
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%package -n python3-pyparsing
|
%package -n python3-pyparsing
|
||||||
Summary: An object-oriented approach to text processing (Python 3 version)
|
Summary: An object-oriented approach to text processing (Python 3 version)
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
|
||||||
@ -39,51 +38,30 @@ pyparsing is a module that can be used to easily and directly configure syntax
|
|||||||
definitions for any number of text parsing applications.
|
definitions for any number of text parsing applications.
|
||||||
|
|
||||||
This is the Python 3 version.
|
This is the Python 3 version.
|
||||||
%endif # if with_python3
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
mv docs/pyparsingClassDiagram.PNG docs/pyparsingClassDiagram.png
|
mv docs/pyparsingClassDiagram.PNG docs/pyparsingClassDiagram.png
|
||||||
rm docs/pyparsingClassDiagram.JPG
|
rm docs/pyparsingClassDiagram.JPG
|
||||||
dos2unix -k CHANGES LICENSE README
|
dos2unix -k CHANGES LICENSE README
|
||||||
for f in CHANGES ; do
|
|
||||||
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
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__python2} setup.py build
|
%{py2_build}
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
%{py3_build}
|
||||||
%{__python3} setup.py build
|
%endif
|
||||||
popd
|
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
# Install python 3 first, so that python 2 gets precedence:
|
# Install python 3 first, so that python 2 gets precedence:
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
pushd %{py3dir}
|
%{py3_install}
|
||||||
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
%endif
|
||||||
popd
|
%{py2_install}
|
||||||
%endif # with_python3
|
|
||||||
|
|
||||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc CHANGES README LICENSE
|
%license LICENSE
|
||||||
|
%doc CHANGES README
|
||||||
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
|
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
|
||||||
%{python_sitelib}/pyparsing*egg-info
|
%{python_sitelib}/pyparsing*egg-info
|
||||||
%endif
|
%endif
|
||||||
@ -91,18 +69,22 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
%files -n python3-pyparsing
|
%files -n python3-pyparsing
|
||||||
|
%license LICENSE
|
||||||
%doc CHANGES README LICENSE
|
%doc CHANGES README LICENSE
|
||||||
%{python3_sitelib}/pyparsing*egg-info
|
%{python3_sitelib}/pyparsing*egg-info
|
||||||
%{python3_sitelib}/pyparsing.py*
|
%{python3_sitelib}/pyparsing.py*
|
||||||
%endif # with_python3
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%{python3_sitelib}/__pycache__/pyparsing*
|
%{python3_sitelib}/__pycache__/pyparsing*
|
||||||
%endif # pycache
|
%endif
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc CHANGES README LICENSE HowToUsePyparsing.html docs examples htmldoc
|
%license LICENSE
|
||||||
|
%doc CHANGES README HowToUsePyparsing.html docs examples htmldoc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 17 2015 Terje Rosten <terje.rosten@ntnu.no> - 2.0.6-1
|
||||||
|
- 2.0.6
|
||||||
|
- Some clean up
|
||||||
|
|
||||||
* Wed Sep 23 2015 Robert Kuska <rkuska@redhat.com> - 2.0.3-3
|
* Wed Sep 23 2015 Robert Kuska <rkuska@redhat.com> - 2.0.3-3
|
||||||
- Rebuilt for Python3.5 rebuild
|
- Rebuilt for Python3.5 rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user