From 4ae30812bb1e6a6f7fcd28882cde36b2715204f2bde2aa152b81fd6c3d25a512 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Mon, 12 Dec 2011 09:04:38 +0000 Subject: [PATCH 1/2] remove %debug_package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=3 From eb0e1710502693fb9b1e4a2683c9e88f28d9f3c0c790404055a668de1650813d Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 22 Nov 2012 15:37:12 +0000 Subject: [PATCH 2/2] - Require python-python-openid instead of non-existing python-openid - Build HTML documentation OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Paste?expand=0&rev=4 --- python-Paste.changes | 6 ++++++ python-Paste.spec | 33 ++++++++++++++++----------------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/python-Paste.changes b/python-Paste.changes index e8e1341..c905929 100644 --- a/python-Paste.changes +++ b/python-Paste.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 22 15:35:29 UTC 2012 - saschpe@suse.de + +- Require python-python-openid instead of non-existing python-openid +- Build HTML documentation + ------------------------------------------------------------------- Wed Jun 22 09:48:40 UTC 2011 - saschpe@suse.de diff --git a/python-Paste.spec b/python-Paste.spec index 1587867..3e33a90 100644 --- a/python-Paste.spec +++ b/python-Paste.spec @@ -1,7 +1,7 @@ # # spec file for package python-Paste # -# 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-Paste Version: 1.7.5.1 -Release: 1 +Release: 0 Url: http://pythonpaste.org Summary: Tools for using a Web Server Gateway Interface stack License: MIT @@ -28,18 +27,19 @@ Source: http://pypi.python.org/packages/source/P/Paste/Paste-%{version}. BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-distribute +# Documentation build requirements: +BuildRequires: python-Sphinx +# Test build requirements: +#BuildRequires: python-nose Requires: python-flup -Requires: python-openid -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 -BuildArch: noarch -%endif -%endif -%{!?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)")} +Requires: python-python-openid Provides: python-paste = %{version} Obsoletes: python-paste < %{version} +%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 These provide several pieces of "middleware" (or filters) that can be nested @@ -49,21 +49,20 @@ interfaces. %prep %setup -q -n Paste-%{version} -mv docs/_build docs/html %build -export CFLAGS="%{optflags}" python setup.py build +python setup.py build_sphinx && rm build/sphinx/html/.buildinfo %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%clean -rm -rf %{buildroot} +#%%check +#python setup.py test %files %defattr(-,root,root,-) -%doc docs/* +%doc build/sphinx/html %{python_sitelib}/* %changelog