14
0
forked from pool/python-WebOb

Accepting request 493096 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/493096
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-WebOb?expand=0&rev=23
This commit is contained in:
2017-05-17 15:18:28 +00:00
committed by Git OBS Bridge
4 changed files with 41 additions and 26 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3b2e3e4a46ce92614fb7d85081a63d03fa0c714dbe0195d5d91ec0205526c83f
size 215517

3
WebOb-1.7.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0dc8b30bdbf15d8fd1a967e30ece3357f2f468206354f69213e57b30a63f0039
size 215746

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Fri May 5 21:53:49 UTC 2017 - toddrme2178@gmail.com
- Fix Provides/Obsoletes.
-------------------------------------------------------------------
Tue Apr 4 12:47:31 UTC 2017 - tbechtold@suse.com
- 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
-------------------------------------------------------------------
Fri Feb 10 16:14:42 UTC 2017 - tbechtold@suse.com

View File

@@ -16,30 +16,31 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
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
%ifpython2
Obsoletes: %{oldpython}-webob < %{version}
Provides: %{oldpython}-webob = %{version}
%endif
BuildArch: noarch
%python_subpackages
%description
WebOb provides wrappers around the WSGI request environment, and an
@@ -49,33 +50,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