14
0
forked from pool/python-WebOb

Accepting request 485215 from home:tbechtold:branches:devel:languages:python

- update to 1.7.2:
  - Allow unnamed fields in form data to be properly transcoded when calling
    request.decode with an alternate encoding. See
    https://github.com/Pylons/webob/pull/309
- Switch to singlespec approach

OBS-URL: https://build.opensuse.org/request/show/485215
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebOb?expand=0&rev=39
This commit is contained in:
Todd R
2017-05-01 15:33:20 +00:00
committed by Git OBS Bridge
parent 6485203cb5
commit e2aa8b6717
4 changed files with 31 additions and 24 deletions

View File

@@ -16,30 +16,28 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-WebOb
Version: 1.7.1
Version: 1.7.2
Release: 0
Summary: WSGI request and response object
License: MIT
Group: Development/Languages/Python
Url: http://webob.org/
Source: https://pypi.io/packages/source/W/WebOb/WebOb-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
# Test requirements:
# for ssl module:
BuildRequires: python
BuildRequires: python-nose
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# Documentation requirements:
BuildRequires: python-Sphinx
BuildRequires: python3-Sphinx
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: python-webob = %{version}
Obsoletes: python-webob < %{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
%python_subpackages
%description
WebOb provides wrappers around the WSGI request environment, and an
@@ -49,33 +47,33 @@ The objects map much of the specified behavior of HTTP, including
header parsing and accessors for other standard parts of the
environment.
%package doc
%package -n python-WebOb-doc
Summary: WSGI request and response object - Documentation
Group: Documentation/HTML
Requires: %{name} = %{version}
Provides: %{python_module WebOb-doc = %{version}}
%description doc
%description -n python-WebOb-doc
This package contains documentation files for %{name}.
%prep
%setup -q -n WebOb-%{version}
%build
python setup.py build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%python_build
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%check
python setup.py test
%python_exec setup.py test
%files
%files %python_files
%defattr(-,root,root,-)
%doc docs/license.txt
%{python_sitelib}/*
%files doc
%files -n python-WebOb-doc
%defattr(-,root,root,-)
%doc build/sphinx/html