w3m-el-vl.spec 9.7 KB

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