From ebaf46a0edb8d4a3e48e98bb53615c5a03d78d46 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Mon, 18 Jul 2022 15:19:58 +0900 Subject: [PATCH] Bump to python3-pyparsing 3.0.7 Change-Id: I56ddf9a0a673ae9e587eead56aea93408f09ac19 --- packaging/python3-pyparsing.manifest | 5 ++++ packaging/python3-pyparsing.spec | 45 ++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 packaging/python3-pyparsing.manifest create mode 100644 packaging/python3-pyparsing.spec diff --git a/packaging/python3-pyparsing.manifest b/packaging/python3-pyparsing.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python3-pyparsing.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python3-pyparsing.spec b/packaging/python3-pyparsing.spec new file mode 100644 index 0000000..ecaf154 --- /dev/null +++ b/packaging/python3-pyparsing.spec @@ -0,0 +1,45 @@ +Name: python3-pyparsing +Version: 3.0.7 +Release: 0 +Summary: Grammar Parser Library for Python +License: MIT +Group: Development/Languages/Python +Url: https://pypi.python.org/pypi/pyparsing +Source: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest + +BuildRequires: pkgconfig(python3) +BuildRequires: python3-setuptools + +BuildArch: noarch + +Provides: python3-parsing = %{version} +Obsoletes: python3-parsing < %{version} + +%description +The pyparsing module is an alternative approach to creating and executing +simple grammars, vs. the traditional lex/yacc approach, or the use of regular +expressions. The pyparsing module provides a library of classes that client +code uses to construct the grammar directly in Python code. + +%prep +%setup -q -n %{name}-%{version} +cp %{SOURCE1001} . + +%build +%{_bindir}/python3 setup.py build + +# Fix wrong EOL encoding: +sed -i 's/\r$//' CHANGES LICENSE + +%install +%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +%remove_docs + +%files +%manifest %{name}.manifest +%license LICENSE +%{python3_sitelib}/pyparsing/* +%{python3_sitelib}/pyparsing-%{version}-py*.egg-info/ + +%changelog -- 2.34.1