Compare commits

..

No commits in common. "b10a3dd4636cfda37cb822a9707e5b7e86687128" and "d472f5850932a42d0fd8c3caa74110c5cc006492" have entirely different histories.

3 changed files with 27 additions and 33 deletions

BIN
pyparsing-2.4.7.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,14 +1,14 @@
Name: pyparsing
Version: 3.0.6
Release: 3
Version: 2.4.7
Release: 1
Summary: A Python Parsing Module
License: MIT
URL: https://github.com/pyparsing/pyparsing/
Source0: https://github.com/pyparsing/pyparsing/releases/download/pyparsing_%{version}/pyparsing-%{version}.tar.gz
Source0: http://downloads.sourceforge.net/pyparsing/pyparsing-%{version}.tar.gz
BuildArch: noarch
BuildRequires: dos2unix python3-devel python3-setuptools python3-tox python3-coverage
BuildRequires: python%{python3_pkgversion}-pip python%{python3_pkgversion}-wheel
BuildRequires: dos2unix python2-devel python2-setuptools python3-devel python3-setuptools
BuildRequires: python2-pip python2-wheel python%{python3_pkgversion}-pip python%{python3_pkgversion}-wheel
%description
The pyparsing module is an alternative approach to creating and executing simple
@ -16,10 +16,18 @@ 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
@ -42,13 +50,12 @@ Man pages and other related documents for %{name}.
dos2unix -k CHANGES LICENSE
%build
%py2_build_wheel
%py3_build_wheel
%install
%py3_install_wheel pyparsing-%{version}-py3-none-any.whl
%check
%{__python3} tests/test_simple_unit.py
%py2_install_wheel pyparsing-%{version}-py2.py3-none-any.whl
%py3_install_wheel pyparsing-%{version}-py2.py3-none-any.whl
%pre
@ -58,37 +65,24 @@ 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/
%{python3_sitelib}/pyparsing.py
%{python3_sitelib}/__pycache__/*
%{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