[json-c] Remove -Werror which causes build to fail on EPEL5.
Susi Lehtola
jussilehtola at fedoraproject.org
Tue Sep 10 20:19:08 UTC 2013
commit 16f5dbf643c460bc86629c07f3fa97f37f622406
Author: Susi Lehtola <jussilehtola at fedoraproject.org>
Date: Tue Sep 10 23:18:56 2013 +0300
Remove -Werror which causes build to fail on EPEL5.
json-c.spec | 21 ++++++++++++++-------
1 files changed, 14 insertions(+), 7 deletions(-)
---
diff --git a/json-c.spec b/json-c.spec
index 271d525..cf95105 100644
--- a/json-c.spec
+++ b/json-c.spec
@@ -2,7 +2,7 @@
Name: json-c
Version: 0.11
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A JSON implementation in C
Group: Development/Libraries
License: MIT
@@ -10,11 +10,14 @@ URL: https://github.com/json-c/json-c/wiki
Source0: https://github.com/json-c/json-c/archive/json-c-%{version}-%{reldate}.tar.gz
# increaser parser strictness (for php compatibility)
-Patch0: https://github.com/json-c/json-c/pull/90.patch
-Patch1: https://github.com/json-c/json-c/pull/94.patch
+Patch0: https://github.com/json-c/json-c/pull/90.patch
+Patch1: https://github.com/json-c/json-c/pull/94.patch
+
+# Disable default compiler warning flags
+Patch2: json-c-0.11-cflags.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-BuildRequires: libtool
+BuildRequires: libtool
%description
JSON-C implements a reference counting object model that allows you to easily
@@ -46,6 +49,10 @@ This package contains the reference manual for json-c.
%patch0 -p1 -b .strict90
%patch1 -p1 -b .strict94
+%patch2 -p1 -b .cflags
+
+# regenerate auto stuff to avoid rpath issue
+autoreconf -fi
for doc in ChangeLog; do
iconv -f iso-8859-1 -t utf8 $doc > $doc.new &&
@@ -53,9 +60,6 @@ for doc in ChangeLog; do
mv $doc.new $doc
done
-# regenerate auto stuff to avoid rpath issue
-autoreconf -fi
-
%build
%configure --enable-shared --disable-static --disable-rpath
@@ -107,6 +111,9 @@ rm -rf %{buildroot}
%changelog
+* Tue Sep 10 2013 Susi Lehtola <jussilehtola at fedoraproject.org> - 0.11-4
+- Remove default warning flags so that package builds on EPEL as well.
+
* Sat Aug 24 2013 Remi Collet <remi at fedoraproject.org> - 0.11-3
- increase parser strictness for php
More information about the scm-commits
mailing list