w3m-vl.spec 12 KB

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