]>
Commit | Line | Data |
---|---|---|
5c67da6c | 1 | Summary: Light www browser |
2 | Name: netsurf | |
3 | Version: 2.9 | |
4 | Release: 0.1 | |
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 | |
8 | # Source0-md5: cfc2789997b356f2ea9d9f7694c4c909 | |
9 | Source1: netsurf.desktop | |
10 | Patch0: enable-nsfb.patch | |
11 | Patch1: libnsfb-xcb-fix.patch | |
12 | URL: http://netsurf-browser.org/ | |
13 | BuildRequires: SDL-devel | |
14 | BuildRequires: curl-devel | |
15 | BuildRequires: freetype-devel | |
16 | BuildRequires: libglade2-devel | |
17 | BuildRequires: libmng-devel | |
18 | BuildRequires: libjpeg-devel | |
19 | BuildRequires: libpng-devel | |
20 | BuildRequires: librsvg-devel | |
21 | BuildRequires: perl-base | |
22 | BuildRequires: pkgconfig | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Small web browser with CSS support. | |
27 | NetSurf is a multi-platform lightweight web browser. Its aim is to provide | |
28 | comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint | |
29 | while remaining fast. | |
30 | ||
31 | %package common | |
32 | Summary: netsurf - common files | |
33 | Summary(pl.UTF-8): netsurf - pliki wspólne | |
34 | License: GPL v2 | |
35 | Group: Applications/Networking | |
36 | ||
37 | %description common | |
38 | netsurf - common files. | |
39 | ||
40 | %description common -l pl.UTF-8 | |
41 | netsurf - wspólne pliki. | |
42 | ||
43 | %package gtk | |
44 | Summary: netsurf browser SDL version | |
45 | Summary(pl.UTF-8): Wersja SDL netsurfa | |
46 | License: GPL v2 | |
47 | Group: Applications/Networking | |
48 | Requires: %{name}-common = %{version}-%{release} | |
49 | ||
50 | %description gtk | |
51 | Small web browser with CSS support. | |
52 | NetSurf is a multi-platform lightweight web browser. Its aim is to provide | |
53 | comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint | |
54 | while remaining fast. | |
55 | ||
56 | This is gtk version. | |
57 | ||
58 | %package sdl | |
59 | Summary: netsurf browser SDL version | |
60 | Summary(pl.UTF-8): Wersja SDL netsurfa | |
61 | License: GPL v2 | |
62 | Group: Applications/Networking | |
63 | Requires: %{name}-common = %{version}-%{release} | |
64 | ||
65 | %description sdl | |
66 | Small web browser with CSS support. | |
67 | NetSurf is a multi-platform lightweight web browser. Its aim is to provide | |
68 | comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint | |
69 | while remaining fast. | |
70 | ||
71 | This is SDL version. | |
72 | ||
73 | %prep | |
74 | %setup -q | |
75 | %patch0 -p1 | |
76 | %patch1 -p1 | |
77 | ||
78 | cat << EOF > netsurf-2.9/Makefile.config | |
79 | NETSURF_FB_FONTLIB := freetype | |
80 | NETSURF_FB_FONTPATH := /usr/share/fonts/TTF | |
81 | EOF | |
82 | ||
83 | %build | |
84 | %{__make} \ | |
85 | \ | |
86 | PREFIX=%{_prefix} \ | |
87 | Q='' \ | |
88 | TARGET=gtk | |
89 | ||
90 | %{__make} \ | |
91 | \ | |
92 | PREFIX=%{_prefix} \ | |
93 | Q='' \ | |
94 | TARGET=framebuffer | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} | |
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT \ | |
101 | PREFIX=%{_prefix} \ | |
102 | TARGET=gtk \ | |
103 | Q='' | |
104 | ||
105 | ||
106 | %{__make} install \ | |
107 | DESTDIR=$RPM_BUILD_ROOT \ | |
108 | PREFIX=%{_prefix} \ | |
109 | TARGET=framebuffer \ | |
110 | Q='' | |
111 | ||
112 | install %{SOURCE1} $RPM_BUILD_ROOT/%{_desktopdir} | |
113 | install netsurf-2.9/nsfb $RPM_BUILD_ROOT/%{_bindir} | |
114 | install netsurf-2.9/nsgtk $RPM_BUILD_ROOT/%{_bindir} | |
115 | ||
116 | %clean | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %files common | |
120 | %defattr(644,root,root,755) | |
121 | %doc netsurf-2.9/ChangeLog netsurf-2.9/README | |
122 | %dir %{_datadir}/%{name} | |
123 | %{_datadir}/%{name}/* | |
124 | ||
125 | %files gtk | |
126 | %defattr(644,root,root,755) | |
127 | %attr(755,root,root) %{_bindir}/nsgtk | |
128 | %{_desktopdir}/netsurf.desktop | |
129 | ||
130 | %files sdl | |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_bindir}/nsfb |