[python-chai/el6] Fix the condition to disable test on EL6

Pierre-YvesChibon pingou at fedoraproject.org
Wed Nov 27 10:42:18 UTC 2013


commit b9420e9bd144411ef4f27b435d6d83591fbf0a8b
Author: Pierre-Yves Chibon <pingou at pingoured.fr>
Date:   Wed Nov 27 11:42:01 2013 +0100

    Fix the condition to disable test on EL6

 python-chai.spec |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/python-chai.spec b/python-chai.spec
index 0f4b510..eb6f066 100644
--- a/python-chai.spec
+++ b/python-chai.spec
@@ -50,10 +50,7 @@ cp -a . %{py3dir}
 %endif
 
 %build
-# Unit-tests fail on EL6 due to older python-unittest
-%if 0%{?fedora} > 12 || 0%{?rhel} > 6
 %{__python} setup.py build
-%endif
 
 %if 0%{?with_python3}
 pushd %{py3dir}
@@ -65,14 +62,17 @@ rm tests/comparator_py2.py
 popd
 %endif
 
-
 %install
 %if 0%{?with_python3}
 pushd %{py3dir}
 %{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
 popd
 %endif
+
+# Unit-tests fail on EL6 due to older python-unittest
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
 %{__python} setup.py install -O1 --skip-build --root=%{buildroot}
+%endif
 
 %check
 %if 0%{?with_python3}


More information about the scm-commits mailing list