Remove -Werror which causes build to fail on EPEL5.

This commit is contained in:
Susi Lehtola 2013-09-10 23:18:56 +03:00
parent 7cc6a237c6
commit 16f5dbf643

View File

@ -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@fedoraproject.org> - 0.11-4
- Remove default warning flags so that package builds on EPEL as well.
* Sat Aug 24 2013 Remi Collet <remi@fedoraproject.org> - 0.11-3
- increase parser strictness for php