commit a9f8441c6b80cec461e53cca7a5d4fa9ecf8082b
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Thu Oct 9 08:24:50 2014 +0200

    - rel 2; warnings are acceptable now

 libparserutils-build.patch | 14 ++++++++++++++
 libparserutils.spec        |  6 ++++--
 2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/libparserutils.spec b/libparserutils.spec
index 923a861..cea625f 100644
--- a/libparserutils.spec
+++ b/libparserutils.spec
@@ -6,11 +6,12 @@ Summary:      Library for building efficient parsers
 Summary(pl.UTF-8):     Biblioteka do tworzenia wydajnych analizatorów
 Name:          libparserutils
 Version:       0.2.0
-Release:       1
+Release:       2
 License:       MIT
 Group:         Libraries
 Source0:       
http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
 # Source0-md5: 3a52cff73006e9b7feb6dd23410373c2
+Patch0:                %{name}-build.patch
 URL:           http://www.netsurf-browser.org/projects/libparserutils/
 BuildRequires: netsurf-buildsystem >= 1.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -77,10 +78,11 @@ Statyczna biblioteka libparserutils.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export CC="%{__cc}"
-export CFLAGS="%{rpmcflags}"
+export CFLAGS="%{rpmcflags} %{rpmcppflags}"
 export LDFLAGS="%{rpmldflags}"
 
 %{__make} \
diff --git a/libparserutils-build.patch b/libparserutils-build.patch
new file mode 100644
index 0000000..9dcb3cb
--- /dev/null
+++ b/libparserutils-build.patch
@@ -0,0 +1,14 @@
+--- libparserutils-0.2.0/Makefile~     2014-04-18 11:35:42.000000000 +0200
++++ libparserutils-0.2.0/Makefile      2014-10-09 08:23:51.426250318 +0200
+@@ -15,11 +15,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/libparserutils.git/commitdiff/a9f8441c6b80cec461e53cca7a5d4fa9ecf8082b

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

Reply via email to