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 Sun Jul 3 09:40:58 UTC 2011 - saschpe@gmx.de

View File

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