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,-)