2011-12-06 12:53:36 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-WebOb
|
|
|
|
|
#
|
2016-06-06 11:14:05 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-12-06 12:53:36 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
2012-01-31 13:46:38 +00:00
|
|
|
|
2011-12-06 12:53:36 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
2012-09-23 09:24:29 +00:00
|
|
|
|
|
|
|
|
|
2011-12-06 12:53:36 +00:00
|
|
|
Name: python-WebOb
|
2016-06-06 11:14:05 +00:00
|
|
|
Version: 1.6.1
|
2011-12-06 12:53:36 +00:00
|
|
|
Release: 0
|
2012-06-26 15:26:20 +00:00
|
|
|
Summary: WSGI request and response object
|
2012-01-31 13:46:38 +00:00
|
|
|
License: MIT
|
2012-06-26 15:26:20 +00:00
|
|
|
Group: Development/Languages/Python
|
2012-01-31 13:46:38 +00:00
|
|
|
Url: http://webob.org/
|
2016-06-06 11:14:05 +00:00
|
|
|
Source: http://pypi.io/packages/source/W/WebOb/WebOb-%{version}.tar.gz
|
2011-12-06 12:53:36 +00:00
|
|
|
BuildRequires: python-devel
|
2013-10-24 11:17:04 +00:00
|
|
|
BuildRequires: python-setuptools
|
2013-03-27 13:24:33 +00:00
|
|
|
# Test requirements:
|
|
|
|
|
# for ssl module:
|
|
|
|
|
BuildRequires: python
|
2012-11-22 15:07:19 +00:00
|
|
|
BuildRequires: python-nose
|
2013-03-27 13:24:33 +00:00
|
|
|
# Documentation requirements:
|
|
|
|
|
BuildRequires: python-Sphinx
|
2011-12-06 12:53:36 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-09-23 09:24:29 +00:00
|
|
|
Provides: python-webob = %{version}
|
|
|
|
|
Obsoletes: python-webob < %{version}
|
2012-11-22 15:07:19 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
2012-09-23 09:24:29 +00:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
2012-11-22 15:07:19 +00:00
|
|
|
%else
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
2011-12-06 12:53:36 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
WebOb provides wrappers around the WSGI request environment, and an
|
|
|
|
|
object to help create WSGI responses.
|
|
|
|
|
|
|
|
|
|
The objects map much of the specified behavior of HTTP, including
|
|
|
|
|
header parsing and accessors for other standard parts of the
|
|
|
|
|
environment.
|
|
|
|
|
|
2012-11-22 15:07:19 +00:00
|
|
|
%package doc
|
|
|
|
|
Summary: WSGI request and response object - Documentation
|
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
|
2011-12-06 12:53:36 +00:00
|
|
|
%prep
|
|
|
|
|
%setup -q -n WebOb-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
python setup.py build
|
2012-11-22 15:07:19 +00:00
|
|
|
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
2011-12-06 12:53:36 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
|
2012-11-22 15:07:19 +00:00
|
|
|
%check
|
|
|
|
|
python setup.py test
|
|
|
|
|
|
2011-12-06 12:53:36 +00:00
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
2014-02-20 17:37:57 +00:00
|
|
|
%doc docs/license.txt
|
2011-12-06 12:53:36 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
2012-11-22 15:07:19 +00:00
|
|
|
%files doc
|
|
|
|
|
%defattr(-,root,root,-)
|
2014-09-15 06:55:44 +00:00
|
|
|
%doc build/sphinx/html
|
2012-11-22 15:07:19 +00:00
|
|
|
|
2011-12-06 12:53:36 +00:00
|
|
|
%changelog
|