[packages/libhubbub] - rel 2; warnings are acceptable now
arekm
arekm at pld-linux.org
Thu Oct 9 08:57:56 CEST 2014
commit c5c8b2dc08d682ad69073cbd3fde4dea6eab613f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 9 08:57:54 2014 +0200
- rel 2; warnings are acceptable now
libhubbub-build.patch | 15 +++++++++++++++
libhubbub.spec | 6 ++++--
2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/libhubbub.spec b/libhubbub.spec
index e202bf8..5270de0 100644
--- a/libhubbub.spec
+++ b/libhubbub.spec
@@ -6,11 +6,12 @@ Summary: HTML5 compliant parsing library
Summary(pl.UTF-8): Biblioteka analizująca HTML5
Name: libhubbub
Version: 0.3.0
-Release: 1
+Release: 2
License: MIT
Group: Libraries
Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
# Source0-md5: 9baf3f765e25336ab1b64da8968270f7
+Patch0: %{name}-build.patch
URL: http://www.netsurf-browser.org/projects/libhubbub/
BuildRequires: libparserutils-devel >= 0.2.0
BuildRequires: netsurf-buildsystem >= 1.1
@@ -90,10 +91,11 @@ Statyczna biblioteka libhubbub.
%prep
%setup -q
+%patch0 -p1
%build
export CC="%{__cc}"
-export CFLAGS="%{rpmcflags}"
+export CFLAGS="%{rpmcflags} %{rpmcppflags}"
export LDFLAGS="%{rpmldflags}"
%{__make} \
diff --git a/libhubbub-build.patch b/libhubbub-build.patch
new file mode 100644
index 0000000..3f69a88
--- /dev/null
+++ b/libhubbub-build.patch
@@ -0,0 +1,15 @@
+--- libhubbub-0.3.0/Makefile~ 2014-04-18 11:49:06.000000000 +0200
++++ libhubbub-0.3.0/Makefile 2014-10-09 08:56:59.008078863 +0200
+@@ -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 have standard library errors that issue warnings.
+-ifneq ($(TARGET),beos)
+- ifneq ($(TARGET),amiga)
+- WARNFLAGS := $(WARNFLAGS) -Werror
+- endif
+-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/libhubbub.git/commitdiff/c5c8b2dc08d682ad69073cbd3fde4dea6eab613f
More information about the pld-cvs-commit
mailing list