Compare commits
10 Commits
d472f58509
...
b10a3dd463
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b10a3dd463 | ||
|
|
c91fa5694b | ||
|
|
543eaeaad1 | ||
|
|
f1e400341c | ||
|
|
0d85606217 | ||
|
|
e6fd638a16 | ||
|
|
e5dbf5767d | ||
|
|
9b4337a1f2 | ||
|
|
d16b08a990 | ||
|
|
f04e404185 |
Binary file not shown.
BIN
pyparsing-3.0.6.tar.gz
Normal file
BIN
pyparsing-3.0.6.tar.gz
Normal file
Binary file not shown.
@ -1,14 +1,14 @@
|
||||
Name: pyparsing
|
||||
Version: 2.4.7
|
||||
Release: 1
|
||||
Version: 3.0.6
|
||||
Release: 3
|
||||
Summary: A Python Parsing Module
|
||||
License: MIT
|
||||
URL: https://github.com/pyparsing/pyparsing/
|
||||
Source0: http://downloads.sourceforge.net/pyparsing/pyparsing-%{version}.tar.gz
|
||||
Source0: https://github.com/pyparsing/pyparsing/releases/download/pyparsing_%{version}/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 python3-tox python3-coverage
|
||||
BuildRequires: python%{python3_pkgversion}-pip python%{python3_pkgversion}-wheel
|
||||
|
||||
%description
|
||||
The pyparsing module is an alternative approach to creating and executing simple
|
||||
@ -16,18 +16,10 @@ 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
|
||||
Provides: python%{python3_pkgversion}dist(pyparsing) = %{version}
|
||||
Provides: python%{python3_version}dist(pyparsing) = %{version}
|
||||
%{?python_provide:%python_provide python3-%pyparsing}
|
||||
|
||||
%description -n python3-pyparsing
|
||||
@ -50,12 +42,13 @@ 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
|
||||
%py3_install_wheel pyparsing-%{version}-py3-none-any.whl
|
||||
|
||||
%check
|
||||
%{__python3} tests/test_simple_unit.py
|
||||
|
||||
%pre
|
||||
|
||||
@ -65,24 +58,37 @@ 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
|
||||
%{python3_sitelib}/pyparsing.py
|
||||
%{python3_sitelib}/__pycache__/*
|
||||
%{python3_sitelib}/pyparsing/
|
||||
%{python3_sitelib}/pyparsing-*dist-info/
|
||||
|
||||
%files help
|
||||
%doc CHANGES README.rst docs examples
|
||||
|
||||
%changelog
|
||||
* Sat May 27 2023 yanglongkang <yanglongkang@h-partners.com> - 3.0.6-3
|
||||
- enable check
|
||||
|
||||
* Tue Oct 25 2022 zhuofeng <zhuofeng2@huawei.com> - 3.0.6-2
|
||||
- Rebuild for next release
|
||||
|
||||
* Wed Dec 01 2021 shixuantong <shixuantong@huawei.com> - 3.0.6-1
|
||||
- update version to 3.0.6
|
||||
|
||||
* Sat Sep 5 2020 shixuantong <shixuantong@huawei.com> - 2.4.7-3
|
||||
- Type: bugfix
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: update Source0
|
||||
|
||||
* 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user