From e698185b819d53b677566147d06f7601d097c385 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:27:48 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.0.2-1mamba;Sun May 11 2014] --- README.md | 2 ++ python-pyparsing.spec | 44 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 python-pyparsing.spec diff --git a/README.md b/README.md index 89e5114..d47f1c2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-pyparsing +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. + diff --git a/python-pyparsing.spec b/python-pyparsing.spec new file mode 100644 index 0000000..f799e6e --- /dev/null +++ b/python-pyparsing.spec @@ -0,0 +1,44 @@ +Name: python-pyparsing +Version: 2.0.2 +Release: 1mamba +Summary: An alternative approach to creating and executing simple grammars +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://pyparsing.wikispaces.com/ +Source: http://downloads.sourceforge.net/project/pyparsing/pyparsing/pyparsing-%{version}/pyparsing-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +Requires: python >= %python_version +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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 pyparsing-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +%files -f %{name}.filelist +%defattr(-,root,root) +%doc LICENSE + +%changelog +* Sun May 11 2014 Silvan Calarco 2.0.2-1mamba +- package created using the webbuild interface