source: projects/specs/trunk/l/lynx/lynx-vl.spec @ 11844

Revision 11844, 7.8 KB checked in by ara_t, 5 years ago (diff)

lynx: update to 2.8.9

Line 
1%define _docdir %{_defaultdocdir}
2
3Summary: A text-based Web browser.
4Summary(ja): テキストベースのウェブブラウザ
5Name: lynx
6Version: 2.8.9
7Release: 1%{?_dist_release}
8License: GPL
9Group: Applications/Internet
10URL: http://lynx.isc.org/
11
12# Source0: http://lynx.isc.org/current/lynx2.8.5dev.7.tar.bz2
13Source0: http://lynx.isc.org/current/lynx%{version}rel.1.tar.bz2
14Source1: lynx.cfg.ja
15
16# Patch0: lynx2-8-3-redhat.patch
17# Patch0: lynx2-8-7-redhat.patch
18# Patch1: lynx2-8-6-telnet.patch
19# Patch2: lynx-284-i18ncfg.patch
20# Patch3: lynx2-8-7-vine.patch
21
22# prompt user before executing command via a lynxcgi link even in advanced mode,
23# as the actual URL may not be shown but hidden behind an HTTP redirect and set
24# TRUSTED_LYNXCGI:none in lynx.cfg to disable all lynxcgi URLs by default
25# [CVE-2008-4690]
26Patch11: lynx-CVE-2008-4690.patch
27
28Patch12: lynx-2.8.9-vine.patch
29
30
31# Requires: indexhtml
32Requires: vine-manual-base
33Provides: webclient
34
35BuildRequires: openssl-devel, ncurses-devel, slang-devel, zlib-devel
36BuildRequires: nkf
37
38Buildroot: %{_tmppath}/%{name}-root
39
40Vendor: Project Vine
41Distribution: Vine Linux
42
43%description
44Lynx is a text-based Web browser. Lynx does not display any images,
45but it does support frames, tables and most other HTML tags. Lynx's
46advantage over graphical browsers is its speed--Lynx starts and exits
47quickly and swiftly displays Web pages.
48
49Install lynx if you would like to try this fast, non-graphical browser
50(you may learn to appreciate its strengths).
51#'
52
53%description -l ja
54lynx はテキストベースのウェブブラウザである。lynx は何のイメージも
55表示しないがフレーム、テーブルそして他の HTML タグをサポートする。
56グラフィカルなブラウザに対する lynx のアドバンテージはスピードである。
57lynx はウェブページを表示するのにすばやく即座に開始したり終了したりする。
58
59この速い、グラフィカルでないブラウザを試したければインストールしなさい。
60(その長所のよさがわかるであろう)
61
62
63%prep
64%setup -q -n lynx%{version}rel.1
65# %patch0 -p1 -b .rh
66# %patch1 -p0 -b .telnet
67# %patch2 -p1 -b .i18ncfg
68# %patch3 -p1 -b .vine
69%patch11 -p1 -b .CVE-2008-4690
70%patch12 -p1 -b .vine
71
72perl -pi -e "s,^HELPFILE:.*,HELPFILE:file://localhost%{_docdir}/lynx-%{version}/lynx_help/lynx_help_main.html,g" lynx.cfg
73perl -pi -e "s,^DEFAULT_INDEX_FILE:.*,DEFAULT_INDEX_FILE:http://www.google.com/,g" lynx.cfg
74nkf -w -Lu --overwrite docs/README.jp
75
76%build
77export CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
78%configure --libdir=/etc \
79  --with-screen=slang --enable-warnings \
80  --enable-default-colors --enable-externs \
81  --enable-internal-links --enable-nsl-fork \
82  --enable-persistent-cookies --enable-prettysrc \
83  --disable-font-switch --enable-source-cache \
84  --enable-kbd-layout --with-zlib \
85  --enable-charset-choice --enable-file-upload \
86  --enable-cgi-links --enable-read-eta \
87  --enable-addrlist-page --enable-cjk \
88  --enable-justify-elts --enable-scrollbar \
89  --enable-libjs --enable-cgi-links --enable-nls \
90  --with-ssl=/usr
91make
92
93%install
94rm -rf %{buildroot}
95%makeinstall mandir=%{buildroot}%{_mandir}/man1 libdir=%{buildroot}/etc
96# Install Lang dependent resources
97# install -m444 %{SOURCE1} %{buildroot}/etc/lynx.cfg.ja
98
99mkdir -p %{buildroot}%{_datadir}/applications
100cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
101[Desktop Entry]
102Name=Lynx
103Name[ja]=Lynx
104Type=Application
105Comment=Text based WWW browser
106Comment[ja]=テキストベースWWWブラウザ
107Exec=lynx
108Terminal=true
109Categories=Network;
110EOF
111
112%{find_lang} %{name}
113
114# compress huge files in docs
115gzip --best --force docs/CHANGES2*
116# eliminate executable bit in %doc
117find samples/ -type f -perm +111 | xargs chmod -x
118
119%clean
120rm -rf %{buildroot}
121
122%files -f %{name}.lang
123%defattr(-,root,root)
124%doc docs README INSTALLATION samples
125%doc test lynx.hlp lynx_help
126%doc COPYING CHANGES PROBLEMS
127%{_bindir}/lynx
128%{_datadir}/applications/%{name}.desktop
129%{_mandir}/*/*
130%config %{_sysconfdir}/lynx.cfg
131#%lang(ja) %config %{_sysconfdir}/lynx.cfg.ja
132
133
134%changelog
135* Mon Nov 14 2016 Toshiaki Ara <ara_t@384.jp> 2.8.9-1
136- update to 2.8.9
137- drop old patches (0 to 3)
138- add new patches (11, 12)
139
140* Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.7-4
141- rebuild with openssl-1.0.2
142
143* Tue Nov 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.7-3
144- change location of desktop file
145
146* Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.7-2
147- rebuild with VineSeed environment
148
149* Wed Sep 14 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.7-1
150- new upstream release
151- update patches
152- change R:indexhtml -> R:vine-manual-base
153
154* Sun Feb 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.6-2
155- rebuild with openssl-1.0.0c
156
157* Sat Jul 26 2008 Shu KONNO <owa@bg.wakwak.com> 2.8.6-1vl5
158- applied new versioning policy and spec in utf-8
159
160* Mon Dec 25 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.6-0vl3
161- rebuild for Vine 4.0/VineSeed (0vl2 is exist in Plus 3.x)
162
163* Sun Dec 17 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.6-0vl2
164- rebuild for Vine 4.0/VineSeed
165- update patch3
166
167* Mon Dec 11 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.6-0vl1
168- new upstream release with security fix (CVE-2005-3120)
169
170* Tue Jan 08 2002 Toru Sagami <sagami@vinelinux.org> 2.8.5-0vl1
171- 2.8.5dev.7.tar.gz2
172- BuildRequires: slang-devel, zlib-devel
173
174* Fri Dec 28 2001 Toru Sagami <sagami@vinelinux.org>
175- 2.8.4pre.5.tar.bz2
176
177* Mon Sep 03 2001 Toru Sagami <sagami@vinelinux.org>
178- 2.8.4-7vl5: eliminate executable bit in %%doc
179
180* Mon Jul 16 2001 <sagami@vinelinux.org>
181- 2.8.4-7vl4: updated to 2.8.4pre.5
182- rebuilt with openssl-0.9.6b
183- compress huge CHANGES* files in docs/
184
185* Sun Jul 08 2001 <sagami@vinelinux.org>
186- 2.8.4-7vl3: updated to 2.8.4pre.3
187- %%{find_lang}, added some documents
188- use ja.po derived from source
189
190* Wed Jan 31 2001 sagami@vinelinux.org
191- fixed: default index.html location
192
193* Fri Jan 12 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
194- 2.8.4-7vl1: based on Rawhide 2.8.4-7
195
196* Mon Sep 6 1999 Norihito Ohmori <ohmori@flatout.org>
197- ja.po typo fix
198
199* Wed Aug 25 1999 Norihito Ohmori <ohmori@flatout.org>
200- Help file position in lynx.cfg bug fix.
201
202* Tue Jul 20 1999 Norihito Ohmori <ohmori@flatout.org>
203- ja.po fix
204
205* Mon Jun 28 1999 Norihito Ohmori <ohmori@flatout.org>
206- added ja.po (imcomplete).
207- use kterm in lynx.wmconfig
208- added Japanese summary and description
209- change for Vine
210- change default CHARSET to Japanese(EUC).
211
212* Tue Jun 15 1999 Bill Nottingham <notting@redhat.com>
213- update to 2.8.2
214
215* Mon Mar 29 1999 Bill Nottingham <notting@redhat.com>
216- apply some update patches from the lynx folks
217- set user's TEMP dir to their home dir to avoid /tmp races
218
219* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
220- auto rebuild in the new build environment (release 10)
221
222* Wed Feb 24 1999 Bill Nottingham <notting@redhat.com>
223- return of wmconfig
224
225* Mon Nov 30 1998 Bill Nottingham <notting@redhat.com>
226- create cookie file 0600
227
228* Fri Nov  6 1998 Bill Nottingham <notting@redhat.com>
229- update to 2.8.1rel2
230
231* Thu Oct 29 1998 Bill Nottingham <notting@redhat.com>
232- build for Raw Hide (slang-1.2.2)
233
234* Sat Oct 10 1998 Cristian Gafton <gafton@redhat.com>
235- 2.8.1pre9
236- strip binaries
237
238* Mon Oct 05 1998 Cristian Gafton <gafton@redhat.com>
239- updated to lynx2.8.1pre.7.tar.gz
240
241* Fri May 08 1998 Prospector System <bugs@redhat.com>
242- translations modified for de, fr, tr
243
244* Mon May 04 1998 Cristian Gafton <gafton@redhat.com>
245- upgraded to 2.8rel3
246- fixed mailto: buffer overflow (used Alan's patch)
247
248* Fri Mar 20 1998 Cristian Gafton <gafton@redhat.com>
249- updated to 2.8
250- added buildroot
251
252* Tue Jan 13 1998 Erik Troan <ewt@redhat.com>
253- updated to 2.7.2
254- enabled lynxcgi
255
256* Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
257- updated from 2.6 to 2.7.1
258- moved /usr/lib/lynx.cfg to /etc/lynx.cfg
259- build with slang instead of ncurses
260- made default startup file be file:/usr/doc/HTML/index.html
261
Note: See TracBrowser for help on using the repository browser.