From d422dd37ddff897e35a12dedf5d42f4f13ead96f28fe758989ed942dc0561f35 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 23 Nov 2012 14:08:18 +0000 Subject: [PATCH] - Package examples - Spec file cleanup OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyparsing?expand=0&rev=10 --- python-pyparsing.changes | 6 ++++++ python-pyparsing.spec | 27 +++++++++------------------ 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/python-pyparsing.changes b/python-pyparsing.changes index 57f5a36..e2acbe2 100644 --- a/python-pyparsing.changes +++ b/python-pyparsing.changes @@ -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 diff --git a/python-pyparsing.spec b/python-pyparsing.spec index 2b1f59f..3795540 100644 --- a/python-pyparsing.spec +++ b/python-pyparsing.spec @@ -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