Accepting request 142597 from devel:languages:python

- Package examples
- Spec file cleanup

OBS-URL: https://build.opensuse.org/request/show/142597
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyparsing?expand=0&rev=10
This commit is contained in:
Stephan Kulow 2012-11-25 12:53:27 +00:00 committed by Git OBS Bridge
commit 620d4b9028
2 changed files with 15 additions and 18 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 23 14:06:29 UTC 2012 - saschpe@suse.de
- Package examples
- Spec file cleanup
-------------------------------------------------------------------
Sun Jul 3 09:40:58 UTC 2011 - saschpe@gmx.de

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pyparsing
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@ -16,10 +16,9 @@
#
Name: python-pyparsing
Version: 1.5.6
Release: 3
Release: 0
Url: http://pyparsing.wikispaces.com/
Summary: Grammar Parser Library for Python
License: MIT
@ -27,15 +26,13 @@ Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/p/pyparsing/pyparsing-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%endif
Provides: python-parsing = %{version}
Obsoletes: python-parsing < %{version}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
The pyparsing module is an alternative approach to creating and executing
@ -44,8 +41,6 @@ expressions. The pyparsing module provides a library of classes that client
code uses to construct the grammar directly in Python code.
%package doc
Summary: Grammar Parser Library for Python - Documentation
Group: Development/Libraries/Python
Requires: %{name} = %{version}
@ -56,8 +51,7 @@ simple grammars, vs. the traditional lex/yacc approach, or the use of regular
expressions. The pyparsing module provides a library of classes that client
code uses to construct the grammar directly in Python code.
This package contains the documentation of %{name}, under the directory
%{_docdir}/%{name}/
This package contains the documentation of %{name}
%prep
%setup -q -n pyparsing-%{version}
@ -70,9 +64,6 @@ sed -i 's/\r$//' CHANGES LICENSE README docs/examples/* docs/htmldoc/epydoc.{js,
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc CHANGES LICENSE README
@ -80,6 +71,6 @@ rm -rf %{buildroot}
%files doc
%defattr(-,root,root,-)
%doc docs/*
%doc docs/* examples
%changelog