commit 7e4c6bdb2c09060c58afe87f632842b88405e2c1
Author: Jan Rękorajski <[email protected]>
Date:   Tue Nov 25 19:30:34 2014 +0100

    - drop Werror (fails to build on current glibc)
    - rel 2

 libnsbmp.spec   |  4 +++-
 no-Werror.patch | 13 +++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/libnsbmp.spec b/libnsbmp.spec
index 5c7251e..d515d2e 100644
--- a/libnsbmp.spec
+++ b/libnsbmp.spec
@@ -6,11 +6,12 @@ Summary:      Decoding library for BMP and ICO file formats
 Summary(pl.UTF-8):     Biblioteka dekodująca pliki w formatach BMP oraz ICO
 Name:          libnsbmp
 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: f9552402c748f976e68bb40a14bb82c7
+Patch0:                no-Werror.patch
 URL:           http://www.netsurf-browser.org/projects/libnsbmp/
 BuildRequires: netsurf-buildsystem >= 1.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,6 +54,7 @@ Statyczna biblioteka libnsbmp.
 
 %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..ff0d324
--- /dev/null
+++ b/no-Werror.patch
@@ -0,0 +1,13 @@
+--- libnsbmp-0.1.1/Makefile~   2014-04-18 12:38:41.000000000 +0200
++++ libnsbmp-0.1.1/Makefile    2014-11-25 19:29:51.412343644 +0100
+@@ -13,10 +13,6 @@
+ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
+       -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+       -Wmissing-declarations -Wnested-externs -pedantic
+-# BeOS/Haiku standard library headers create warnings
+-ifneq ($(TARGET),beos)
+-  WARNFLAGS := $(WARNFLAGS) -Werror
+-endif
+ CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
+       -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
+ ifneq ($(GCCVER),2)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libnsbmp.git/commitdiff/7e4c6bdb2c09060c58afe87f632842b88405e2c1

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to