From 7404ff24ee52fa4bbfcaf5993f9f763dc8bc2e62 Mon Sep 17 00:00:00 2001 From: Thomas Moschny Date: May 19 2012 13:52:01 +0000 Subject: Skip pygments test on rhel6. --- diff --git a/python-markdown2.spec b/python-markdown2.spec index 21dc122..801981e 100644 --- a/python-markdown2.spec +++ b/python-markdown2.spec @@ -5,11 +5,16 @@ %{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")} %endif +# pygments is at 1.1.1 in rhel6 +%if 0%{?rhel} == 6 +%global skip_tests -pygments +%endif + %global srcname markdown2 Name: python-%{srcname} Version: 1.4.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A fast and complete Python implementation of Markdown Group: Development/Languages License: MIT @@ -112,12 +117,12 @@ rm -rf %{buildroot} %check cd test -%{__python} test.py -- -knownfailure +%{__python} test.py -- -knownfailure %{?skip_tests} %if 0%{?with_python3} pushd %{py3dir} cd test -%{__python3} test.py -- -knownfailure +%{__python3} test.py -- -knownfailure %{?skip_tests} popd %endif # with_python3 @@ -140,6 +145,9 @@ popd %changelog +* Sat May 19 2012 Thomas Moschny - 1.4.2-2 +- Skip pygments test on rhel6. + * Sat May 19 2012 Thomas Moschny - 1.4.2-1 - Update to 1.4.2. - Build python3 subpackage.