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

Revision 521, 6.7 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

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