File python-ply.spec of Package python-ply
Summary: Python Lex-Yacc
Name: python-ply
Version: 2.3
Release: maw.2
License: LGPL
Group: Development/Python
Source0: http://www.dabeaz.com/ply/ply-%{version}.tar.gz
URL: http://www.dabeaz.com/ply/
BuildRoot: %{_tmppath}/%{name}-buildroot
Requires: python
BuildRequires: python-devel
%description
PLY is yet another implementation of lex and yacc for Python. Although
several other parsing tools are available for Python, there are
several reasons why you might want to take a look at PLY:
- 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 extremely easy to use and provides very extensive error
checking.
%prep
rm -rf $RPM_BUILD_ROOT
%setup -n ply-%{version}
%install
python setup.py install --prefix /usr --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root,0755)
%doc CHANGES COPYING README TODO doc example test
%changelog
* Sat Mar 17 2007 Michael Wolf <maw@pobox.com>
- Update to version 2.3
- Note that now you need to use stuff from "lex" and "yacc" as
"ply.lex.whatever" and "ply.yacc.whatever". Do not forget to delete
any generated parser.out and parsetab.py files, as they are incompatible
across versions of ply.
* Mon Jan 16 2007 Michael Wolf <maw@pobox.com> 2.2-maw.1
- Update to 2.2
* Mon Aug 21 2006 Michael Wolf <maw@pobox.com> 1.8-maw.2
- Update to 1.8
- Remove the patch
- Install to /usr, not /usr/local
* Thu May 25 2006 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 1.7-1mdv2007.0
- New release 1.7
- update url
* Tue Apr 25 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.5-3mdk
- Add BuildRequires
- use mkrel
* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 1.5-2mdk
- Rebuild for new python
* Tue Aug 31 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.5-1mdk
- from Gaetan Lehmann <glehmann@netcourrier.com> :
- Create package from scratch for mandrake system