From fece3cee6180c5c8ba8ca980d3a9583fd0bca31509dfa88619e73ca77c1958dd Mon Sep 17 00:00:00 2001 From: Todd R Date: Sat, 6 May 2017 12:20:16 +0000 Subject: [PATCH] Accepting request 492329 from home:TheBlackCat:branches:devel:languages:python - Update to version 0.4.3 - Implement single-spec version - Fix source URL. OBS-URL: https://build.opensuse.org/request/show/492329 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WSGIProxy2?expand=0&rev=13 --- WSGIProxy2-0.4.2.zip | 3 --- WSGIProxy2-0.4.3.tar.gz | 3 +++ python-WSGIProxy2.changes | 10 ++++++++++ python-WSGIProxy2.spec | 42 +++++++++++++++++++++++---------------- 4 files changed, 38 insertions(+), 20 deletions(-) delete mode 100644 WSGIProxy2-0.4.2.zip create mode 100644 WSGIProxy2-0.4.3.tar.gz diff --git a/WSGIProxy2-0.4.2.zip b/WSGIProxy2-0.4.2.zip deleted file mode 100644 index a92db67..0000000 --- a/WSGIProxy2-0.4.2.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a4b236fac5d4a2b51d9b3ed34cbe0d01aae173dce0ab9877f225b1dcdb4a6e8e -size 18817 diff --git a/WSGIProxy2-0.4.3.tar.gz b/WSGIProxy2-0.4.3.tar.gz new file mode 100644 index 0000000..2db3c03 --- /dev/null +++ b/WSGIProxy2-0.4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc3e356d271f22ea2fb447038930150b221e8432a8b016ebd7397be28ead1707 +size 16342 diff --git a/python-WSGIProxy2.changes b/python-WSGIProxy2.changes index 09f22e4..911b4f6 100644 --- a/python-WSGIProxy2.changes +++ b/python-WSGIProxy2.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon May 1 16:48:32 UTC 2017 - toddrme2178@gmail.com + +- Update to version 0.4.3 + * Add OPTIONS to defaults allowed methods + * Drop restkit support + * Drop py26 support +- Implement single-spec version +- Fix source URL. + ------------------------------------------------------------------- Thu May 14 14:57:58 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-WSGIProxy2.spec b/python-WSGIProxy2.spec index a0f01de..d013cf3 100644 --- a/python-WSGIProxy2.spec +++ b/python-WSGIProxy2.spec @@ -1,7 +1,7 @@ # # spec file for package python-WSGIProxy2 # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX 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,26 +16,31 @@ # +# Tests have dependency loop with python-WebTest +%bcond_with tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-WSGIProxy2 -Version: 0.4.2 +Version: 0.4.3 Release: 0 Summary: WSGI Proxy Implementation License: MIT Group: Development/Languages/Python Url: https://github.com/gawel/WSGIProxy2/ -Source: http://pypi.python.org/packages/source/W/WSGIProxy2/WSGIProxy2-%{version}.zip -BuildRequires: python-WebOb -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-six -BuildRequires: unzip +Source: http://files.pythonhosted.org/packages/source/W/WSGIProxy2/WSGIProxy2-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module WebOb} +BuildRequires: %{python_module six} +%if %{with tests} +BuildRequires: %{python_module WebTest} +%endif Conflicts: python-WSGIProxy BuildRoot: %{_tmppath}/%{name}-%{version}-build -%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 Proxy support for WebOb or classic WSGI applications @@ -44,17 +49,20 @@ Proxy support for WebOb or classic WSGI applications %setup -q -n WSGIProxy2-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with tests} %check -python setup.py test +%python_exec setup.py test +%endif -%files +%files %{python_files} %defattr(-,root,root,-) -%doc README.rst +%doc CHANGES.rst COPYING README.rst %{python_sitelib}/* %changelog