2008-03-28 03:58:27 +00:00
|
|
|
#
|
2011-03-31 09:47:45 +00:00
|
|
|
# spec file for package python-ply
|
2008-03-28 03:58:27 +00:00
|
|
|
#
|
2012-02-14 08:33:53 +00:00
|
|
|
# Copyright (c) 2012 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.
|
2011-12-06 09:37:26 +00:00
|
|
|
|
2008-03-28 03:58:27 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-06-11 07:44:47 +00:00
|
|
|
|
2012-05-25 10:05:58 +00:00
|
|
|
%define modname ply
|
|
|
|
Name: python-%{modname}
|
2011-03-31 09:47:45 +00:00
|
|
|
Version: 3.4
|
2012-02-14 08:33:53 +00:00
|
|
|
Release: 0
|
2011-03-31 09:47:45 +00:00
|
|
|
Url: http://www.dabeaz.com/ply/
|
|
|
|
Summary: Python Lex & Yacc
|
2012-02-14 08:33:53 +00:00
|
|
|
License: BSD-3-Clause
|
2008-03-28 03:58:27 +00:00
|
|
|
Group: Development/Languages/Python
|
2012-05-25 10:05:58 +00:00
|
|
|
Source: http://www.dabeaz.com/%{modname}/%{modname}-%{version}.tar.gz
|
2008-03-28 03:58:27 +00:00
|
|
|
Patch0: python-ply-shebangs.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-03-31 09:47:45 +00:00
|
|
|
BuildRequires: python-devel
|
2012-06-11 07:44:47 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
2010-09-14 12:11:25 +00:00
|
|
|
%py_requires
|
|
|
|
%endif
|
2011-12-06 09:37:26 +00:00
|
|
|
%if 0%{?suse_version} > 1110 || 0%{?fedora} > 12 || 0%{?mdkversion}
|
|
|
|
BuildArch: noarch
|
2011-03-31 09:47:45 +00:00
|
|
|
%endif
|
2008-03-28 03:58:27 +00:00
|
|
|
|
|
|
|
%description
|
2011-03-31 09:47:45 +00:00
|
|
|
PLY is yet another implementation of lex and yacc for Python. Some notable
|
|
|
|
features include the fact that its implemented entirely in Python and it
|
|
|
|
uses LALR(1) parsing which is efficient and well suited for larger grammars.
|
2008-03-28 03:58:27 +00:00
|
|
|
|
2011-03-31 09:47:45 +00:00
|
|
|
PLY provides most of the standard lex/yacc features including support for empty
|
|
|
|
productions, precedence rules, error recovery, and support for ambiguous grammars.
|
2008-03-28 03:58:27 +00:00
|
|
|
|
2011-03-31 09:47:45 +00:00
|
|
|
PLY is extremely easy to use and provides very extensive error checking.
|
|
|
|
It is compatible with both Python 2 and Python 3.
|
2008-03-28 03:58:27 +00:00
|
|
|
|
|
|
|
%package doc
|
2011-03-31 09:47:45 +00:00
|
|
|
Summary: Python Lex & Yacc
|
2012-02-14 08:33:53 +00:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Development/Languages/Python
|
2008-03-28 03:58:27 +00:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description doc
|
2011-03-31 09:47:45 +00:00
|
|
|
PLY is yet another implementation of lex and yacc for Python. Some notable
|
|
|
|
features include the fact that its implemented entirely in Python and it
|
|
|
|
uses LALR(1) parsing which is efficient and well suited for larger grammars.
|
2008-03-28 03:58:27 +00:00
|
|
|
|
2011-03-31 09:47:45 +00:00
|
|
|
PLY provides most of the standard lex/yacc features including support for empty
|
|
|
|
productions, precedence rules, error recovery, and support for ambiguous grammars.
|
2008-03-28 03:58:27 +00:00
|
|
|
|
2011-03-31 09:47:45 +00:00
|
|
|
PLY is extremely easy to use and provides very extensive error checking.
|
|
|
|
It is compatible with both Python 2 and Python 3.
|
2008-03-28 03:58:27 +00:00
|
|
|
|
|
|
|
%prep
|
2012-05-25 10:05:58 +00:00
|
|
|
%setup -q -n %{modname}-%{version}
|
2008-03-28 03:58:27 +00:00
|
|
|
%patch0 -p1
|
|
|
|
|
2010-09-14 12:11:25 +00:00
|
|
|
%build
|
2011-03-31 09:47:45 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
python setup.py build
|
2010-09-14 12:11:25 +00:00
|
|
|
|
2008-03-28 03:58:27 +00:00
|
|
|
%install
|
2011-03-31 09:47:45 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2010-09-14 12:11:25 +00:00
|
|
|
chmod a-x test/*
|
2008-03-28 03:58:27 +00:00
|
|
|
|
|
|
|
%clean
|
2011-03-31 09:47:45 +00:00
|
|
|
rm -rf %{buildroot}
|
2008-03-28 03:58:27 +00:00
|
|
|
|
2011-03-31 09:47:45 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc ANNOUNCE CHANGES README TODO
|
2012-05-25 10:05:58 +00:00
|
|
|
%python_sitelib/%{modname}*
|
2008-03-28 03:58:27 +00:00
|
|
|
|
|
|
|
%files doc
|
2011-03-31 09:47:45 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc doc example test
|
2008-03-28 03:58:27 +00:00
|
|
|
|
|
|
|
%changelog
|