From 8e5f44cd4965decc0920893ffc7e990ee0443b4c Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Mar 24 2008 21:32:15 +0000 Subject: initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..5aec9f0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +ply-2.3.tar.gz diff --git a/python-ply.spec b/python-ply.spec new file mode 100644 index 0000000..4f79d20 --- /dev/null +++ b/python-ply.spec @@ -0,0 +1,55 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-ply +Summary: Python Lex-Yacc +Version: 2.3 +Release: 2%{?dist} +License: LGPLv2+ +Group: System Environment/Libraries +URL: http://www.dabeaz.com/ply/ +Source0: http://www.dabeaz.com/ply/ply-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: python-devel + +%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|/usr/bin/python|g' example/yply/yply.py +chmod -x example/yply/yply.py example/newclasscalc/calc.py example/classcalc/calc.py example/cleanup.sh + +%build +%{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README COPYING example/ +%{python_sitelib}/ply/ +%{python_sitelib}/ply*.egg-info + +%changelog +* Mon Mar 24 2008 Tom "spot" Callaway 0.2.3-2 +- add example dir as doc + +* Sat Mar 15 2008 Tom "spot" Callaway 0.2.3-1 +- Initial package for Fedora diff --git a/sources b/sources index e69de29..47ae363 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e406e5eef98661d395d901f8cc3d1219 ply-2.3.tar.gz