1 Summary: Light www browser
6 Group: Applications/Networking
7 Source0: http://download.netsurf-browser.org/netsurf/releases/source-full/%{name}-%{version}-full-src.tar.gz
8 # Source0-md5: 51b13676d5f012409e0aefc6404938f6
9 Source1: %{name}.desktop
11 Patch1: libnsfb-xcb-fix.patch
12 Patch2: nsfb-F10-exit.patch
13 Patch3: nsfb-ldflags.patch
14 URL: http://netsurf-browser.org/
15 BuildRequires: SDL-devel
16 BuildRequires: curl-devel
17 BuildRequires: freetype-devel
18 BuildRequires: libCSS-devel
19 BuildRequires: libdom-devel
20 BuildRequires: libglade2-devel
21 BuildRequires: libhubbub-devel
22 BuildRequires: libjpeg-devel
23 BuildRequires: libmng-devel
24 BuildRequires: libnsbmp-devel
25 BuildRequires: libnsfb-devel
26 BuildRequires: libnsgif-devel
27 BuildRequires: libparserutils-devel
28 BuildRequires: libpng-devel
29 BuildRequires: librsvg-devel
30 BuildRequires: libsvgtiny-devel
31 BuildRequires: libwapcaplet-devel
32 BuildRequires: netsurf-buildsystem
33 BuildRequires: nsgenbind
34 BuildRequires: perl-base
35 BuildRequires: pkgconfig
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Small web browser with CSS support. NetSurf is a multi-platform
40 lightweight web browser. Its aim is to provide comprehensive rendering
41 of HTML 5 with CSS 2 in a small resource footprint while remaining
45 Summary: netsurf - common files
46 Summary(pl.UTF-8): netsurf - pliki wspólne
48 Group: Applications/Networking
51 netsurf - common files.
53 %description common -l pl.UTF-8
54 netsurf - wspólne pliki.
57 Summary: netsurf browser gtk version
58 Summary(pl.UTF-8): Wersja gtk netsurfa
60 Group: Applications/Networking
61 Requires: %{name}-common = %{version}-%{release}
64 Small web browser with CSS support. NetSurf is a multi-platform
65 lightweight web browser. Its aim is to provide comprehensive rendering
66 of HTML 5 with CSS 2 in a small resource footprint while remaining
72 Summary: netsurf browser SDL version
73 Summary(pl.UTF-8): Wersja SDL netsurfa
75 Group: Applications/Networking
76 Requires: %{name}-common = %{version}-%{release}
79 Small web browser with CSS support. NetSurf is a multi-platform
80 lightweight web browser. Its aim is to provide comprehensive rendering
81 of HTML 5 with CSS 2 in a small resource footprint while remaining
87 %setup -q -n netsurf-full-%{version}
93 cat << EOF > src/netsurf-3.0/Makefile.config
94 NETSURF_FB_FONTLIB := freetype
95 NETSURF_FB_FONTPATH := %{_datadir}/fonts/TTF
99 cd src/netsurf-%{version}
101 # while cxx not needed, somewhy it helps race condition on carme build
102 export CXX="%{__cxx}"
104 #src/surface/vnc.c: In function 'vnc_input':
105 #src/surface/vnc.c:489:9: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
106 export CFLAGS="%{rpmcflags} -Wno-error=unused-but-set-variable"
107 export LDFLAGS="%{rpmldflags}"
109 # make -j1 or it won't find libwapcaplet/libwapcaplet.h
122 cd src/netsurf-%{version}
123 rm -rf $RPM_BUILD_ROOT
128 DESTDIR=$RPM_BUILD_ROOT
135 DESTDIR=$RPM_BUILD_ROOT
137 # this is binary from last "make install", we install more specific binary ourself
138 %{__rm} -f $RPM_BUILD_ROOT%{_bindir}/netsurf
140 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
141 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
142 install nsfb $RPM_BUILD_ROOT/%{_bindir}
143 install nsgtk $RPM_BUILD_ROOT/%{_bindir}
146 rm -rf $RPM_BUILD_ROOT
149 %defattr(644,root,root,755)
150 %doc src/netsurf-%{version}/README
151 %dir %{_datadir}/%{name}
152 %{_datadir}/%{name}/*
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_bindir}/nsgtk
157 %{_desktopdir}/netsurf.desktop
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_bindir}/nsfb