]> git.pld-linux.org Git - packages/libhubbub.git/commitdiff
- rel 2; warnings are acceptable now auto/th/libhubbub-0.3.0-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 9 Oct 2014 06:57:54 +0000 (08:57 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 9 Oct 2014 06:57:54 +0000 (08:57 +0200)
libhubbub-build.patch [new file with mode: 0644]
libhubbub.spec

diff --git a/libhubbub-build.patch b/libhubbub-build.patch
new file mode 100644 (file)
index 0000000..3f69a88
--- /dev/null
@@ -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)
index e202bf8fb4a545575ae7d880b95e9516c8a7e053..5270de077b97fd549b689bca4d9f597afeed3828 100644 (file)
@@ -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} \
This page took 0.104032 seconds and 4 git commands to generate.