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
This commit is contained in:
Sascha Peilicke 2011-03-31 09:47:45 +00:00 committed by Git OBS Bridge
parent c31f9e86a1
commit 7dcef5fd15
4 changed files with 63 additions and 50 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:052f3ba1838e8dfaa7d0b4f2f3957911423f0992c4c240ccfd7ec0c7dd84330b
size 138663

3
ply-3.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:af435f11b7bdd69da5ffbc3fecb8d70a7073ec952e101764c88720cdefb2546b
size 138342

View File

@ -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

View File

@ -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