[python-zc-customdoctests/el6] Disable tests on rhel.

Ralph Bean ☃ ralph at fedoraproject.org
Tue Apr 23 01:29:18 UTC 2013


commit fc90de911b5c3c021cde2c84b46d2506547197a1
Author: Ralph Bean <rbean at redhat.com>
Date:   Mon Apr 22 21:29:05 2013 -0400

    Disable tests on rhel.

 python-zc-customdoctests.spec |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/python-zc-customdoctests.spec b/python-zc-customdoctests.spec
index 6b97383..437b3dc 100644
--- a/python-zc-customdoctests.spec
+++ b/python-zc-customdoctests.spec
@@ -6,7 +6,7 @@
 
 Name:               python-zc-customdoctests
 Version:            1.0.1
-Release:            1%{?dist}
+Release:            2%{?dist}
 Summary:            Use doctest with other languages
 Group:              Development/Libraries
 License:            ZPLv2.1
@@ -19,9 +19,13 @@ BuildArch:          noarch
 BuildRequires:      python2-devel
 BuildRequires:      python-setuptools
 
+%if 0%{?rhel}
+# No tests on rhel
+%else
 BuildRequires:      python-zope-testing
 BuildRequires:      python-manuel
 BuildRequires:      python-six
+%endif
 
 %if 0%{?with_python3}
 BuildRequires:      python3-devel
@@ -38,8 +42,8 @@ languages, such as JavaScript::
 
 js> function double (x) { ...     return x*2; ... } js> double(2) 4
 
-And with `manuel <http://pypi.python.org/pypi/manuel>`_, it facilitates
-doctests that mix multiple languages, such as Python, JavaScript, and sh.
+And with manuel, it facilitates doctests that mix multiple languages,
+such as Python, JavaScript, and sh.
 
 %if 0%{?with_python3}
 %package -n python3-zc-customdoctests
@@ -53,8 +57,8 @@ languages, such as JavaScript::
 
 js> function double (x) { ...     return x*2; ... } js> double(2) 4
 
-And with `manuel <http://pypi.python.org/pypi/manuel>`_, it facilitates
-doctests that mix multiple languages, such as Python, JavaScript, and sh.
+And with manuel, it facilitates doctests that mix multiple languages,
+such as Python, JavaScript, and sh.
 %endif
 
 %prep
@@ -84,12 +88,16 @@ popd
 %{__python} setup.py install -O1 --skip-build --root=%{buildroot}
 
 %check
+%if 0%{?rhel}
+# No tests on rhel
+%else
 %{__python} setup.py test
 %if 0%{?with_python3}
 pushd %{py3dir}
 %{__python3} setup.py test
 popd
 %endif
+%endif
 
 %files
 %doc README.txt CHANGES.txt PKG-INFO
@@ -104,5 +112,8 @@ popd
 %endif
 
 %changelog
+* Mon Apr 22 2013 Ralph Bean <rbean at redhat.com> - 1.0.1-2
+- Removed tests on rhel: no python-manuel available.
+
 * Mon Feb 25 2013 Ralph Bean <rbean at redhat.com> - 1.0.1-1
 - Initial package for Fedora


More information about the scm-commits mailing list