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