Remove -Werror which causes build to fail on EPEL5.
This commit is contained in:
parent
7cc6a237c6
commit
16f5dbf643
21
json-c.spec
21
json-c.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: json-c
|
Name: json-c
|
||||||
Version: 0.11
|
Version: 0.11
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: A JSON implementation in C
|
Summary: A JSON implementation in C
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: MIT
|
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
|
Source0: https://github.com/json-c/json-c/archive/json-c-%{version}-%{reldate}.tar.gz
|
||||||
|
|
||||||
# increaser parser strictness (for php compatibility)
|
# increaser parser strictness (for php compatibility)
|
||||||
Patch0: https://github.com/json-c/json-c/pull/90.patch
|
Patch0: https://github.com/json-c/json-c/pull/90.patch
|
||||||
Patch1: https://github.com/json-c/json-c/pull/94.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)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
|
||||||
%description
|
%description
|
||||||
JSON-C implements a reference counting object model that allows you to easily
|
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
|
%patch0 -p1 -b .strict90
|
||||||
%patch1 -p1 -b .strict94
|
%patch1 -p1 -b .strict94
|
||||||
|
%patch2 -p1 -b .cflags
|
||||||
|
|
||||||
|
# regenerate auto stuff to avoid rpath issue
|
||||||
|
autoreconf -fi
|
||||||
|
|
||||||
for doc in ChangeLog; do
|
for doc in ChangeLog; do
|
||||||
iconv -f iso-8859-1 -t utf8 $doc > $doc.new &&
|
iconv -f iso-8859-1 -t utf8 $doc > $doc.new &&
|
||||||
@ -53,9 +60,6 @@ for doc in ChangeLog; do
|
|||||||
mv $doc.new $doc
|
mv $doc.new $doc
|
||||||
done
|
done
|
||||||
|
|
||||||
# regenerate auto stuff to avoid rpath issue
|
|
||||||
autoreconf -fi
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --enable-shared --disable-static --disable-rpath
|
%configure --enable-shared --disable-static --disable-rpath
|
||||||
@ -107,6 +111,9 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sat Aug 24 2013 Remi Collet <remi@fedoraproject.org> - 0.11-3
|
||||||
- increase parser strictness for php
|
- increase parser strictness for php
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user