[json_diff/el5] Make the package buildable on EL-5.

Matej Cepl mcepl at fedoraproject.org
Tue Nov 22 18:50:18 UTC 2011


commit 35bc3e58a29cd1e84fb35c0cadc85903d653d12f
Author: Matěj Cepl <mcepl at redhat.com>
Date:   Tue Nov 22 19:51:32 2011 +0100

    Make the package buildable on EL-5.

 json_diff.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/json_diff.spec b/json_diff.spec
index 3fb5512..4159442 100644
--- a/json_diff.spec
+++ b/json_diff.spec
@@ -3,7 +3,7 @@
 
 Name:           json_diff
 Version:        0.9.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Generates diff between two JSON files
 
 Group:          Applications/Text
@@ -14,6 +14,9 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 BuildRequires:  python-devel
+%if 0%{?rhel} > 0 && 0%{?rhel} <= 5
+BuildRequires:  python-simplejson
+%endif
 Requires:       python >= 2.4
 
 %description
@@ -48,6 +51,9 @@ rm -rf %{buildroot}
 %{python_sitelib}/*
 
 %changelog
+* Tue Nov 22 2011 Matěj Cepl <mcepl at redhat.com> - 0.9.2-2
+- Make the package buildable on EL-5
+
 * Mon Nov 21 2011 Matěj Cepl <mcepl at redhat.com> 0.9.2-1
 - New upstream release (EL-5 compatible)
 


More information about the scm-commits mailing list