From 7dcef5fd156fe0e77a00d32f772e86783c67c47b6699e67d8b77e6e3a5c2116c Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 31 Mar 2011 09:47:45 +0000 Subject: [PATCH] Accepting request 65492 from home:saschpe:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/65492 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ply?expand=0&rev=7 --- ply-3.3.tar.gz | 3 -- ply-3.4.tar.gz | 3 ++ python-ply.changes | 22 +++++++++--- python-ply.spec | 85 +++++++++++++++++++++++----------------------- 4 files changed, 63 insertions(+), 50 deletions(-) delete mode 100644 ply-3.3.tar.gz create mode 100644 ply-3.4.tar.gz diff --git a/ply-3.3.tar.gz b/ply-3.3.tar.gz deleted file mode 100644 index e8be1b2..0000000 --- a/ply-3.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:052f3ba1838e8dfaa7d0b4f2f3957911423f0992c4c240ccfd7ec0c7dd84330b -size 138663 diff --git a/ply-3.4.tar.gz b/ply-3.4.tar.gz new file mode 100644 index 0000000..58802f6 --- /dev/null +++ b/ply-3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af435f11b7bdd69da5ffbc3fecb8d70a7073ec952e101764c88720cdefb2546b +size 138342 diff --git a/python-ply.changes b/python-ply.changes index 7fe30a6..c29b766 100644 --- a/python-ply.changes +++ b/python-ply.changes @@ -1,15 +1,27 @@ +------------------------------------------------------------------- +Tue Mar 29 14:02:28 UTC 2011 - saschpe@suse.de + +- Update to 3.4: + + Minor patch to make cpp.py compatible with Python 3. + + Fixed setup.py trove classifiers to properly list PLY as Python + 3 compatible. +- License changed to BSD3c +- Packaged more doc files +- Moved important docs (README, ..) to base package +- Fixed build for non-SUSE distros + ------------------------------------------------------------------- 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 +- 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 -- use new python macros +- Use new python macros ------------------------------------------------------------------- Mon Jul 28 13:22:46 CDT 2008 - maw@suse.de diff --git a/python-ply.spec b/python-ply.spec index 6909baa..90aeb1d 100644 --- a/python-ply.spec +++ b/python-ply.spec @@ -1,7 +1,7 @@ # -# spec file for package python-ply (Version 3.3) +# spec file for package python-ply # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 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 @@ -11,83 +11,84 @@ # 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. - +# # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -BuildRequires: python-devel -Summary: Lex and Yacc-like tools written in Python +%define mod_name ply -Name: python-ply -Version: 3.3 -Release: 1 -License: BSD +Name: python-%{mod_name} +Version: 3.4 +Release: 0 +Url: http://www.dabeaz.com/ply/ +Summary: Python Lex & Yacc +License: BSD3c Group: Development/Languages/Python -Source0: http://www.dabeaz.com/ply/ply-%{version}.tar.gz +Source: %{mod_name}-%{version}.tar.gz Patch0: python-ply-shebangs.patch -Url: http://www.dabeaz.com/ply BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-devel +%if 0%{?suse_version} %py_requires -%if %suse_version > 1120 +%if 0%{?suse_version} > 1110 BuildArch: noarch %endif +%endif %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 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. -- PLY provides most of the standard lex/yacc features including - support for empty productions, precedence rules, error recovery, - and support for ambiguous 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. +PLY is extremely easy to use and provides very extensive error checking. +It is compatible with both Python 2 and Python 3. %package doc License: LGPLv2.1+ Group: Development/Languages/Python -Summary: Lex and Yacc-like tools written in Python +Summary: Python Lex & Yacc 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 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. -- PLY provides most of the standard lex/yacc features including - support for empty productions, precedence rules, error recovery, - and support for ambiguous 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. +PLY is extremely easy to use and provides very extensive error checking. +It is compatible with both Python 2 and Python 3. %prep -%setup -n ply-%{version} +%setup -q -n %{mod_name}-%{version} %patch0 -p1 %build +export CFLAGS="%{optflags}" +python setup.py build %install -python setup.py install --prefix /usr --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES +python setup.py install --prefix=%{_prefix} --root=%{buildroot} chmod a-x test/* %clean -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} -%files -f INSTALLED_FILES -%defattr(-,root,root) -# setup.py is kind of dumb, so: -%dir %{python_sitelib}/ply +%files +%defattr(-,root,root,-) +%doc ANNOUNCE CHANGES README TODO +%python_sitelib/%{mod_name}* %files doc -%defattr(-, root, root) -%doc CHANGES README TODO doc example test +%defattr(-,root,root,-) +%doc doc example test %changelog