Accepting request 179931 from devel:languages:python

housekeeping sr, necessary due to split between d:l:p and d:l:p3 and (manual) _link removal in Factory.

OBS-URL: https://build.opensuse.org/request/show/179931
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ply?expand=0&rev=19
This commit is contained in:
Stephan Kulow 2013-06-19 14:43:29 +00:00 committed by Git OBS Bridge
commit 88e237765a
3 changed files with 1 additions and 105 deletions

View File

@ -1,7 +1,7 @@
#
# spec file for package python-ply
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 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

View File

@ -1,16 +0,0 @@
-------------------------------------------------------------------
Thu Nov 22 13:47:34 UTC 2012 - toddrme2178@gmail.com
- Removed openSUSE 11.4 spec file workarounds
-------------------------------------------------------------------
Fri May 25 10:04:47 UTC 2012 - toddrme2178@gmail.com
- Fix building on openSUSE 11.4
- spec file cleanups
-------------------------------------------------------------------
Fri May 25 03:24:59 UTC 2012 - highwaystar.ru@gmail.com
- python3 package added

View File

@ -1,88 +0,0 @@
#
# spec file for package python3-ply
#
# Copyright (c) 2012 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
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define modname ply
Name: python3-%{modname}
Version: 3.4
Release: 0
Url: http://www.dabeaz.com/ply/
Summary: Python Lex & Yacc
License: BSD-3-Clause
Group: Development/Languages/Python
Source: http://www.dabeaz.com/%{modname}/%{modname}-%{version}.tar.gz
Patch0: python-ply-shebangs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3-2to3
BuildRequires: python3-devel
Requires: python(abi) = %{py3_ver}
BuildArch: noarch
%description
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 is extremely easy to use and provides very extensive error checking.
It is compatible with both Python 2 and Python 3.
%package doc
Summary: Python Lex & Yacc
License: LGPL-2.1+
Group: Development/Languages/Python
Requires: %{name} = %{version}
%description doc
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 is extremely easy to use and provides very extensive error checking.
It is compatible with both Python 2 and Python 3.
%prep
%setup -q -n %{modname}-%{version}
%patch0 -p1
%build
export CFLAGS="%{optflags}"
python3 setup.py build
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
chmod a-x test/*
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc ANNOUNCE CHANGES README TODO
%{python3_sitelib}/%{modname}/
%{python3_sitelib}/%{modname}-%{version}-py%{py3_ver}.egg-info
%files doc
%defattr(-,root,root,-)
%doc doc example test
%changelog