From b3e33ebf197b466946c16d04c4198b68898fcac2 Mon Sep 17 00:00:00 2001 From: Jussi Lehtola Date: Sat, 24 Nov 2012 16:32:40 +0200 Subject: [PATCH] Compile and install json_object_iterator. --- json-c.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/json-c.spec b/json-c.spec index 9131188..0f04eb5 100644 --- a/json-c.spec +++ b/json-c.spec @@ -1,6 +1,6 @@ Name: json-c Version: 0.10 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A JSON implementation in C Group: Development/Libraries License: MIT @@ -41,6 +41,12 @@ for doc in ChangeLog; do mv $doc.new $doc done +# Hack to get json_object_iterator.c compiled +sed -e 's/json_object.c/json_object.c json_object_iterator.c/' \ + -e 's/json_object.h/json_object.h json_object_iterator.h/' \ + -e 's/json_object.lo/json_object.lo json_object_iterator.lo/' \ + -i Makefile.in + %build %configure --enable-shared --disable-static make %{?_smp_mflags} @@ -73,6 +79,9 @@ rm -rf %{buildroot} %doc doc/html/* %changelog +* Sat Nov 24 2012 Jussi Lehtola - 0.10-2 +- Compile and install json_object_iterator using Remi Collet's fix (BZ #879771). + * Sat Nov 24 2012 Jussi Lehtola - 0.10-1 - Update to 0.10 (BZ #879771).