w3m-el-vl.spec 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. %define _noVersionedDependencies 1
  2. %define _libdir %{_prefix}/lib
  3. %define cvs 1
  4. # from (emacs-w3m-version) in w3m.el
  5. %define origver 1.4.437
  6. %define origname w3m
  7. %define rel 1
  8. %define cvsdate 20110421
  9. Summary: an simple interface program of w3m, which works on Emacsen
  10. Summary(ja): Emacsen 用の w3m インタフェースプログラム
  11. Name: %{origname}-el
  12. Version: %{origver}
  13. %if %{cvs}
  14. Release: %{rel}.cvs%{cvsdate}%{?_dist_release}
  15. %else
  16. Release: %{rel}%{?_dist_release}
  17. %endif
  18. URL: http://emacs-w3m.namazu.org/
  19. %if %{cvs}
  20. Source0: emacs-%{origname}-%{origver}cvs%{cvsdate}.tar.gz
  21. %else
  22. Source0: http://emacs-w3m.namazu.org/emacs-%{origname}-%{origver}.tar.gz
  23. %endif
  24. Source1: %{origname}-install.sh
  25. Source2: %{origname}-remove.sh
  26. Source3: %{origname}-init.el
  27. %define w3m_info_list \\\
  28. emacs-w3m-ja.info \\\
  29. emacs-w3m.info
  30. Patch10: %{origname}-icon-directory.diff
  31. License: Freely distributable
  32. Group: Applications/Editors/Emacs
  33. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  34. BuildArch: noarch
  35. Requires(post): emacsen emacsen-common
  36. Requires(post): autoconf
  37. Requires(post): apel flim w3m
  38. ##Requires(post): texinfo tetex
  39. BuildRequires: w3m
  40. BuildRequires: emacs
  41. BuildRequires: texinfo
  42. BuildRequires: texlive
  43. Vendor: Project Vine
  44. Distribution: Vine Linux
  45. Packager: shaolin
  46. %description
  47. a simple Emacs interface of w3m
  48. This package contains a interface program of w3m, which is a pager
  49. with WWW capability. It can be used as lightweight WWW browser on emacsen.
  50. This is also known as emacs-w3m. http://emacs-w3m.namazu.org/
  51. %description -l ja
  52. w3m を Emacsen 上で動作させるインターフェースです。
  53. このパッケージは、w3m のインターフェースと WWW ページャを含みます。
  54. Emacsen 上で WWW ブラウザとして動作します。
  55. emacs-w3m の名称で知られています。http://emacs-w3m.namazu.org/
  56. を参照下さい。
  57. Emacs/XEmacs 起動時に以下の設定ファイルを読み込みます。
  58. M-x w3m で起動します。
  59. /etc/emacs-??.?/site-start.d/53w3m-init.el
  60. /etc/xemacs-??.?.??/site-start.d/53w3m-init.el
  61. ユーザー単位で設定ファイルに変更を加えたい場合は、上記設定ファイルを
  62. ~/ へコピーして ~/.emacs.my.el から読み込む等してください。
  63. %prep
  64. %if %{cvs}
  65. %setup -n emacs-%{origname}-%{origver}cvs%{cvsdate}
  66. %else
  67. %setup -n emacs-%{origname}-%{origver}
  68. %endif
  69. %patch10 -p1
  70. %build
  71. autoconf
  72. chmod 755 ./configure*
  73. ./configure --prefix=%{_prefix} --infodir=%{_infodir}
  74. rm -f config.cache
  75. # create info files
  76. make info
  77. %install
  78. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  79. [ "${RPM_BUILD_ROOT}" != "/" ] && %__mkdir_p ${RPM_BUILD_ROOT}
  80. %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
  81. %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/attic
  82. %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/shimbun
  83. %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/doc
  84. %__mkdir_p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/install
  85. %__mkdir_p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/remove
  86. %__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/%{origname}-el
  87. %__mkdir_p ${RPM_BUILD_ROOT}%{_infodir}
  88. #
  89. # install el files et al
  90. #
  91. install -m 644 *.el ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
  92. install -m 644 attic/*.el \
  93. ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/attic
  94. install -m 644 shimbun/*.el \
  95. ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/shimbun
  96. install -m 644 icons30/*.xpm ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/w3m-el
  97. install -m 644 Makefile* aclocal.m4 config* install-sh mkinstalldirs %{SOURCE3} \
  98. ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
  99. install -m 755 config.status configure \
  100. ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
  101. install -m 755 doc/* \
  102. ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/doc
  103. #
  104. # install info files
  105. #
  106. make install-info infodir=%{buildroot}%{_infodir}
  107. #
  108. # install script( bytecompile el and install elc , remove )
  109. #
  110. %_installemacsenscript %{origname} %{SOURCE1}
  111. %_removeemacsenscript %{origname} %{SOURCE2}
  112. %post
  113. #
  114. # bytecompile and install
  115. #
  116. if [ "$1" = 2 ]; then
  117. %_emacsenPackageRemove %{origname}
  118. fi
  119. %_addemacsenlist %{origname}
  120. %_emacsenPackageInstall %{origname}
  121. for i in %{w3m_info_list}; do
  122. if [ -f %{_infodir}/${i}.gz ]; then
  123. /sbin/install-info %{_infodir}/${i}.gz %{_infodir}/dir \
  124. --section="Emacs"
  125. fi
  126. done
  127. %preun
  128. if [ "$1" = 0 ]; then
  129. %_emacsenPackageRemove %{origname}
  130. %_removeemacsenlist %{origname}
  131. for i in %{w3m_info_list}; do
  132. if [ -f %{_infodir}/${i}.gz ]; then
  133. /sbin/install-info --delete %{_infodir}/${i}.gz %{_infodir}/dir \
  134. --section="Emacs"
  135. fi
  136. done
  137. fi
  138. %clean
  139. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  140. %files
  141. %defattr(-,root,root)
  142. #%doc COPYING ChangeLog FAQ* README* TIPS*
  143. %doc COPYING ChangeLog README*
  144. %{_datadir}/pixmaps/w3m-el
  145. %{_datadir}/emacs/site-lisp/%{origname}/
  146. %{_libdir}/emacsen-common/packages/install/%{origname}
  147. %{_libdir}/emacsen-common/packages/remove/%{origname}
  148. %{_infodir}/*.info*
  149. %changelog
  150. * Thu Apr 21 2011 IWAI, Masaharu <iwai@alib.jp> 1.4.437-1.cvs20110421
  151. - new upstream cvs head
  152. - add Requires: apel: <BTS:VineLinux:1014>
  153. - replace BuildRequires: tetex to texlive
  154. - drop defining prereq_ge macro: using Requires(post) tag
  155. - update Packager syntax
  156. * Fri Feb 19 2010 IWAI, Masaharu <iwai@alib.jp> 1.4.148-7.cvs20100124
  157. - update %%files: politely for info files
  158. * Thu Feb 4 2010 IWAI, Masaharu <iwai@alib.jp> 1.4.148-6.cvs20100124
  159. - drop info files: Source20-26
  160. - create info files in %%build section
  161. - update %%install section: using "install-info" target for Makefile
  162. - add BuildRequires: texinfo tetex
  163. * Mon Jan 25 2010 IWAI, Masaharu <iwai@alib.jp> 1.4.148-5.cvs20100124
  164. - update from CVS
  165. - update w3m-install.sh
  166. - change target for Makefile: 'make lisp' and 'make install-lisp'
  167. - drop no-make-info patch (Patch20)
  168. - copying doc directory
  169. * Sat Jan 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.4.148-4
  170. - added %%patch20 -p1 -b .info in %%setup
  171. - In fact, for 1.4.148-3, emacs-w3m-1.4.148-no-make-info.patch was NOT applied
  172. - updated emacs-w3m-1.4.148-no-make-info.patch
  173. - dropped doc/Makefile from AC_OUTPUT in configure.in
  174. - do not copy doc/* files (info)
  175. - updated w3m-install.sh
  176. - removed autom4te.cache directory
  177. * Fri Dec 04 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.4.148-3
  178. - dropped Requires(post): texinfo tetex
  179. - applied emacs-w3m-1.4.148-no-make-info.patch
  180. - contained info files
  181. - modified w3m-install.el
  182. * Sun Jul 19 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.4.148-2
  183. - s/BuildPreReq/BuildRequires/
  184. - added Requires(post): texinfo
  185. - added Requires(post): tetex
  186. - added BuildRequires: emacs
  187. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.148-1vl5
  188. - applied new versioning policy, spec in utf-8
  189. - added %%define _libdir %%{_prefix}/lib
  190. * Sun Jan 14 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.148-0vl2
  191. - update(CVS)
  192. - Modded w3m-install.sh(mv w3m-bitmap.el w3m-bitmap.el.BAK)
  193. * Wed Jan 10 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.148-0vl1
  194. - update(CVS)
  195. - use autoconf
  196. - Modded w3m-install.sh(rm -rm %%{ELDIR}/*.elc, and exec autoconf)
  197. - w3m-bitmap.el is rename on compile(oldfile)
  198. * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.4-0vl3
  199. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  200. * Tue Sep 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.4-0vl2
  201. - modified w3m-{install,remove}.sh
  202. * Tue Sep 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.4-0vl1
  203. - new upstream release
  204. * Mon Dec 13 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.3-0vl2
  205. - rebuilt for flim-1.14.7
  206. * Wed Sep 1 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.3-0vl1
  207. - updated to new upstream version
  208. - patch for Vinelinux Errata3x
  209. * Thu Jul 15 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.2-0vl1
  210. - updated to new upstream version
  211. * Thu Jul 8 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.1-0vl1
  212. - updated to new upstream version
  213. - add %{description} -l ja
  214. * Tue Jun 29 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.4.1-0vl0.rc1
  215. - updated to new upstream version(1.4.1rc1)
  216. - Modded w3m-install.sh for XEmacs(add --with-addpath=${APELPATH})
  217. - Use icons30
  218. * Sat Jul 19 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.3.6-0vl1
  219. - updated to new upstream version
  220. * Sun Jul 13 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.3.5-0vl2
  221. - Modified w3m-remove.sh
  222. * Wed Jul 9 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.3.5-0vl1
  223. - updated to new upstream version
  224. - Add %{SOURCE3}
  225. * Tue Dec 10 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.3-0vl1
  226. - updated to new upstream version
  227. * Fri Sep 13 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.1-0vl1
  228. - updated to new upstream version
  229. * Mon Mar 18 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.6-0vl1
  230. - updated to new upstream version
  231. * Sat Jan 19 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.4-0vl1
  232. - updated to new upstream version
  233. * Wed Jan 02 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.3-0vl2
  234. - installing shimbun directory under w3m directory is no good,
  235. especially for xemacs. Now w3m-{install,remove}.sh rewritten to
  236. conventional style.
  237. * Sun Dec 30 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.3-0vl1
  238. - updated to new upstream release
  239. * Sun Dec 30 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.2-0vl3
  240. - w3m-install.sh modified a little (echo messages, emu directory et al)
  241. - added Patch10 to set default icon directory (if null)
  242. * Sun Dec 30 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.2-0vl2
  243. - PreReq flim-el -> flim
  244. - spec file cleaned up
  245. * Sun Dec 9 2001 Kazuhisa TAKEI<takei@vinelinux.org> 1.2.2-0vl1
  246. - add %doc
  247. - upstream upgrade
  248. * Sun Dec 9 2001 Kazuhisa TAKEI<takei@vinelinux.org>
  249. - initial package