]> git.pld-linux.org Git - packages/netsurf.git/blame - netsurf.spec
- F10 on SDL quits
[packages/netsurf.git] / netsurf.spec
CommitLineData
5c67da6c 1Summary: Light www browser
2Name: netsurf
3Version: 2.9
4Release: 0.1
5License: GPL v2
6Group: Applications/Networking
7Source0: http://download.netsurf-browser.org/netsurf/releases/source-full/%{name}-%{version}-full-src.tar.gz
8# Source0-md5: cfc2789997b356f2ea9d9f7694c4c909
9Source1: netsurf.desktop
10Patch0: enable-nsfb.patch
11Patch1: libnsfb-xcb-fix.patch
12URL: http://netsurf-browser.org/
13BuildRequires: SDL-devel
14BuildRequires: curl-devel
15BuildRequires: freetype-devel
16BuildRequires: libglade2-devel
17BuildRequires: libmng-devel
18BuildRequires: libjpeg-devel
19BuildRequires: libpng-devel
20BuildRequires: librsvg-devel
21BuildRequires: perl-base
22BuildRequires: pkgconfig
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Small web browser with CSS support.
27NetSurf is a multi-platform lightweight web browser. Its aim is to provide
28comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint
29while remaining fast.
30
31%package common
32Summary: netsurf - common files
33Summary(pl.UTF-8): netsurf - pliki wspólne
34License: GPL v2
35Group: Applications/Networking
36
37%description common
38netsurf - common files.
39
40%description common -l pl.UTF-8
41netsurf - wspólne pliki.
42
43%package gtk
44Summary: netsurf browser SDL version
45Summary(pl.UTF-8): Wersja SDL netsurfa
46License: GPL v2
47Group: Applications/Networking
48Requires: %{name}-common = %{version}-%{release}
49
50%description gtk
51Small web browser with CSS support.
52NetSurf is a multi-platform lightweight web browser. Its aim is to provide
53comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint
54while remaining fast.
55
56This is gtk version.
57
58%package sdl
59Summary: netsurf browser SDL version
60Summary(pl.UTF-8): Wersja SDL netsurfa
61License: GPL v2
62Group: Applications/Networking
63Requires: %{name}-common = %{version}-%{release}
64
65%description sdl
66Small web browser with CSS support.
67NetSurf is a multi-platform lightweight web browser. Its aim is to provide
68comprehensive rendering of HTML 5 with CSS 2 in a small resource footprint
69while remaining fast.
70
71This is SDL version.
72
73%prep
74%setup -q
75%patch0 -p1
76%patch1 -p1
77
78cat << EOF > netsurf-2.9/Makefile.config
79NETSURF_FB_FONTLIB := freetype
80NETSURF_FB_FONTPATH := /usr/share/fonts/TTF
81EOF
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
97rm -rf $RPM_BUILD_ROOT
98install -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
112install %{SOURCE1} $RPM_BUILD_ROOT/%{_desktopdir}
113install netsurf-2.9/nsfb $RPM_BUILD_ROOT/%{_bindir}
114install netsurf-2.9/nsgtk $RPM_BUILD_ROOT/%{_bindir}
115
116%clean
117rm -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
This page took 0.081251 seconds and 4 git commands to generate.