From 9dfd032c7d0c39a3b026bd3a4bb57cff68be1273 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:19:40 +0100 Subject: [PATCH] python 2.7 mass rebuild [release 3.4-2mamba;Fri May 17 2013] --- README.md | 7 ++++++ python-ply.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 python-ply.spec diff --git a/README.md b/README.md index ee1a760..08c7ef0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,9 @@ # python-ply +PLY is a straightforward lex/yacc implementation. Here is a list of its essential features: +* It is implemented entirely in Python. +* It uses LR-parsing which is reasonably efficient and well suited for larger grammars. +* PLY provides most of the standard lex/yacc features including support for empty productions, precedence rules, error recovery, and support for ambiguous grammars. +* PLY is straightforward to use and provides very extensive error checking. +* PLY doesn't try to do anything more or less than provide the basic lex/yacc functionality. In other words, it's not a large parsing framework or a component of some larger system.. + diff --git a/python-ply.spec b/python-ply.spec new file mode 100644 index 0000000..cfcd33c --- /dev/null +++ b/python-ply.spec @@ -0,0 +1,63 @@ +Name: python-ply +Version: 3.4 +Release: 2mamba +Summary: Python Lex & Yacc +Group: System/Libraries/Python +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.dabeaz.com/ply/ +Source: http://www.dabeaz.com/ply/ply-%{version}.tar.gz +License: BSD, LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +%py_requires +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +PLY is a straightforward lex/yacc implementation. Here is a list of its essential features: +* It is implemented entirely in Python. +* It uses LR-parsing which is reasonably efficient and well suited for larger grammars. +* PLY provides most of the standard lex/yacc features including support for empty productions, precedence rules, error recovery, and support for ambiguous grammars. +* PLY is straightforward to use and provides very extensive error checking. +* PLY doesn't try to do anything more or less than provide the basic lex/yacc functionality. In other words, it's not a large parsing framework or a component of some larger system.. + +%prep +%setup -q -n ply-%{version} + +sed -i 's|/usr/local/bin/python|%{__python}|g' $(find . -name "*.py") +chmod -x example/yply/yply.py example/newclasscalc/calc.py example/classcalc/calc.py example/cleanup.sh + +%build +%{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir %{python_sitearch}/ply-%{version}-py%{python_version}.egg-info +%{python_sitearch}/ply-%{version}-py%{python_version}.egg-info/PKG-INFO +%{python_sitearch}/ply-%{version}-py%{python_version}.egg-info/*.txt +%dir %{python_sitearch}/ply +%{python_sitearch}/ply/*.py +%{python_sitearch}/ply/*.pyc +#%doc ANNOUNCE CHANGES README TODO example + +%changelog +* Fri May 17 2013 Silvan Calarco 3.4-2mamba +- python 2.7 mass rebuild + +* Sat Feb 23 2013 Silvan Calarco 3.4-1mamba +- update to 3.4 + +* Mon Jul 20 2009 gil 3.2-1mamba +- package created by autospec