]> git.pld-linux.org Git - packages/netsurf.git/blob - netsurf.spec
- pass CFLAGS and LDFLAGS
[packages/netsurf.git] / netsurf.spec
1 Summary:        Light www browser
2 Name:           netsurf
3 Version:        2.9
4 Release:        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:        %{name}.desktop
10 Patch0:         enable-nsfb.patch
11 Patch1:         libnsfb-xcb-fix.patch
12 Patch2:         nsfb-F10-exit.patch
13 URL:            http://netsurf-browser.org/
14 BuildRequires:  SDL-devel
15 BuildRequires:  curl-devel
16 BuildRequires:  freetype-devel
17 BuildRequires:  libglade2-devel
18 BuildRequires:  libjpeg-devel
19 BuildRequires:  libmng-devel
20 BuildRequires:  libpng-devel
21 BuildRequires:  librsvg-devel
22 BuildRequires:  perl-base
23 BuildRequires:  pkgconfig
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Small web browser with CSS support. NetSurf is a multi-platform
28 lightweight web browser. Its aim is to provide comprehensive rendering
29 of HTML 5 with CSS 2 in a small resource footprint while remaining
30 fast.
31
32 %package common
33 Summary:        netsurf - common files
34 Summary(pl.UTF-8):      netsurf - pliki wspólne
35 License:        GPL v2
36 Group:          Applications/Networking
37
38 %description common
39 netsurf - common files.
40
41 %description common -l pl.UTF-8
42 netsurf - wspólne pliki.
43
44 %package gtk
45 Summary:        netsurf browser gtk version
46 Summary(pl.UTF-8):      Wersja gtk netsurfa
47 License:        GPL v2
48 Group:          Applications/Networking
49 Requires:       %{name}-common = %{version}-%{release}
50
51 %description gtk
52 Small web browser with CSS support. NetSurf is a multi-platform
53 lightweight web browser. Its aim is to provide comprehensive rendering
54 of HTML 5 with CSS 2 in a small resource footprint while remaining
55 fast.
56
57 This is gtk version.
58
59 %package sdl
60 Summary:        netsurf browser SDL version
61 Summary(pl.UTF-8):      Wersja SDL netsurfa
62 License:        GPL v2
63 Group:          Applications/Networking
64 Requires:       %{name}-common = %{version}-%{release}
65
66 %description sdl
67 Small web browser with CSS support. NetSurf is a multi-platform
68 lightweight web browser. Its aim is to provide comprehensive rendering
69 of HTML 5 with CSS 2 in a small resource footprint while remaining
70 fast.
71
72 This is SDL version.
73
74 %prep
75 %setup -q
76 %patch0 -p1
77 %patch1 -p1
78 %patch2 -p1
79
80 cat << EOF > netsurf-2.9/Makefile.config
81 NETSURF_FB_FONTLIB := freetype
82 NETSURF_FB_FONTPATH := %{_datadir}/fonts/TTF
83 EOF
84
85 %build
86 CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
87         %{__make} PREFIX=%{_prefix} \
88         Q='' \
89         TARGET=gtk
90
91 CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" \
92         %{__make} 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
This page took 0.122356 seconds and 4 git commands to generate.