lynx-vl.spec 7.8 KB

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