update to 2.1.0

- add a python2 subpackage preserving the upgrade path
This commit is contained in:
José Matos 2016-02-15 12:17:09 +00:00
parent 101415e9ef
commit c2627a15a4
3 changed files with 40 additions and 35 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ clog
/pyparsing-2.0.3.tar.gz /pyparsing-2.0.3.tar.gz
/pyparsing-2.0.6.tar.gz /pyparsing-2.0.6.tar.gz
/pyparsing-2.0.7.tar.gz /pyparsing-2.0.7.tar.gz
/pyparsing-2.1.0.tar.gz

View File

@ -1,43 +1,53 @@
%if 0%{?fedora} %global srcname pyparsing
%global with_python3 1 %global sum Python package with an object-oriented approach to text processing
%endif
Summary: An object-oriented approach to text processing Summary: %{sum}
Name: pyparsing Name: pyparsing
Version: 2.0.7 Version: 2.1.0
Release: 2%{?dist} Release: 1%{?dist}
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: dos2unix BuildRequires: dos2unix
BuildRequires: python2-devel BuildRequires: python2-devel
%if 0%{?with_python3}
BuildRequires: python3-devel BuildRequires: python3-devel
%endif
Requires: python-%{srcname} = %{version}-%{release}
%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 python package
Group: Development/Libraries
%description doc %description doc
The package contains documentation for pyparsing. The package contains documentation for pyparsing.
%if 0%{?with_python3}
%package -n python3-pyparsing %package -n python2-%{srcname}
Summary: An object-oriented approach to text processing (Python 3 version) Summary: %{sum}
Group: Development/Libraries %{?python_provide:%python_provide python2-%{srcname}}
%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 python2-%{srcname}}
%description -n python3-pyparsing %description -n python3-pyparsing
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.
This is the Python 3 version. This is the Python 3 version.
%endif
%prep %prep
%setup -q %setup -q
@ -46,40 +56,34 @@ rm docs/pyparsingClassDiagram.JPG
dos2unix -k CHANGES LICENSE README dos2unix -k CHANGES LICENSE README
%build %build
%{py2_build} %py2_build
%if 0%{?with_python3} %py3_build
%{py3_build}
%endif
%install %install
# Install python 3 first, so that python 2 gets precedence: %py2_install
%if 0%{?with_python3} %py3_install
%{py3_install}
%endif
%{py2_install}
%files %files
%files -n python2-pyparsing
%license LICENSE %license LICENSE
%doc CHANGES README %doc CHANGES README
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6 %{python_sitelib}/*
%{python_sitelib}/pyparsing*egg-info
%endif
%{python_sitelib}/pyparsing.py*
%if 0%{?with_python3}
%files -n python3-pyparsing %files -n python3-pyparsing
%license LICENSE %license LICENSE
%doc CHANGES README LICENSE %doc CHANGES README LICENSE
%{python3_sitelib}/pyparsing*egg-info %{python3_sitelib}/*
%{python3_sitelib}/pyparsing.py*
%{python3_sitelib}/__pycache__/pyparsing*
%endif
%files doc %files doc
%license LICENSE %license LICENSE
%doc CHANGES README HowToUsePyparsing.html docs examples htmldoc %doc CHANGES README HowToUsePyparsing.html docs examples htmldoc
%changelog %changelog
* 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 * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

View File

@ -1 +1 @@
bc5f86cf804a9314373c74146cfc0e8c pyparsing-2.0.7.tar.gz 6fc363eb77331f9cf435d65f63f364ea pyparsing-2.1.0.tar.gz