remove python2 require

This commit is contained in:
zhanliwen 2020-08-07 19:40:57 +08:00
parent d472f58509
commit f04e404185

View File

@ -1,14 +1,14 @@
Name: pyparsing
Version: 2.4.7
Release: 1
Release: 2
Summary: A Python Parsing Module
License: MIT
URL: https://github.com/pyparsing/pyparsing/
Source0: http://downloads.sourceforge.net/pyparsing/pyparsing-%{version}.tar.gz
BuildArch: noarch
BuildRequires: dos2unix python2-devel python2-setuptools python3-devel python3-setuptools
BuildRequires: python2-pip python2-wheel python%{python3_pkgversion}-pip python%{python3_pkgversion}-wheel
BuildRequires: dos2unix python3-devel python3-setuptools
BuildRequires: python%{python3_pkgversion}-pip python%{python3_pkgversion}-wheel
%description
The pyparsing module is an alternative approach to creating and executing simple
@ -16,16 +16,6 @@ grammars, vs. the traditional lex/yacc approach, or the use of regular expressio
The pyparsing module provides a library of classes that client code uses to
construct the grammar directly in Python code.
%package -n python2-pyparsing
Summary: Pyparsing for python2
%{?python_provide:%python_provide python2-pyparsing}
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: Pyparsing for python3
%{?python_provide:%python_provide python3-%pyparsing}
@ -50,11 +40,9 @@ Man pages and other related documents for %{name}.
dos2unix -k CHANGES LICENSE
%build
%py2_build_wheel
%py3_build_wheel
%install
%py2_install_wheel pyparsing-%{version}-py2.py3-none-any.whl
%py3_install_wheel pyparsing-%{version}-py2.py3-none-any.whl
%pre
@ -65,13 +53,6 @@ dos2unix -k CHANGES LICENSE
%postun
%files -n python2-pyparsing
%defattr(-,root,root)
%license LICENSE
%doc CHANGES README.rst
%{python2_sitelib}/pyparsing.py*
%{python2_sitelib}/pyparsing-*dist-info/
%files -n python3-pyparsing
%license LICENSE
%doc CHANGES README.rst
@ -83,6 +64,12 @@ dos2unix -k CHANGES LICENSE
%doc CHANGES README.rst docs examples
%changelog
* Fri Aug 7 2020 wenzhanli<wenzhanli2@huawei.com> - 2.4.7-2
- Type:bugfix
- ID:NAl
- SUG:NA
- DESC:remove python2 require
* Fri Jul 17 2020 shixuantong <shixuantong@huawei.com> -2.4.7-1
- update to 2.4.7-1