]>
Commit | Line | Data |
---|---|---|
51a5e7c1 | 1 | Summary: Light WWW browser |
5c67da6c | 2 | Name: netsurf |
6c09c25d WF |
3 | Version: 3.1 |
4 | Release: 1 | |
5c67da6c | 5 | License: GPL v2 |
6 | Group: Applications/Networking | |
6c09c25d WF |
7 | Source0: http://download.netsurf-browser.org/netsurf/releases/source/%{name}-%{version}-src.tar.gz |
8 | # Source0-md5: b83932b311716054a5189f121cdd5fd4 | |
17e5188e | 9 | Source1: %{name}.desktop |
e49db766 | 10 | Patch0: nsfb-ldflags.patch |
5c67da6c | 11 | URL: http://netsurf-browser.org/ |
12 | BuildRequires: SDL-devel | |
13 | BuildRequires: curl-devel | |
14 | BuildRequires: freetype-devel | |
6c09c25d WF |
15 | BuildRequires: libCSS-devel >= 0.3.0 |
16 | BuildRequires: libdom-devel >= 0.1.0 | |
5c67da6c | 17 | BuildRequires: libglade2-devel |
6c09c25d | 18 | BuildRequires: libhubbub-devel >= 0.3.0 |
5c67da6c | 19 | BuildRequires: libjpeg-devel |
17e5188e | 20 | BuildRequires: libmng-devel |
6c09c25d WF |
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 | |
5c67da6c | 25 | BuildRequires: libpng-devel |
26 | BuildRequires: librsvg-devel | |
6c09c25d WF |
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 | |
5c67da6c | 32 | BuildRequires: pkgconfig |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
17e5188e | 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 | |
39 | fast. | |
5c67da6c | 40 | |
41 | %package common | |
42 | Summary: netsurf - common files | |
43 | Summary(pl.UTF-8): netsurf - pliki wspólne | |
5c67da6c | 44 | Group: Applications/Networking |
45 | ||
46 | %description common | |
47 | netsurf - common files. | |
48 | ||
49 | %description common -l pl.UTF-8 | |
50 | netsurf - wspólne pliki. | |
51 | ||
52 | %package gtk | |
51a5e7c1 | 53 | Summary: Netsurf browser GTK version |
17e5188e | 54 | Summary(pl.UTF-8): Wersja gtk netsurfa |
5c67da6c | 55 | Group: Applications/Networking |
56 | Requires: %{name}-common = %{version}-%{release} | |
57 | ||
58 | %description gtk | |
17e5188e | 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 | |
62 | fast. | |
5c67da6c | 63 | |
51a5e7c1 | 64 | This is GTK version. |
5c67da6c | 65 | |
66 | %package sdl | |
67 | Summary: netsurf browser SDL version | |
68 | Summary(pl.UTF-8): Wersja SDL netsurfa | |
5c67da6c | 69 | Group: Applications/Networking |
70 | Requires: %{name}-common = %{version}-%{release} | |
71 | ||
72 | %description sdl | |
17e5188e | 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 | |
76 | fast. | |
5c67da6c | 77 | |
78 | This is SDL version. | |
79 | ||
80 | %prep | |
6c09c25d | 81 | %setup -q |
e49db766 | 82 | %patch0 -p1 |
5c67da6c | 83 | |
6c09c25d | 84 | cat << EOF > Makefile.config |
5c67da6c | 85 | NETSURF_FB_FONTLIB := freetype |
17e5188e | 86 | NETSURF_FB_FONTPATH := %{_datadir}/fonts/TTF |
5c67da6c | 87 | EOF |
88 | ||
89 | %build | |
2dbd7f13 | 90 | export CC="%{__cc}" |
f8d10195 | 91 | # while cxx not needed, somewhy it helps race condition on carme build |
2dbd7f13 | 92 | export CXX="%{__cxx}" |
f8d10195 ER |
93 | # silence -Werror: |
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] | |
2dbd7f13 ER |
96 | export CFLAGS="%{rpmcflags} -Wno-error=unused-but-set-variable" |
97 | export LDFLAGS="%{rpmldflags}" | |
98 | ||
f8d10195 ER |
99 | # make -j1 or it won't find libwapcaplet/libwapcaplet.h |
100 | ||
2dbd7f13 ER |
101 | %{__make} -j1 \ |
102 | PREFIX=%{_prefix} \ | |
5c67da6c | 103 | Q='' \ |
104 | TARGET=gtk | |
105 | ||
2dbd7f13 ER |
106 | %{__make} -j1 \ |
107 | PREFIX=%{_prefix} \ | |
5c67da6c | 108 | Q='' \ |
109 | TARGET=framebuffer | |
110 | ||
111 | %install | |
51a5e7c1 | 112 | rm -rf $RPM_BUILD_ROOT |
5c67da6c | 113 | rm -rf $RPM_BUILD_ROOT |
5c67da6c | 114 | %{__make} install \ |
2dbd7f13 | 115 | Q='' \ |
5c67da6c | 116 | PREFIX=%{_prefix} \ |
117 | TARGET=gtk \ | |
2dbd7f13 | 118 | DESTDIR=$RPM_BUILD_ROOT |
5c67da6c | 119 | |
120 | ||
121 | %{__make} install \ | |
2dbd7f13 | 122 | Q='' \ |
5c67da6c | 123 | PREFIX=%{_prefix} \ |
124 | TARGET=framebuffer \ | |
2dbd7f13 | 125 | DESTDIR=$RPM_BUILD_ROOT |
5c67da6c | 126 | |
2dbd7f13 | 127 | # this is binary from last "make install", we install more specific binary ourself |
d03be798 | 128 | %{__rm} -f $RPM_BUILD_ROOT%{_bindir}/netsurf |
2dbd7f13 ER |
129 | |
130 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} | |
131 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} | |
d03be798 | 132 | install nsfb $RPM_BUILD_ROOT/%{_bindir} |
133 | install nsgtk $RPM_BUILD_ROOT/%{_bindir} | |
5c67da6c | 134 | |
135 | %clean | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
138 | %files common | |
139 | %defattr(644,root,root,755) | |
6c09c25d | 140 | %doc README |
5c67da6c | 141 | %dir %{_datadir}/%{name} |
142 | %{_datadir}/%{name}/* | |
143 | ||
144 | %files gtk | |
145 | %defattr(644,root,root,755) | |
146 | %attr(755,root,root) %{_bindir}/nsgtk | |
147 | %{_desktopdir}/netsurf.desktop | |
148 | ||
149 | %files sdl | |
150 | %defattr(644,root,root,755) | |
151 | %attr(755,root,root) %{_bindir}/nsfb |