Accepting request 142495 from devel:languages:python

- Require python-python-openid instead of non-existing python-openid
- Build HTML documentation

OBS-URL: https://build.opensuse.org/request/show/142495
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Paste?expand=0&rev=6
This commit is contained in:
Stephan Kulow 2012-11-25 12:51:36 +00:00 committed by Git OBS Bridge
commit 72b32f959c
2 changed files with 22 additions and 17 deletions

View File

@ -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 Wed Jun 22 09:48:40 UTC 2011 - saschpe@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-Paste # 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 # 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-Paste Name: python-Paste
Version: 1.7.5.1 Version: 1.7.5.1
Release: 1 Release: 0
Url: http://pythonpaste.org Url: http://pythonpaste.org
Summary: Tools for using a Web Server Gateway Interface stack Summary: Tools for using a Web Server Gateway Interface stack
License: MIT License: MIT
@ -28,18 +27,19 @@ Source: http://pypi.python.org/packages/source/P/Paste/Paste-%{version}.
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-distribute BuildRequires: python-distribute
# Documentation build requirements:
BuildRequires: python-Sphinx
# Test build requirements:
#BuildRequires: python-nose
Requires: python-flup Requires: python-flup
Requires: python-openid Requires: python-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)")}
Provides: python-paste = %{version} Provides: python-paste = %{version}
Obsoletes: 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 %description
These provide several pieces of "middleware" (or filters) that can be nested These provide several pieces of "middleware" (or filters) that can be nested
@ -49,21 +49,20 @@ interfaces.
%prep %prep
%setup -q -n Paste-%{version} %setup -q -n Paste-%{version}
mv docs/_build docs/html
%build %build
export CFLAGS="%{optflags}"
python setup.py build python setup.py build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean #%%check
rm -rf %{buildroot} #python setup.py test
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc docs/* %doc build/sphinx/html
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog