lynx-vl.spec 6.7 KB

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