]>
Commit | Line | Data |
---|---|---|
5c67da6c | 1 | Summary: Light www browser |
2 | Name: netsurf | |
d03be798 | 3 | Version: 3.0 |
1f954c05 | 4 | Release: 2 |
5c67da6c | 5 | License: GPL v2 |
6 | Group: Applications/Networking | |
7 | Source0: http://download.netsurf-browser.org/netsurf/releases/source-full/%{name}-%{version}-full-src.tar.gz | |
d03be798 | 8 | # Source0-md5: 51b13676d5f012409e0aefc6404938f6 |
17e5188e | 9 | Source1: %{name}.desktop |
1f954c05 | 10 | Patch0: scroll.patch |
5c67da6c | 11 | Patch1: libnsfb-xcb-fix.patch |
17e5188e | 12 | Patch2: nsfb-F10-exit.patch |
5c67da6c | 13 | URL: http://netsurf-browser.org/ |
14 | BuildRequires: SDL-devel | |
15 | BuildRequires: curl-devel | |
16 | BuildRequires: freetype-devel | |
d03be798 | 17 | BuildRequires: libCSS-devel |
18 | BuildRequires: libdom-devel | |
5c67da6c | 19 | BuildRequires: libglade2-devel |
d03be798 | 20 | BuildRequires: libhubbub-devel |
5c67da6c | 21 | BuildRequires: libjpeg-devel |
17e5188e | 22 | BuildRequires: libmng-devel |
d03be798 | 23 | BuildRequires: libnsbmp-devel |
6425f295 | 24 | BuildRequires: libnsfb-devel |
d03be798 | 25 | BuildRequires: libnsgif-devel |
26 | BuildRequires: libparserutils-devel | |
5c67da6c | 27 | BuildRequires: libpng-devel |
28 | BuildRequires: librsvg-devel | |
d03be798 | 29 | BuildRequires: libsvgtiny-devel |
30 | BuildRequires: libwapcaplet-devel | |
31 | BuildRequires: netsurf-buildsystem | |
32 | BuildRequires: nsgenbind | |
5c67da6c | 33 | BuildRequires: perl-base |
34 | BuildRequires: pkgconfig | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
17e5188e | 38 | Small web browser with CSS support. NetSurf is a multi-platform |
39 | lightweight web browser. Its aim is to provide comprehensive rendering | |
40 | of HTML 5 with CSS 2 in a small resource footprint while remaining | |
41 | fast. | |
5c67da6c | 42 | |
43 | %package common | |
44 | Summary: netsurf - common files | |
45 | Summary(pl.UTF-8): netsurf - pliki wspólne | |
46 | License: GPL v2 | |
47 | Group: Applications/Networking | |
48 | ||
49 | %description common | |
50 | netsurf - common files. | |
51 | ||
52 | %description common -l pl.UTF-8 | |
53 | netsurf - wspólne pliki. | |
54 | ||
55 | %package gtk | |
17e5188e | 56 | Summary: netsurf browser gtk version |
57 | Summary(pl.UTF-8): Wersja gtk netsurfa | |
5c67da6c | 58 | License: GPL v2 |
59 | Group: Applications/Networking | |
60 | Requires: %{name}-common = %{version}-%{release} | |
61 | ||
62 | %description gtk | |
17e5188e | 63 | Small web browser with CSS support. NetSurf is a multi-platform |
64 | lightweight web browser. Its aim is to provide comprehensive rendering | |
65 | of HTML 5 with CSS 2 in a small resource footprint while remaining | |
66 | fast. | |
5c67da6c | 67 | |
68 | This is gtk version. | |
69 | ||
70 | %package sdl | |
71 | Summary: netsurf browser SDL version | |
72 | Summary(pl.UTF-8): Wersja SDL netsurfa | |
73 | License: GPL v2 | |
74 | Group: Applications/Networking | |
75 | Requires: %{name}-common = %{version}-%{release} | |
76 | ||
77 | %description sdl | |
17e5188e | 78 | Small web browser with CSS support. NetSurf is a multi-platform |
79 | lightweight web browser. Its aim is to provide comprehensive rendering | |
80 | of HTML 5 with CSS 2 in a small resource footprint while remaining | |
81 | fast. | |
5c67da6c | 82 | |
83 | This is SDL version. | |
84 | ||
85 | %prep | |
d03be798 | 86 | %setup -q -n netsurf-full-%{version} |
1f954c05 | 87 | %patch0 -p1 |
d03be798 | 88 | #%patch1 -p1 |
17e5188e | 89 | %patch2 -p1 |
5c67da6c | 90 | |
d03be798 | 91 | cat << EOF > src/netsurf-3.0/Makefile.config |
5c67da6c | 92 | NETSURF_FB_FONTLIB := freetype |
17e5188e | 93 | NETSURF_FB_FONTPATH := %{_datadir}/fonts/TTF |
5c67da6c | 94 | EOF |
95 | ||
96 | %build | |
d03be798 | 97 | cd src/netsurf-%{version} |
2dbd7f13 | 98 | export CC="%{__cc}" |
f8d10195 | 99 | # while cxx not needed, somewhy it helps race condition on carme build |
2dbd7f13 | 100 | export CXX="%{__cxx}" |
f8d10195 ER |
101 | # silence -Werror: |
102 | #src/surface/vnc.c: In function 'vnc_input': | |
103 | #src/surface/vnc.c:489:9: error: variable 'ret' set but not used [-Werror=unused-but-set-variable] | |
2dbd7f13 ER |
104 | export CFLAGS="%{rpmcflags} -Wno-error=unused-but-set-variable" |
105 | export LDFLAGS="%{rpmldflags}" | |
106 | ||
f8d10195 ER |
107 | # make -j1 or it won't find libwapcaplet/libwapcaplet.h |
108 | ||
2dbd7f13 ER |
109 | %{__make} -j1 \ |
110 | PREFIX=%{_prefix} \ | |
5c67da6c | 111 | Q='' \ |
112 | TARGET=gtk | |
113 | ||
2dbd7f13 ER |
114 | %{__make} -j1 \ |
115 | PREFIX=%{_prefix} \ | |
5c67da6c | 116 | Q='' \ |
117 | TARGET=framebuffer | |
118 | ||
119 | %install | |
d03be798 | 120 | cd src/netsurf-%{version} |
5c67da6c | 121 | rm -rf $RPM_BUILD_ROOT |
5c67da6c | 122 | %{__make} install \ |
2dbd7f13 | 123 | Q='' \ |
5c67da6c | 124 | PREFIX=%{_prefix} \ |
125 | TARGET=gtk \ | |
2dbd7f13 | 126 | DESTDIR=$RPM_BUILD_ROOT |
5c67da6c | 127 | |
128 | ||
129 | %{__make} install \ | |
2dbd7f13 | 130 | Q='' \ |
5c67da6c | 131 | PREFIX=%{_prefix} \ |
132 | TARGET=framebuffer \ | |
2dbd7f13 | 133 | DESTDIR=$RPM_BUILD_ROOT |
5c67da6c | 134 | |
2dbd7f13 | 135 | # this is binary from last "make install", we install more specific binary ourself |
d03be798 | 136 | %{__rm} -f $RPM_BUILD_ROOT%{_bindir}/netsurf |
2dbd7f13 ER |
137 | |
138 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} | |
139 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
d03be798 | 140 | install nsfb $RPM_BUILD_ROOT/%{_bindir} |
141 | install nsgtk $RPM_BUILD_ROOT/%{_bindir} | |
5c67da6c | 142 | |
143 | %clean | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %files common | |
147 | %defattr(644,root,root,755) | |
d03be798 | 148 | %doc src/netsurf-%{version}/README |
5c67da6c | 149 | %dir %{_datadir}/%{name} |
150 | %{_datadir}/%{name}/* | |
151 | ||
152 | %files gtk | |
153 | %defattr(644,root,root,755) | |
154 | %attr(755,root,root) %{_bindir}/nsgtk | |
155 | %{_desktopdir}/netsurf.desktop | |
156 | ||
157 | %files sdl | |
158 | %defattr(644,root,root,755) | |
159 | %attr(755,root,root) %{_bindir}/nsfb |