[packages/netsurf: 3/3] - pass CFLAGS and LDFLAGS - rel 1
witekfl
witekfl at pld-linux.org
Wed Jan 9 21:08:01 CET 2013
commit 17e5188ec713d564d6047b5d3b4de766ca818f15
Author: witekfl <witekfl at poczta.onet.pl>
Date: Wed Jan 9 21:03:57 2013 +0100
- pass CFLAGS and LDFLAGS
- rel 1
netsurf.desktop | 2 +-
netsurf.spec | 48 ++++++++++++++++++++++++------------------------
2 files changed, 25 insertions(+), 25 deletions(-)
---
diff --git a/netsurf.spec b/netsurf.spec
index 95e8b01..d6d6d25 100644
--- a/netsurf.spec
+++ b/netsurf.spec
@@ -1,21 +1,22 @@
Summary: Light www browser
Name: netsurf
Version: 2.9
-Release: 0.1
+Release: 1
License: GPL v2
Group: Applications/Networking
Source0: http://download.netsurf-browser.org/netsurf/releases/source-full/%{name}-%{version}-full-src.tar.gz
# Source0-md5: cfc2789997b356f2ea9d9f7694c4c909
-Source1: netsurf.desktop
+Source1: %{name}.desktop
Patch0: enable-nsfb.patch
Patch1: libnsfb-xcb-fix.patch
+Patch2: nsfb-F10-exit.patch
URL: http://netsurf-browser.org/
BuildRequires: SDL-devel
BuildRequires: curl-devel
BuildRequires: freetype-devel
BuildRequires: libglade2-devel
-BuildRequires: libmng-devel
BuildRequires: libjpeg-devel
+BuildRequires: libmng-devel
BuildRequires: libpng-devel
BuildRequires: librsvg-devel
BuildRequires: perl-base
@@ -23,10 +24,10 @@ BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Small web browser with CSS support.
-NetSurf is a multi-platform lightweight web browser. Its aim is to provide
-comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint
-while remaining fast.
+Small web browser with CSS support. NetSurf is a multi-platform
+lightweight web browser. Its aim is to provide comprehensive rendering
+of HTML 5 with CSS 2 in a small resource footprint while remaining
+fast.
%package common
Summary: netsurf - common files
@@ -41,17 +42,17 @@ netsurf - common files.
netsurf - wspólne pliki.
%package gtk
-Summary: netsurf browser SDL version
-Summary(pl.UTF-8): Wersja SDL netsurfa
+Summary: netsurf browser gtk version
+Summary(pl.UTF-8): Wersja gtk netsurfa
License: GPL v2
Group: Applications/Networking
Requires: %{name}-common = %{version}-%{release}
%description gtk
-Small web browser with CSS support.
-NetSurf is a multi-platform lightweight web browser. Its aim is to provide
-comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint
-while remaining fast.
+Small web browser with CSS support. NetSurf is a multi-platform
+lightweight web browser. Its aim is to provide comprehensive rendering
+of HTML 5 with CSS 2 in a small resource footprint while remaining
+fast.
This is gtk version.
@@ -63,10 +64,10 @@ Group: Applications/Networking
Requires: %{name}-common = %{version}-%{release}
%description sdl
-Small web browser with CSS support.
-NetSurf is a multi-platform lightweight web browser. Its aim is to provide
-comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint
-while remaining fast.
+Small web browser with CSS support. NetSurf is a multi-platform
+lightweight web browser. Its aim is to provide comprehensive rendering
+of HTML 5 with CSS 2 in a small resource footprint while remaining
+fast.
This is SDL version.
@@ -74,22 +75,21 @@ This is SDL version.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
cat << EOF > netsurf-2.9/Makefile.config
NETSURF_FB_FONTLIB := freetype
-NETSURF_FB_FONTPATH := /usr/share/fonts/TTF
+NETSURF_FB_FONTPATH := %{_datadir}/fonts/TTF
EOF
%build
-%{__make} \
- \
- PREFIX=%{_prefix} \
+CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
+ %{__make} PREFIX=%{_prefix} \
Q='' \
TARGET=gtk
-%{__make} \
- \
- PREFIX=%{_prefix} \
+CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
+ %{__make} PREFIX=%{_prefix} \
Q='' \
TARGET=framebuffer
diff --git a/netsurf.desktop b/netsurf.desktop
index 31fca92..1b9cfa0 100644
--- a/netsurf.desktop
+++ b/netsurf.desktop
@@ -61,7 +61,7 @@ Exec=nsgtk %u
Terminal=false
X-MultipleArgs=false
Type=Application
-Icon=netsurf.xpm
+Icon=netsurf
Categories=Network;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;image/gif;image/jpeg;image/png
StartupWMClass=NetSurf-bin
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/netsurf.git/commitdiff/17e5188ec713d564d6047b5d3b4de766ca818f15
More information about the pld-cvs-commit
mailing list