From a55b1a2d8f85354d98f87fdbe9517dbe5e832212 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Mar 10 2014 19:59:25 +0000 Subject: make 2.3.0 build compat with el6 --- diff --git a/python-jsonschema.spec b/python-jsonschema.spec index 110392c..1fa2071 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -16,6 +16,11 @@ License: MIT URL: http://pypi.python.org/pypi/jsonschema Source0: http://pypi.python.org/packages/source/j/jsonschema/%{pypi_name}-%{version}.tar.gz BuildArch: noarch + +%if %{?rhel}%{!?rhel:0} == 6 +BuildRequires: python-unittest2 +BuildRequires: python-argparse +%endif BuildRequires: python2-devel BuildRequires: python-nose BuildRequires: python-mock @@ -69,7 +74,7 @@ pushd %{py3dir} %{_bindir}/nosetests-3* -v popd %endif -%{_bindir}/nosetests-2* -v +%{_bindir}/nosetests -v %files %doc README.rst COPYING