2008-03-28 03:58:27 +00:00
|
|
|
#
|
2008-09-13 10:05:48 +00:00
|
|
|
# spec file for package python-ply (Version 2.5)
|
2008-03-28 03:58:27 +00:00
|
|
|
#
|
2009-08-10 16:28:14 +00:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-03-28 03:58:27 +00:00
|
|
|
#
|
2008-09-13 10:05:48 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-03-28 03:58:27 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
Summary: Lex and Yacc-like tools written in Python
|
|
|
|
|
|
|
|
Name: python-ply
|
2008-09-13 10:05:48 +00:00
|
|
|
Version: 2.5
|
2009-08-10 16:28:14 +00:00
|
|
|
Release: 4
|
2008-03-28 03:58:27 +00:00
|
|
|
License: LGPL v2.1 or later
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source0: http://www.dabeaz.com/ply/ply-%{version}.tar.gz
|
|
|
|
Patch0: python-ply-shebangs.patch
|
2009-08-10 16:28:14 +00:00
|
|
|
Url: http://www.dabeaz.com/ply
|
2008-03-28 03:58:27 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Requires: python
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David M. Beazley (dave@dabeaz.com)
|
|
|
|
|
|
|
|
%package doc
|
2008-09-13 10:05:48 +00:00
|
|
|
License: LGPL v2.1 or later
|
2008-03-28 03:58:27 +00:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
Summary: Lex and Yacc-like tools written in Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
David M. Beazley (dave@dabeaz.com)
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n ply-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%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)
|
|
|
|
# setup.py is kind of dumb, so:
|
2009-08-10 16:28:14 +00:00
|
|
|
%dir %{python_sitelib}/ply
|
2008-03-28 03:58:27 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc CHANGES COPYING README TODO doc example test
|
|
|
|
|
|
|
|
%changelog
|