forked from pool/python-ply
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:
committed by
Git OBS Bridge
parent
c31f9e86a1
commit
7dcef5fd15
@@ -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
3
ply-3.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:af435f11b7bdd69da5ffbc3fecb8d70a7073ec952e101764c88720cdefb2546b
|
||||||
|
size 138342
|
||||||
@@ -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
|
Tue Sep 14 08:36:55 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
- update to 3.3:
|
- Update to 3.3:
|
||||||
PLY-3.3 is a minor bug fix release, it supports
|
+ PLY-3.3 is a minor bug fix release, it supports both Python 2
|
||||||
both Python 2 and Python 3.
|
and Python 3.
|
||||||
- license changed to BSD
|
- License changed to BSD
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Aug 9 12:43:26 CEST 2009 - coolo@novell.com
|
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
|
Mon Jul 28 13:22:46 CDT 2008 - maw@suse.de
|
||||||
|
|||||||
@@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
#
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
# 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
|
%define mod_name ply
|
||||||
Summary: Lex and Yacc-like tools written in Python
|
|
||||||
|
|
||||||
Name: python-ply
|
Name: python-%{mod_name}
|
||||||
Version: 3.3
|
Version: 3.4
|
||||||
Release: 1
|
Release: 0
|
||||||
License: BSD
|
Url: http://www.dabeaz.com/ply/
|
||||||
|
Summary: Python Lex & Yacc
|
||||||
|
License: BSD3c
|
||||||
Group: Development/Languages/Python
|
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
|
Patch0: python-ply-shebangs.patch
|
||||||
Url: http://www.dabeaz.com/ply
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: python-devel
|
||||||
|
%if 0%{?suse_version}
|
||||||
%py_requires
|
%py_requires
|
||||||
%if %suse_version > 1120
|
%if 0%{?suse_version} > 1110
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PLY is yet another implementation of lex and yacc for Python.
|
PLY is yet another implementation of lex and yacc for Python. Some notable
|
||||||
Although several other parsing tools are available for Python,
|
features include the fact that its implemented entirely in Python and it
|
||||||
there are several reasons why you might want to take a look at
|
uses LALR(1) parsing which is efficient and well suited for larger grammars.
|
||||||
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
|
PLY provides most of the standard lex/yacc features including support for empty
|
||||||
support for empty productions, precedence rules, error recovery,
|
productions, precedence rules, error recovery, and support for ambiguous grammars.
|
||||||
and support for ambiguous grammars.
|
|
||||||
|
|
||||||
- PLY is extremely easy to use and provides very extensive error
|
PLY is extremely easy to use and provides very extensive error checking.
|
||||||
checking.
|
It is compatible with both Python 2 and Python 3.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
License: LGPLv2.1+
|
License: LGPLv2.1+
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Summary: Lex and Yacc-like tools written in Python
|
Summary: Python Lex & Yacc
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
PLY is yet another implementation of lex and yacc for Python.
|
PLY is yet another implementation of lex and yacc for Python. Some notable
|
||||||
Although several other parsing tools are available for Python,
|
features include the fact that its implemented entirely in Python and it
|
||||||
there are several reasons why you might want to take a look at
|
uses LALR(1) parsing which is efficient and well suited for larger grammars.
|
||||||
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
|
PLY provides most of the standard lex/yacc features including support for empty
|
||||||
support for empty productions, precedence rules, error recovery,
|
productions, precedence rules, error recovery, and support for ambiguous grammars.
|
||||||
and support for ambiguous grammars.
|
|
||||||
|
|
||||||
- PLY is extremely easy to use and provides very extensive error
|
PLY is extremely easy to use and provides very extensive error checking.
|
||||||
checking.
|
It is compatible with both Python 2 and Python 3.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n ply-%{version}
|
%setup -q -n %{mod_name}-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export CFLAGS="%{optflags}"
|
||||||
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%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/*
|
chmod a-x test/*
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files -f INSTALLED_FILES
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
# setup.py is kind of dumb, so:
|
%doc ANNOUNCE CHANGES README TODO
|
||||||
%dir %{python_sitelib}/ply
|
%python_sitelib/%{mod_name}*
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-, root, root)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES README TODO doc example test
|
%doc doc example test
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user