diff --git a/ply-2.5.tar.gz b/ply-2.5.tar.gz deleted file mode 100644 index eb3d841..0000000 --- a/ply-2.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2126bbf1b31a77311faf91707dc39e3362cf810ff5dd8880a4006a586ea8c9a7 -size 119125 diff --git a/ply-3.3.tar.gz b/ply-3.3.tar.gz new file mode 100644 index 0000000..e8be1b2 --- /dev/null +++ b/ply-3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:052f3ba1838e8dfaa7d0b4f2f3957911423f0992c4c240ccfd7ec0c7dd84330b +size 138663 diff --git a/python-ply-shebangs.patch b/python-ply-shebangs.patch index c831d20..0581956 100644 --- a/python-ply-shebangs.patch +++ b/python-ply-shebangs.patch @@ -1,18 +1,10 @@ -diff -r 446141c632ef example/yply/yply.py ---- a/example/yply/yply.py Tue Mar 18 00:37:59 2008 +0100 -+++ b/example/yply/yply.py Tue Mar 18 00:38:48 2008 +0100 +Index: ply-3.3/example/yply/yply.py +=================================================================== +--- ply-3.3.orig/example/yply/yply.py 2006-11-21 16:09:46.000000000 +0100 ++++ ply-3.3/example/yply/yply.py 2010-09-14 10:43:14.157808186 +0200 @@ -1,4 +1,4 @@ -#!/usr/local/bin/python +#!/usr/bin/env python # yply.py # # Author: David Beazley (dave@dabeaz.com) -diff -r 446141c632ef test/testlex.py ---- a/test/testlex.py Tue Mar 18 00:37:59 2008 +0100 -+++ b/test/testlex.py Tue Mar 18 00:38:48 2008 +0100 -@@ -1,4 +1,4 @@ --#!/usr/local/bin -+#!/usr/bin/env python - # ---------------------------------------------------------------------- - # testlex.py - # diff --git a/python-ply.changes b/python-ply.changes index d51b5e4..7fe30a6 100644 --- a/python-ply.changes +++ b/python-ply.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Sep 14 08:36:55 UTC 2010 - coolo@novell.com + +- update to 3.3: + PLY-3.3 is a minor bug fix release, it supports + both Python 2 and Python 3. +- license changed to BSD + ------------------------------------------------------------------- Sun Aug 9 12:43:26 CEST 2009 - coolo@novell.com diff --git a/python-ply.spec b/python-ply.spec index 4a0cce1..6909baa 100644 --- a/python-ply.spec +++ b/python-ply.spec @@ -1,7 +1,7 @@ # -# spec file for package python-ply (Version 2.5) +# spec file for package python-ply (Version 3.3) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,15 +21,18 @@ BuildRequires: python-devel Summary: Lex and Yacc-like tools written in Python Name: python-ply -Version: 2.5 -Release: 4 -License: LGPL v2.1 or later +Version: 3.3 +Release: 1 +License: BSD Group: Development/Languages/Python Source0: http://www.dabeaz.com/ply/ply-%{version}.tar.gz Patch0: python-ply-shebangs.patch Url: http://www.dabeaz.com/ply BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: python +%py_requires +%if %suse_version > 1120 +BuildArch: noarch +%endif %description PLY is yet another implementation of lex and yacc for Python. @@ -45,14 +48,8 @@ PLY is yet another implementation of lex and yacc for Python. - PLY is extremely easy to use and provides very extensive error checking. - - -Authors: --------- - David M. Beazley (dave@dabeaz.com) - %package doc -License: LGPL v2.1 or later +License: LGPLv2.1+ Group: Development/Languages/Python Summary: Lex and Yacc-like tools written in Python Requires: %{name} = %{version} @@ -71,18 +68,15 @@ PLY is yet another implementation of lex and yacc for Python. - 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 +%build + %install python setup.py install --prefix /usr --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES +chmod a-x test/* %clean rm -rf $RPM_BUILD_ROOT @@ -94,6 +88,6 @@ rm -rf $RPM_BUILD_ROOT %files doc %defattr(-, root, root) -%doc CHANGES COPYING README TODO doc example test +%doc CHANGES README TODO doc example test %changelog