lynx-vl.spec 7.1 KB

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