remove python2 require
This commit is contained in:
parent
d472f58509
commit
f04e404185
@ -1,14 +1,14 @@
|
|||||||
Name: pyparsing
|
Name: pyparsing
|
||||||
Version: 2.4.7
|
Version: 2.4.7
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A Python Parsing Module
|
Summary: A Python Parsing Module
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pyparsing/pyparsing/
|
URL: https://github.com/pyparsing/pyparsing/
|
||||||
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 python2-devel python2-setuptools python3-devel python3-setuptools
|
BuildRequires: dos2unix python3-devel python3-setuptools
|
||||||
BuildRequires: python2-pip python2-wheel python%{python3_pkgversion}-pip python%{python3_pkgversion}-wheel
|
BuildRequires: python%{python3_pkgversion}-pip python%{python3_pkgversion}-wheel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The pyparsing module is an alternative approach to creating and executing simple
|
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
|
The pyparsing module provides a library of classes that client code uses to
|
||||||
construct the grammar directly in Python code.
|
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
|
%package -n python3-pyparsing
|
||||||
Summary: Pyparsing for python3
|
Summary: Pyparsing for python3
|
||||||
%{?python_provide:%python_provide python3-%pyparsing}
|
%{?python_provide:%python_provide python3-%pyparsing}
|
||||||
@ -50,11 +40,9 @@ Man pages and other related documents for %{name}.
|
|||||||
dos2unix -k CHANGES LICENSE
|
dos2unix -k CHANGES LICENSE
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build_wheel
|
|
||||||
%py3_build_wheel
|
%py3_build_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install_wheel pyparsing-%{version}-py2.py3-none-any.whl
|
|
||||||
%py3_install_wheel pyparsing-%{version}-py2.py3-none-any.whl
|
%py3_install_wheel pyparsing-%{version}-py2.py3-none-any.whl
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
@ -65,13 +53,6 @@ dos2unix -k CHANGES LICENSE
|
|||||||
|
|
||||||
%postun
|
%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
|
%files -n python3-pyparsing
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES README.rst
|
%doc CHANGES README.rst
|
||||||
@ -83,6 +64,12 @@ dos2unix -k CHANGES LICENSE
|
|||||||
%doc CHANGES README.rst docs examples
|
%doc CHANGES README.rst docs examples
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Jul 17 2020 shixuantong <shixuantong@huawei.com> -2.4.7-1
|
||||||
- update to 2.4.7-1
|
- update to 2.4.7-1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user