1 Summary: Light WWW browser
6 Group: Applications/Networking
7 Source0: http://download.netsurf-browser.org/netsurf/releases/source/%{name}-%{version}-src.tar.gz
8 # Source0-md5: b83932b311716054a5189f121cdd5fd4
9 Source1: %{name}.desktop
10 Patch0: nsfb-ldflags.patch
11 URL: http://netsurf-browser.org/
12 BuildRequires: SDL-devel
13 BuildRequires: curl-devel
14 BuildRequires: freetype-devel
15 BuildRequires: libCSS-devel >= 0.3.0
16 BuildRequires: libdom-devel >= 0.1.0
17 BuildRequires: libglade2-devel
18 BuildRequires: libhubbub-devel >= 0.3.0
19 BuildRequires: libjpeg-devel
20 BuildRequires: libmng-devel
21 BuildRequires: libnsbmp-devel >= 0.1.1
22 BuildRequires: libnsfb-devel >= 0.1.1
23 BuildRequires: libnsgif-devel >= 0.1.1
24 BuildRequires: libparserutils-devel >= 0.2.0
25 BuildRequires: libpng-devel
26 BuildRequires: librsvg-devel
27 BuildRequires: libsvgtiny-devel >= 0.1.1
28 BuildRequires: libwapcaplet-devel >= 0.2.1
29 BuildRequires: netsurf-buildsystem >= 1.1
30 BuildRequires: nsgenbind >= 0.1.0
31 BuildRequires: perl-HTML-Parser
32 BuildRequires: pkgconfig
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Small web browser with CSS support. NetSurf is a multi-platform
37 lightweight web browser. Its aim is to provide comprehensive rendering
38 of HTML 5 with CSS 2 in a small resource footprint while remaining
42 Summary: netsurf - common files
43 Summary(pl.UTF-8): netsurf - pliki wspólne
44 Group: Applications/Networking
47 netsurf - common files.
49 %description common -l pl.UTF-8
50 netsurf - wspólne pliki.
53 Summary: Netsurf browser GTK version
54 Summary(pl.UTF-8): Wersja gtk netsurfa
55 Group: Applications/Networking
56 Requires: %{name}-common = %{version}-%{release}
59 Small web browser with CSS support. NetSurf is a multi-platform
60 lightweight web browser. Its aim is to provide comprehensive rendering
61 of HTML 5 with CSS 2 in a small resource footprint while remaining
67 Summary: netsurf browser SDL version
68 Summary(pl.UTF-8): Wersja SDL netsurfa
69 Group: Applications/Networking
70 Requires: %{name}-common = %{version}-%{release}
73 Small web browser with CSS support. NetSurf is a multi-platform
74 lightweight web browser. Its aim is to provide comprehensive rendering
75 of HTML 5 with CSS 2 in a small resource footprint while remaining
84 cat << EOF > Makefile.config
85 NETSURF_FB_FONTLIB := freetype
86 NETSURF_FB_FONTPATH := %{_datadir}/fonts/TTF
91 # while cxx not needed, somewhy it helps race condition on carme build
94 #src/surface/vnc.c: In function 'vnc_input':
95 #src/surface/vnc.c:489:9: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
96 export CFLAGS="%{rpmcflags} -Wno-error=unused-but-set-variable"
97 export LDFLAGS="%{rpmldflags}"
99 # make -j1 or it won't find libwapcaplet/libwapcaplet.h
112 rm -rf $RPM_BUILD_ROOT
113 rm -rf $RPM_BUILD_ROOT
118 DESTDIR=$RPM_BUILD_ROOT
125 DESTDIR=$RPM_BUILD_ROOT
127 # this is binary from last "make install", we install more specific binary ourself
128 %{__rm} -f $RPM_BUILD_ROOT%{_bindir}/netsurf
130 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
131 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
132 install nsfb $RPM_BUILD_ROOT/%{_bindir}
133 install nsgtk $RPM_BUILD_ROOT/%{_bindir}
136 rm -rf $RPM_BUILD_ROOT
139 %defattr(644,root,root,755)
141 %dir %{_datadir}/%{name}
142 %{_datadir}/%{name}/*
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_bindir}/nsgtk
147 %{_desktopdir}/netsurf.desktop
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_bindir}/nsfb