[python-jsonschema/el6] make 2.3.0 build compat with el6
Pádraig Brady
pbrady at fedoraproject.org
Tue Mar 11 00:55:19 UTC 2014
commit a55b1a2d8f85354d98f87fdbe9517dbe5e832212
Author: Pádraig Brady <P at draigBrady.com>
Date: Mon Mar 10 19:58:05 2014 +0000
make 2.3.0 build compat with el6
python-jsonschema.spec | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
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
More information about the scm-commits
mailing list