initial import
This commit is contained in:
parent
96a0846a66
commit
8e5f44cd49
@ -0,0 +1 @@
|
||||
ply-2.3.tar.gz
|
||||
55
python-ply.spec
Normal file
55
python-ply.spec
Normal file
@ -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 <tcallawa@redhat.com> 0.2.3-2
|
||||
- add example dir as doc
|
||||
|
||||
* Sat Mar 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.2.3-1
|
||||
- Initial package for Fedora
|
||||
Loading…
Reference in New Issue
Block a user