From: Jan Rękorajski Date: Tue, 25 Nov 2014 18:33:51 +0000 (+0100) Subject: - drop Werror (fails to build on current glibc) X-Git-Tag: auto/th/libsvgtiny-0.1.1-2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=0539a61822923b3a127444c5808561c7218299e2;p=packages%2Flibsvgtiny.git - drop Werror (fails to build on current glibc) - rel 2 --- diff --git a/libsvgtiny.spec b/libsvgtiny.spec index c6304cb..98a87e6 100644 --- a/libsvgtiny.spec +++ b/libsvgtiny.spec @@ -6,11 +6,12 @@ Summary: Implementation of SVG Tiny Summary(pl.UTF-8): Implementacja SVG Tiny Name: libsvgtiny Version: 0.1.1 -Release: 1 +Release: 2 License: MIT Group: Libraries Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz # Source0-md5: 6e3da8ecfde7749852a66195ebea0de1 +Patch0: no-Werror.patch URL: http://www.netsurf-browser.org/projects/libsvgtiny/ BuildRequires: gperf BuildRequires: libdom-devel >= 0.1.0 @@ -68,6 +69,7 @@ Statyczna biblioteka libsvgtiny. %prep %setup -q +%patch0 -p1 %build export CC="%{__cc}" diff --git a/no-Werror.patch b/no-Werror.patch new file mode 100644 index 0000000..e0f99cb --- /dev/null +++ b/no-Werror.patch @@ -0,0 +1,15 @@ +--- libsvgtiny-0.1.1/Makefile~ 2014-04-18 13:19:22.000000000 +0200 ++++ libsvgtiny-0.1.1/Makefile 2014-11-25 19:33:17.289018921 +0100 +@@ -15,12 +15,6 @@ + WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \ + -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ + -Wmissing-declarations -Wnested-externs -pedantic +-# BeOS/Haiku/AmigaOS standard library headers create warnings +-ifneq ($(TARGET),beos) +- ifneq ($(TARGET),amiga) +- WARNFLAGS := $(WARNFLAGS) -Werror +- endif +-endif + + CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \ + -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)