]> git.pld-linux.org Git - packages/links2.git/blob - links2.spec
- release 2 (rebuild with new DirectFB)
[packages/links2.git] / links2.spec
1 #
2 # Conditional build:
3 %bcond_without  javascript      # build without JavaScript interpreter
4 %bcond_without  graphics        # build without graphics support
5 %bcond_without  fb              # build without Linux Framebuffer graphics driver
6 %bcond_without  sdl             # build without SDL graphics driver
7 %bcond_without  svga            # build without svgalib graphics driver
8 %bcond_without  x               # build without X Window System graphics driver
9 #
10 Summary:        Lynx-like WWW browser
11 Summary(es):    El links es un browser para modo texto, similar a lynx
12 Summary(pl):    Podobna do Lynksa przegl±darka WWW
13 Summary(pt_BR): O links é um browser para modo texto, similar ao lynx
14 Summary(ru):    ôÅËÓÔÏ×ÙÊ WWW ÂÒÏÕÚÅÒ ÔÉÐÁ Lynx
15 Summary(uk):    ôÅËÓÔÏ×ÉÊ WWW ÂÒÏÕÚÅÒ ÔÉÐÕ Lynx
16 Name:           links2
17 %define pre     pre20
18 # XXX: stop using "pre" in Version after 2.1 release!
19 Version:        2.1%{pre}
20 Release:        2
21 Epoch:          1
22 License:        GPL v2
23 Group:          Applications/Networking
24 Source0:        http://links.twibright.com/download/links-%{version}.tar.bz2
25 # Source0-md5:  5bdee0eb06cf3fb1cf2b6cd73def47bf
26 Source1:        %{name}.desktop
27 Source2:        %{name}.1.pl
28 Source3:        %{name}.png
29 Source4:        glinks.desktop
30 Patch0:         %{name}-links-g_if_glinks.patch
31 Patch1:         %{name}-ac25x.patch
32 Patch2:         %{name}-reallyquit.patch
33 Patch3:         %{name}-img.patch
34 Patch4:         %{name}-convert-old-bookmarks.patch
35 Patch5:         %{name}-cookies-save.patch
36 Patch6:         %{name}-pl-update.patch
37 Patch7:         %{name}-config-dirs.patch
38 Patch8:         %{name}-gzip_fallback.patch
39 Patch9:         %{name}-js-Date-getTime.patch
40 Patch10:        %{name}-js-submit-nodefer.patch
41 Patch11:        %{name}-segv.patch
42 #Patch15:       %{name}-home_etc.patch
43 URL:            http://links.twibright.com/
44 BuildRequires:  autoconf
45 BuildRequires:  automake
46 %{?with_javascript:BuildRequires:       bison}
47 %{?with_javascript:BuildRequires:       flex}
48 BuildRequires:  gpm-devel
49 BuildRequires:  ncurses-devel >= 5.1
50 BuildRequires:  openssl-devel >= 0.9.7d
51 BuildRequires:  zlib-devel
52 %if %{with graphics}
53 %{?with_fb:BuildRequires:       DirectFB-devel >= 0.9.17}
54 %{?with_sdl:BuildRequires:      SDL-devel >= 1.2.0}
55 BuildRequires:  libjpeg-devel
56 BuildRequires:  libpng-devel
57 BuildRequires:  libtiff-devel
58 %{?with_svga:BuildRequires:     svgalib-devel}
59 %{?with_x:BuildRequires:        xorg-lib-libX11-devel}
60 %endif
61 Provides:       webclient
62 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63
64 %description
65 Links is a WWW browser, at first look similiar to Lynx, but somehow
66 different:
67
68 - renders tables and frames,
69 - displays colors as specified in current HTML page,
70 - uses drop-down menu (like in Midnight Commander),
71 - can download files in background.
72
73 %{?with_graphics:This version can work in graphical mode.}
74 %{?with_javascript:This version has support for JavaScript.}
75
76 %description -l es
77 Links es un browser WWW modo texto, similar al Lynx. El links muestra
78 tablas, hace baja archivos en segundo plano, y usa conexiones HTTP/1.1
79 keepalive.
80
81 %description -l pl
82 Links jest przegl±dark± WWW, na pierwszy rzut oka podobn± do Lynksa,
83 ale mimo wszystko inn±:
84
85 - renderuje tabelki i ramki,
86 - wy¶wietla kolory zgodnie z definicjami w ogl±danej stronie HTML,
87 - u¿ywa opuszczanego menu (jak w Midnight Commanderze),
88 - mo¿e ¶ci±gaæ pliki w tle.
89
90 %{?with_graphics:Ta wersja mo¿e pracowaæ w trybie graficznym.}
91 %{?with_javascript:Ta wersja obs³uguje JavaScript.}
92
93 %description -l pt_BR
94 Links é um browser WWW modo texto, similar ao Lynx. O Links exibe
95 tabelas, faz baixa arquivos em segundo plano, e usa as conexões
96 HTTP/1.1 keepalive.
97
98 %description -l ru
99 Links - ÜÔÏ ÔÅËÓÔÏ×ÙÊ WWW ÂÒÏÕÚÅÒ, ÎÁ ÐÅÒ×ÙÊ ×ÚÇÌÑÄ ÐÏÈÏÖÉÊ ÎÁ Lynx,
100 ÎÏ ÎÅÓËÏÌØËÏ ÏÔÌÉÞÁÀÝÉÊÓÑ:
101
102 - ÏÔÏÂÒÁÖÁÅÔ ÔÁÂÌÉÃÙ É (ÓËÏÒÏ) ÆÒÅÊÍÙ,
103 - ÐÏËÁÚÙ×ÁÅÔ Ã×ÅÔÁ ËÁË ÕËÁÚÁÎÏ × HTML ÓÔÒÁÎÉÃÅ,
104 - ÉÓÐÏÌØÚÕÅÔ ×ÙÐÁÄÁÀÝÉÅ ÍÅÎÀ (ËÁË × Midnight Commander),
105 - ÍÏÖÅÔ ÚÁÇÒÕÖÁÔØ ÆÁÊÌÙ × ÆÏÎÅ.
106
107 %description -l uk
108 Links - ÃÅ ÔÅËÓÔÏ×ÉÊ WWW ÂÒÏÕÚÅÒ, ÎÁ ÐÅÒÛÉÊ ÐÏÇÌÑÄ ÓÈÏÖÉÊ ÎÁ Lynx, ÁÌÅ
109 ÔÒÏÈɠצÄͦÎÎÉʠצĠÎØÏÇÏ:
110
111 - ×¦ÄÏÂÒÁÖÁ¤ ÔÁÂÌÉæ ÔÁ (ÎÅÚÁÂÁÒÏÍ) ÆÒÅÊÍÉ,
112 - ÐÏËÁÚÕ¤ ËÏÌØÏÒÉ ÑË ×ËÁÚÁÎÏ × HTML ÓÔÏÒ¦Îæ,
113 - ×ÉËÏÒÉÓÔÏ×Õ¤ ×ÉÐÁÄÁÀÞ¦ ÍÅÎÀ (ÑË × Midnight Commander),
114 - ÍÏÖÅ ÚÁ×ÁÎÔÁÖÕ×ÁÔÉ ÆÁÊÌÉ × ÆÏΦ.
115
116 %prep
117 %setup -q -n links-%{version}
118 %{?with_graphics:%patch0 -p1}
119 %patch1 -p1
120 %patch2 -p1
121 %patch3 -p1
122 %patch4 -p1
123 %patch5 -p1
124 %patch6 -p1
125 %patch7 -p1
126 %patch8 -p1
127 %patch9 -p1
128 %patch10 -p1
129 %patch11 -p1
130
131 cd intl
132 ./gen-intl
133
134 %build
135 %{__aclocal}
136 %{__autoconf}
137 %{__autoheader}
138 %{__automake}
139 %configure \
140         --program-suffix=2 \
141         %{?with_graphics:--enable-graphics} \
142         %{?with_javascript:--enable-javascript} \
143         %{!?with_fb:--without-fb} \
144         %{!?with_sdl:--without-sdl} \
145         %{!?with_svga:--without-svgalib} \
146         %{!?with_x:--without-x}
147 %{__make}
148
149 %install
150 rm -rf $RPM_BUILD_ROOT
151 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
152         $RPM_BUILD_ROOT%{_mandir}/pl/man1
153
154 %{__make} install \
155         DESTDIR=$RPM_BUILD_ROOT
156
157 %if %{with graphics}
158 ln -sf links2 $RPM_BUILD_ROOT%{_bindir}/glinks
159 echo ".so links2.1" > $RPM_BUILD_ROOT%{_mandir}/man1/glinks.1
160 echo ".so links2.1" > $RPM_BUILD_ROOT%{_mandir}/pl/man1/glinks.1
161 install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
162 %endif
163
164 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
165 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1/links2.1
166 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
167
168 %clean
169 rm -rf $RPM_BUILD_ROOT
170
171 %files
172 %defattr(644,root,root,755)
173 %doc AUTHORS BUGS ChangeLog README SITES TODO
174 %attr(755,root,root) %{_bindir}/*
175 %{_desktopdir}/*
176 %{_pixmapsdir}/*
177 %{_mandir}/man*/*
178 %lang(pl) %{_mandir}/pl/man*/*
This page took 0.070595 seconds and 3 git commands to generate.