w3m-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. %define __perl_requires %{_rpmconfigdir}/perl.req | grep -v w3mhelp
  2. %define _docdir %{_defaultdocdir}
  3. %define cvsdate 20060815
  4. Summary: A Pager with WWW capability
  5. Summary(ja): World Wide Web に対応したページャ
  6. Name: w3m
  7. Version: 0.5.2
  8. Release: 6%{?_dist_release}
  9. Group: Applications/Internet
  10. License: BSD
  11. URL: http://w3m.sourceforge.net/
  12. Source0: %{name}-%{version}.tar.gz
  13. Source1: w3m.sh
  14. Source2: w3m.csh
  15. Source10: w3m-term
  16. Source11: filter-requires-w3m.sh
  17. Patch10: w3m-0.5.2-ambwidth.patch
  18. Patch11: w3m-0.5.2-bugfix.patch
  19. Requires: perl, openssl >= 0.9, gc >= 6.2
  20. Requires(post,preun): alternatives
  21. Provides: webclient, pager
  22. Obsoletes: w3m-m17n
  23. BuildRequires: openssl-devel >= 0.9
  24. BuildRequires: ncurses-devel
  25. BuildRequires: gc-devel >= 6.2
  26. BuildRequires: sed
  27. BuildRequires: gtk2-devel
  28. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  29. Vendor: Project Vine
  30. Distribution: Vine Linux
  31. Packager: shaolin
  32. # work around for [VineSeed-x86_64:00178]
  33. %define __find_requires %{SOURCE11}
  34. %description
  35. w3m is a pager with WWW capability. It IS a pager, but it can be
  36. used as a text-mode WWW browser. The features of w3m are as follows:
  37. - When reading HTML document, you can follow links and view images
  38. (using external image viewer).
  39. - It has 'internet message mode', which determines the type of document
  40. from header. If the Content-Type: field of the document is text/html,
  41. that document is displayed as HTML document.
  42. - You can change URL description like 'http://hogege.net' in plain text
  43. into link to that URL.
  44. %description -l ja
  45. w3m は,ページャfmをベースに開発された World Wide Web に対応したページャ
  46. です.fm の機能に加えて、w3m の特徴には,次のようなものがあります.
  47. ・WWW 対応なので,HTML の文書を読んでいる時には,その中のリンクを辿った
  48. り,画像を見ることができる.
  49. ・Internet message 表示のためのモードがある.この時,Content-Type: が
  50. text/html の場合は,自動的に HTML の文書として表示する.また,自力で
  51. MIME header のデコードをする.
  52. ・見ている plain text 文書中に URL 表記があった場合,その部分からリンク
  53. をたどることができる.
  54. %package img
  55. Summary: inline image extension support utilities for w3m
  56. Summary(ja): w3m 用インライン画像拡張サポートユーティリティ
  57. Group: Applications/Internet
  58. Requires: %{name} = %{version}-%{release}
  59. %description img
  60. w3m-img provides some utilities to support inline
  61. images for w3m
  62. on terminal emulator in X Window System environments.
  63. %description -l ja img
  64. w3m-img は X 環境のターミナルエミュレータ上の w3m でインライン画像を
  65. 表示するためのユーティリティです。
  66. %prep
  67. %setup -q
  68. %patch10 -p1
  69. %patch11 -p1
  70. find Bonus -type f | \
  71. xargs sed -i -e "s|/usr/local/bin/ruby|/usr/bin/ruby|g;"
  72. %build
  73. %configure \
  74. --enable-japanese=E \
  75. --with-termlib=ncurses \
  76. --enable-image=x11 \
  77. --with-imagelib=gtk2 \
  78. --with-browser=gnome-open \
  79. --with-mailer=gnome-open \
  80. --with-editor=%{_sysbindir}/vi
  81. sed -i -e 's|#define USE_GPM 1|/* #undef USE_GPM */|' config.h
  82. sed -i -e 's|\-lgpm||g' Makefile
  83. make %{?_smp_mflags}
  84. %install
  85. rm -rf %{buildroot}
  86. make install DESTDIR=%{buildroot}
  87. mkdir -p %{buildroot}/etc/profile.d
  88. cp %{SOURCE1} %{buildroot}/etc/profile.d/w3m.sh
  89. cp %{SOURCE2} %{buildroot}/etc/profile.d/w3m.csh
  90. mkdir -p %{buildroot}%{_bindir}
  91. cp %{SOURCE10} %{buildroot}%{_bindir}/w3m-term
  92. chmod +x %{buildroot}%{_bindir}/w3m-term
  93. mkdir -p %{buildroot}%{_mandir}/{man1,ja/man1}
  94. install -p -m 644 doc-jp/w3m.1 %{buildroot}%{_mandir}/ja/man1
  95. install -p -m 644 doc/w3m.1 %{buildroot}%{_mandir}/man1
  96. # dont include duplicated man pages and CVS directory in doc
  97. rm -f doc-jp/w3m.1 doc/w3m.1
  98. find . -type d -name "CVS" | xargs rm -rf
  99. # prepare system-wide preference file
  100. mkdir -p %{buildroot}%{_sysconfdir}/w3m
  101. # prepare applnk
  102. %define applnkdir /etc/X11/applnk/Internet
  103. mkdir -p %{buildroot}/%{applnkdir}
  104. cat > %{buildroot}/%{applnkdir}/%{name}.desktop <<EOF
  105. [Desktop Entry]
  106. Name=%{name}
  107. Type=Application
  108. Comment=A Pager with WWW capability
  109. Comment[ja]=WWW対応ページャ
  110. Exec=w3m-term
  111. Terminal=false
  112. EOF
  113. # eliminate executable bit in %doc
  114. find Bonus/ -type f -perm +111 | xargs -r chmod -x
  115. %clean
  116. rm -rf %{buildroot}
  117. %post
  118. %{_syssbindir}/update-alternatives --install /usr/bin/pager pager /usr/bin/w3m 30
  119. %preun
  120. if [ "$1" = "0" ]; then
  121. %{_syssbindir}/update-alternatives --remove pager /usr/bin/w3m
  122. fi
  123. %files
  124. %defattr(-,root,root)
  125. %doc Bonus ChangeLog NEWS README doc doc-jp
  126. %attr(755,root,root) %config /etc/profile.d/*
  127. %config(missingok) %{applnkdir}/%{name}.desktop
  128. %dir %{_sysconfdir}/w3m
  129. %{_bindir}/w3m*
  130. %exclude %{_libexecdir}/w3m/w3mimgdisplay
  131. %{_libexecdir}/w3m/
  132. %{_datadir}/w3m/
  133. %{_datadir}/locale/*/LC_MESSAGES/*
  134. %{_mandir}/ja/man1/w3m.1*
  135. %{_mandir}/man1/w3m*
  136. %files img
  137. %{_libexecdir}/w3m/w3mimgdisplay
  138. %changelog
  139. * Sun Sep 26 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.5.2-6
  140. - add Patch10 to fix display utf8 ambiguous width characters
  141. (from: http://www.j10n.org/files/w3m-cvs-1.914-ambwidth.patch)
  142. - add Patch11 to fix sudden crash
  143. (from: http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/200708.month/4286.html)
  144. * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.5.2-5
  145. - rebuilt with gcc-4.4.3-3 on ppc
  146. * Tue Feb 2 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.5.2-4
  147. - rebuilt with new toolchain
  148. * Tue Apr 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.2-2
  149. - spec in utf-8
  150. - remove Requires: indexhtml
  151. - set HTTP_HOME to http://vinelinux.org/
  152. - update w3m-term
  153. * Wed Apr 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5.2-1
  154. - new upstream release
  155. - dropped Patch100 (merged into upstream)
  156. * Sun Jun 3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5.1.20060815-0vl6
  157. - rebuilt with new toolchain and environment
  158. * Fri Apr 13 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.5.1.20060815-0vl5
  159. - add Provides: pager
  160. - add Requires(post,preun): alternatives
  161. * Tue Apr 10 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.5.1.20060815-0vl3
  162. - add update-alternatives: pager in %post and %preun scriptlet
  163. * Fri Jan 12 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  164. - 0.5.1.20060815-0vl2
  165. - rebuilt for VineSeed
  166. * Sat Dec 30 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  167. - 0.5.1.20060815-0vl1.1
  168. - add patch100 for fix "inputAnswer()" SSL Certificate Handling Vulnerabilit
  169. * Tue Aug 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp>
  170. - update to cvs snapshot
  171. - use gtk2 for w3m-img instead of gdk-pixbuf
  172. * Sun Jul 23 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.5.1-0vl6
  173. - use filter-requires-w3m.sh as find-requires (rpm's bug?)
  174. * Sat Sep 25 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.5.1-0vl5
  175. - use %%{_docdir}/Vine/index.html as default homepage
  176. * Sun Jul 25 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.5.1-0vl4
  177. - change default editor to %%{_sysbindir}/vi
  178. - use ncurses explicitly as termlib
  179. * Sun Jul 11 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.5.1-0vl3
  180. - fix typo
  181. - add BuildPrereq: gtk+-devel, gdk-pixbuf-devel
  182. * Wed Jul 07 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.1-0vl2
  183. - rebuild without gpm
  184. * Wed May 5 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.1-0vl1
  185. - new upstream release
  186. - Obsoletes: w3m-m17n
  187. * Fri Mar 27 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5-0vl2
  188. - add message catalogs to %%files
  189. * Fri Mar 27 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5-0vl1
  190. - new upstream release
  191. - fix w3mimgdisplay path in w3m-term
  192. * Sun Dec 14 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.2-0vl1
  193. - new upstream release
  194. - split w3mimgdisplay to w3m-img subpackage.
  195. - Requires: gc >= 6.2
  196. * Sat May 31 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.4.1-0vl1
  197. - new upstream release
  198. * Tue Feb 25 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4-0vl1
  199. - new upstream release
  200. * Tue Dec 10 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.2.2-0vl1
  201. - new upstream release.
  202. w3m 0.3.2.2 - 2002-12-06
  203. * security fix: html_quote for img alt attributes
  204. * Fri Nov 28 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.2.1-0vl2
  205. - change default page path to /usr/doc/HTML.
  206. this should be changed to /usr/share/doc in next release.
  207. ( TODO: indexhtml package )
  208. * Wed Nov 27 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.2.1-0vl1
  209. - new upstream release
  210. w3m 0.3.2.1 - 2002-11-27
  211. * security fix: html_quote for frame contents
  212. * backport from w3m 0.3.2+cvs
  213. - fix segmentation fault by large complex table.
  214. [w3m-dev 03371][w3m-dev 03438]
  215. * Wed Nov 6 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.2-0vl1
  216. - new upstream release
  217. w3m 0.3.2 - 2002-11-05
  218. * ~/.netrc: password for ftp
  219. * rc: display_lineinfo: display current line number
  220. * rc: passwd_file: passwd file for HTTP auth
  221. * func: MARK_WORD
  222. * rc: imgsize: obsoleted
  223. * w3m-img for framebuffer merged
  224. * Mon Sep 30 2002 Tomoya TAKA <taka@vinelinux.org> 0.3.1-0vl2
  225. - replace gc with an old version on alpha (Source20)
  226. * Wed Jul 17 2002 IWAI Masaharu <iwai@alib.jp> 0.3.1-0vl1
  227. - upstream release
  228. - coped new configure options
  229. * Sun Apr 21 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.3-0vl2
  230. - fixed configure option ([VineSeed:06372])
  231. - added openssl-devel version in {Build,}Requires
  232. * Mon Mar 18 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.3-0vl1
  233. - updated in sync with upstream 0.3 release
  234. (now w3m-img patch is included in the upstream version)
  235. * Tue Feb 05 2002 Toru Sagami <sagami@vinelinux.org> 0.2.5-0vl1
  236. - w3m-0.2.5 with 0.2.5+cvs-1.302
  237. * Tue Jan 29 2002 Toru Sagami <sagami@vinelinux.org> 0.2.4-0vl2
  238. - eliminate executable bit in %doc
  239. - spec cleanup
  240. * Wed Jan 16 2002 Toru Sagami <sagami@vinelinux.org> 0.2.4-0vl1
  241. - updated to current stable release
  242. * Thu Jan 03 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.2.3.2-0vl1
  243. - updated to new upstream release
  244. - FIXME: system-wide /etc/w3m/w3mconfig should be prepared. Anyone? :)
  245. * Fri Sep 28 2001 <masato@nets.ce.hiroshima-cu.ac.jp>
  246. - 0.2.1-0vl9
  247. - added sparc patch
  248. * Thu Aug 23 2001 <shom@vinelinux.org>
  249. - 0.2.1-0vl8: add w3m-term script
  250. * Mon Aug 06 2001 <sagami@vinelinux.org>
  251. - 0.2.1-0vl7: added imlib-devel ncurses-devel for BuildPreReq
  252. - update img patch to version 1.10 from 1.9
  253. * Mon Aug 6 2001 Jun Nishii <jun@vinelinux.org> 0.2.1-0vl6
  254. - added img patch
  255. * Mon Jul 16 2001 <sagami@vinelinux.org>
  256. - 0.2.1-0vl5: spec file clean up
  257. - openssl-devel for BuildPrereq, not openssl
  258. - install more sophisticated w3m.sh w3m.csh with any %%{_docdir} definition
  259. * Mon Jul 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  260. - 0.2.1-0vl4
  261. - rebuilt with openssl-0.9.6b
  262. * Sun Jun 23 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  263. - 0.2.1-0vl3
  264. - security fixes (http://www.lac.co.jp/security/snsadv/32.html)
  265. * Sat Jun 09 2001 <sagami@vinelinux.org>
  266. - 0.2.1-0vl2: minor spec fixes(URL, License and etc.)
  267. - actually rebuilt with ncurses5 (i386)
  268. * Sat Mar 24 2001 Yoichi Imai <yoichi@silver-forest.com>
  269. - 0.2.1-0vl1
  270. * Wed Dec 20 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  271. - 0.1.10-0vl6
  272. - use better macros
  273. - rebuilt with ncurses5
  274. * Thu Sep 21 2000 Jun Nishii <jun@vinelinux.org>
  275. - w3m-0.1.10-0vl5
  276. - use applnk instead of wmconfig
  277. - use openssl
  278. * Thu Jul 27 2000 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  279. - w3m-0.1.10-0vl4
  280. - fix typo in w3m.csh and w3m.wmconfig
  281. * Sun Jul 09 2000 Toru Sagami <czs14350@nifty.ne.jp>
  282. - w3m-0.1.10-0vl3
  283. - provide default HTTP_HOME in /etc/profile.d
  284. * Fri Jul 07 2000 Toru Sagami <czs14350@nifty.ne.jp>
  285. - Provides: webclient, Requires: indexhtml (capability of lynx)
  286. - added w3m.wmconfig
  287. - give them(who?) RPM_OPT_FLAGS(what?)
  288. - dont include duplicated man pages and CVS directory in doc
  289. * Wed Jun 21 2000 Jun Nishii <jun@vinelinux.org>
  290. - 0.1.10-0vl1
  291. * Sat Jan 22 2000 Yoichi Imai <yoichi@silver-forest.com>
  292. - fix spec file
  293. * Sat Jan 22 2000 Yoichi Imai <yoichi@silver-forest.com>
  294. - updated from 0.1.4 to 0.1.6
  295. * Thu Jan 13 2000 Yoichi Imai <yoichi@silver-forest.com>
  296. - updated from 991203 to 0.1.4
  297. * Fri Dec 03 1999 Yoichi Imai <yoichi@silver-forest.com>
  298. - updated from 991028 to 991203
  299. * Sat Oct 30 1999 Yoichi Imai <bonaim@mutt.freemail.ne.jp>
  300. - updated from 990820 to 991028
  301. * Tue Aug 26 1999 Ryo Hattori <ryoh@vs01.vaio.ne.jp>
  302. - updated from 990716 to 990820
  303. * Wed Aug 11 1999 Ryo Hattori <ryoh@vs01.vaio.ne.jp>
  304. - initial Release to VinePlus