[packages/libCSS] - rel 2; warnings are acceptable now
arekm
arekm at pld-linux.org
Thu Oct 9 08:41:40 CEST 2014
commit fd62b6f3187f675a4c4be78eba3422efeab0a5df
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 9 08:41:37 2014 +0200
- rel 2; warnings are acceptable now
libCSS-build.patch | 15 +++++++++++++++
libCSS.spec | 6 ++++--
2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/libCSS.spec b/libCSS.spec
index 3f3a493..7acea86 100644
--- a/libCSS.spec
+++ b/libCSS.spec
@@ -6,11 +6,12 @@ Summary: CSS parser and selection engine
Summary(pl.UTF-8): Silnik analizujący i wybierający CSS
Name: libCSS
Version: 0.3.0
-Release: 1
+Release: 2
License: MIT
Group: Libraries
Source0: http://download.netsurf-browser.org/libs/releases/libcss-%{version}-src.tar.gz
# Source0-md5: f4bf855bab90ef5225dbeeb7d97c514c
+Patch0: %{name}-build.patch
URL: http://www.netsurf-browser.org/projects/libcss/
BuildRequires: libparserutils-devel >= 0.2.0
BuildRequires: libwapcaplet-devel >= 0.2.1
@@ -75,6 +76,7 @@ Statyczna biblioteka libCSS.
%prep
%setup -q -n libcss-%{version}
+%patch0 -p1
# create "gen" target just to execute PRE_TARGETS
printf '\ngen: $(PRE_TARGETS)\n' >> Makefile
@@ -83,7 +85,7 @@ printf '\ngen: $(PRE_TARGETS)\n' >> Makefile
%build
export CC="%{__cc}"
-export CFLAGS="%{rpmcflags}"
+export CFLAGS="%{rpmcflags} %{rpmcppflags}"
export LDFLAGS="%{rpmldflags}"
# generate sources first to avoid recompilation on install when sources
diff --git a/libCSS-build.patch b/libCSS-build.patch
new file mode 100644
index 0000000..86e2e42
--- /dev/null
+++ b/libCSS-build.patch
@@ -0,0 +1,15 @@
+--- libcss-0.3.0/Makefile~ 2014-10-09 08:40:33.000000000 +0200
++++ libcss-0.3.0/Makefile 2014-10-09 08:40:46.021213521 +0200
+@@ -15,12 +15,6 @@
+ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
+ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+ -Wmissing-declarations -Wnested-externs
+-# BeOS/Haiku/AmigaOS4 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)
+ ifneq ($(GCCVER),2)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libCSS.git/commitdiff/fd62b6f3187f675a4c4be78eba3422efeab0a5df
More information about the pld-cvs-commit
mailing list