w3m-vl.spec 13 KB

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