From ae2def6cdb27826a9c5e0cb4dfadbac751fb17ab7a48af73eb844cd40f661edb Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 11 Jan 2013 11:20:53 +0000 Subject: [PATCH 1/2] - Add %py_requires to fix SLE_11_SP2 build. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebTest?expand=0&rev=13 --- python-WebTest.changes | 5 +++++ python-WebTest.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-WebTest.changes b/python-WebTest.changes index 514ff4c..970f510 100644 --- a/python-WebTest.changes +++ b/python-WebTest.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 11 11:22:19 UTC 2013 - saschpe@suse.de + +- Add %py_requires to fix SLE_11_SP2 build. + ------------------------------------------------------------------- Thu Nov 22 15:13:50 UTC 2012 - saschpe@suse.de diff --git a/python-WebTest.spec b/python-WebTest.spec index c2fdb0c..15eb778 100644 --- a/python-WebTest.spec +++ b/python-WebTest.spec @@ -1,7 +1,7 @@ # # spec file for package python-WebTest # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -39,6 +39,7 @@ Requires: python-WebOb Provides: python-webtest = %{version} Obsoletes: python-webtest < %{version} %if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%py_requires %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch From 133520514abf680a24a9622206d8e25381f7124a97298910f42f59e619731b21 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 11 Jan 2013 13:13:23 +0000 Subject: [PATCH 2/2] - Disable testsuite on SLE_11_SP2 to fix the build (unittest module lacks support) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-WebTest?expand=0&rev=14 --- python-WebTest.changes | 3 ++- python-WebTest.spec | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python-WebTest.changes b/python-WebTest.changes index 970f510..cd92e73 100644 --- a/python-WebTest.changes +++ b/python-WebTest.changes @@ -1,7 +1,8 @@ ------------------------------------------------------------------- Fri Jan 11 11:22:19 UTC 2013 - saschpe@suse.de -- Add %py_requires to fix SLE_11_SP2 build. +- Disable testsuite on SLE_11_SP2 to fix the build (unittest module + lacks support) ------------------------------------------------------------------- Thu Nov 22 15:13:50 UTC 2012 - saschpe@suse.de diff --git a/python-WebTest.spec b/python-WebTest.spec index 15eb778..cd0bf5a 100644 --- a/python-WebTest.spec +++ b/python-WebTest.spec @@ -39,7 +39,6 @@ Requires: python-WebOb Provides: python-webtest = %{version} Obsoletes: python-webtest < %{version} %if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%py_requires %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch @@ -70,8 +69,10 @@ python setup.py build_sphinx && rm build/sphinx/html/.buildinfo %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%if 0%{?suse_version} > 1110 %check python setup.py test +%endif %files %defattr(-,root,root,-)