[521] | 1 | %define _docdir %{_defaultdocdir} |
---|
| 2 | |
---|
| 3 | Summary: A text-based Web browser. |
---|
| 4 | Summary(ja): テキストベースのウェブブラウザ |
---|
| 5 | Name: lynx |
---|
| 6 | Version: 2.8.6 |
---|
| 7 | Release: 1%{?_dist_release} |
---|
| 8 | License: GPL |
---|
| 9 | Group: Applications/Internet |
---|
| 10 | URL: http://lynx.isc.org/ |
---|
| 11 | # Source0: http://lynx.isc.org/current/lynx2.8.5dev.7.tar.bz2 |
---|
| 12 | Source0: http://lynx.isc.org/current/lynx2.8.6.tar.bz2 |
---|
| 13 | Source1: lynx.cfg.ja |
---|
| 14 | # Patch0: lynx2-8-3-redhat.patch |
---|
| 15 | Patch0: lynx2-8-6-redhat.patch |
---|
| 16 | Patch1: lynx2-8-6-telnet.patch |
---|
| 17 | Patch2: lynx-284-i18ncfg.patch |
---|
| 18 | Patch3: lynx2-8-6-vine.patch |
---|
| 19 | Requires: indexhtml |
---|
| 20 | Provides: webclient |
---|
| 21 | BuildRequires: openssl-devel, ncurses-devel, slang-devel, zlib-devel |
---|
| 22 | Buildroot: %{_tmppath}/%{name}-root |
---|
| 23 | Vendor: Project Vine |
---|
| 24 | Distribution: Vine Linux |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | Lynx is a text-based Web browser. Lynx does not display any images, |
---|
| 28 | but it does support frames, tables and most other HTML tags. Lynx's |
---|
| 29 | advantage over graphical browsers is its speed--Lynx starts and exits |
---|
| 30 | quickly and swiftly displays Web pages. |
---|
| 31 | |
---|
| 32 | Install 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 |
---|
| 36 | lynx はテキストベースのウェブブラウザである。lynx は何のイメージも |
---|
| 37 | 表示しないがフレーム、テーブルそして他の HTML タグをサポートする。 |
---|
| 38 | グラフィカルなブラウザに対する lynx のアドバンテージはスピードである。 |
---|
| 39 | lynx はウェブページを表示するのにすばやく即座に開始したり終了したりする。 |
---|
| 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 |
---|
| 50 | perl -pi -e "s,^HELPFILE:.*,HELPFILE:file://localhost%{_docdir}/lynx-%{version}/lynx_help/lynx_help_main.html,g" lynx.cfg |
---|
| 51 | perl -pi -e "s,^DEFAULT_INDEX_FILE:.*,DEFAULT_INDEX_FILE:http://www.google.com/,g" lynx.cfg |
---|
| 52 | |
---|
| 53 | %build |
---|
| 54 | export 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 |
---|
| 68 | make |
---|
| 69 | |
---|
| 70 | %install |
---|
| 71 | rm -rf %{buildroot} |
---|
| 72 | %makeinstall mandir=%{buildroot}%{_mandir}/man1 libdir=%{buildroot}/etc |
---|
| 73 | # Install Lang dependent resources |
---|
| 74 | install -m444 %{SOURCE1} %{buildroot}/etc/lynx.cfg.ja |
---|
| 75 | |
---|
| 76 | mkdir -p %{buildroot}%{_sysconfdir}/X11/applnk/Internet |
---|
| 77 | cat > %{buildroot}%{_sysconfdir}/X11/applnk/Internet/lynx.desktop <<EOF |
---|
| 78 | [Desktop Entry] |
---|
| 79 | Name=Lynx |
---|
| 80 | Name[ja]=Lynx |
---|
| 81 | Type=Application |
---|
| 82 | Comment=Text based WWW browser |
---|
| 83 | Comment[ja]=テキストベースWWWブラウザ |
---|
| 84 | Exec=lynx |
---|
| 85 | Terminal=true |
---|
| 86 | EOF |
---|
| 87 | |
---|
| 88 | %{find_lang} %{name} |
---|
| 89 | |
---|
| 90 | # compress huge files in docs |
---|
| 91 | gzip --best --force docs/CHANGES2* |
---|
| 92 | # eliminate executable bit in %doc |
---|
| 93 | find samples/ -type f -perm +111 | xargs chmod -x |
---|
| 94 | |
---|
| 95 | %clean |
---|
| 96 | rm -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 | |
---|