semi-vl.spec 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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 origver 1.14.6
  4. %define origname semi
  5. Summary: library to provide MIME feature for Emacsen
  6. Summary(ja): Emacsen 用の MIME の機能を提供するライブラリ
  7. Name: %{origname}
  8. Version: %{origver}
  9. Release: 2%{?_dist_release}
  10. Source0: ftp://ftp.m17n.org/pub/mule/%{origname}/%{origname}-%{origver}.tar.gz
  11. Source1: %{origname}-install.sh
  12. Source2: %{origname}-remove.sh
  13. Source3: %{origname}-init.el
  14. Patch10: SEMI-CFG.emacs.patch
  15. Patch20: semi-info.patch
  16. Patch21: semi-1.14.3-makeinfo.patch
  17. License: 1993-1999 Free Software Foundation, Inc., Dan Rich, Morioka Tomohiko, Kobayashi Shuhei
  18. Group: Applications/Editors/Emacs
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. BuildArch: noarch
  21. Requires(post): emacsen
  22. BuildRequires: emacsen-common, flim
  23. %prereq_ge emacsen-common
  24. %prereq_ge flim
  25. Obsoletes: %{origname}-el
  26. Obsoletes: tm, wemi-xemacs
  27. Vendor: Project Vine
  28. Distribution: Vine Linux
  29. Packager: MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  30. %description
  31. This package contains following .el files for emacsen:
  32. SEMI %{origver}
  33. SEMI is a library to provide MIME feature for GNU Emacs.
  34. SEMI has such features as MIME message viewing and composing.
  35. Note: in order to rebuild this SRPM package, you need emacsen,
  36. emacsen-common and flim installed.
  37. %description -l ja
  38. このパッケージは Emacsen 上で使用する
  39. 以下の elisp を収めています.
  40. SEMI %{origver}
  41. SEMI は GNU Emacs に MIME の機能を提供するライブラリです.
  42. MIME メッセージを読んだり,作成したり出来るようになります.
  43. 注意:この SRPM パッケージを rebuild するには、emacsen と emacsen-common,
  44. そして flim がインストールされている必要があります.
  45. %prep
  46. %__rm -rf ${RPM_BUILD_DIR}/%{origname}-%{origver}
  47. %setup -n %{origname}-%{origver}
  48. %patch10 -p1
  49. %patch20 -p1
  50. %patch21 -p1
  51. %build
  52. %__make info
  53. %install
  54. [ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
  55. [ "${RPM_BUILD_ROOT}" != "/" ] && %__mkdir_p ${RPM_BUILD_ROOT}
  56. %__mkdir_p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{origname}
  57. %__mkdir_p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install
  58. %__mkdir_p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove
  59. #
  60. # install el files
  61. #
  62. %__cp Makefile SEMI-* *.el %{SOURCE3} \
  63. ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
  64. #
  65. # install script( bytecompile el and install elc , remove )
  66. #
  67. %_installemacsenscript %{origname} %{SOURCE1}
  68. %_removeemacsenscript %{origname} %{SOURCE2}
  69. #
  70. # install info file
  71. #
  72. %__mkdir_p ${RPM_BUILD_ROOT}%{_infodir}
  73. %__install -m 644 *.info ${RPM_BUILD_ROOT}%{_infodir}
  74. %post
  75. #
  76. # bytecompile and install
  77. #
  78. if [ "$1" = 2 ]; then
  79. %_emacsenPackageRemove %{origname}
  80. fi
  81. %_addemacsenlist %{origname}
  82. %_emacsenPackageInstall %{origname}
  83. /sbin/install-info %{_infodir}/mime-ui-ja.info.gz %{_infodir}/dir \
  84. --section="MIME Interface"
  85. /sbin/install-info %{_infodir}/mime-ui-en.info.gz %{_infodir}/dir \
  86. --section="MIME Interface"
  87. %preun
  88. if [ "$1" = 0 ]; then
  89. %_emacsenPackageRemove %{origname}
  90. %_removeemacsenlist %{origname}
  91. /sbin/install-info --delete %{_infodir}/mime-ui-ja.info %{_infodir}/dir \
  92. --section="MIME Interface"
  93. /sbin/install-info --delete %{_infodir}/mime-ui-en.info %{_infodir}/dir \
  94. --section="MIME Interface"
  95. fi
  96. %triggerpostun -- semi-el
  97. %_emacsenPackageInstall %{origname}
  98. %clean
  99. [ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
  100. %__rm -rf ${RPM_BUILD_DIR}/semi-%{origver}
  101. %files
  102. %defattr(-,root,root)
  103. %doc ChangeLog NEWS README* TODO VERSION
  104. %doc *.sgml *.texi
  105. %{_infodir}/mime-ui*.info*
  106. %{_datadir}/emacs/site-lisp/%{origname}/
  107. %{emacsen_pkgdir}/install/%{name}
  108. %{emacsen_pkgdir}/remove/%{name}
  109. %changelog
  110. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.14.6-2
  111. - rebuilt
  112. * Sun Aug 3 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.6-1
  113. - applied new versioning policy
  114. - spec in UTF-8
  115. * Fri Dec 7 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.6-0vl7
  116. - rebuild
  117. * Wed Jan 10 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.14.6-0vl6
  118. - rebuild
  119. * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.6-0vl5
  120. - fixed Group name correctly... <BTS:VineLinux:163>
  121. * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.6-0vl4
  122. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  123. - s/Copyright/License/
  124. * Mon Dec 13 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.14.6-0vl3
  125. - rebuild for flim-1.14.7
  126. - add comment in semi-init.el(for use c-sig)
  127. * Wed Dec 24 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.6-0vl1
  128. - updated to new upstream release 1.14.6 (Maruoka)
  129. * Mon Jun 09 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.5-0vl2
  130. - increased release number for the new apel release
  131. * Sat Dec 07 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.5-0vl1
  132. - updated to new upstream release 1.14.5 (Awara-Onsen)
  133. * Fri Jan 11 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.3-0vl9
  134. - Obsoletes: semi-el now, instead of Conflicts:
  135. - added %%triggerpostun -- semi-el
  136. * Fri Dec 28 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.3-0vl8
  137. - package name changed semi-el -> semi again
  138. - added Source3 for forthcoming site-start mechanism
  139. * Sun Dec 09 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.3-0vl7
  140. - info patch merged again :)
  141. * Fri Dec 07 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.3-0vl6
  142. - modified/fixed spec file (BuildPreReq, Obsoletes and %%description)
  143. - use better macros again :)
  144. - info files and documentations available again :)
  145. * Mon Jul 23 2001 Kazuhisa TAKEI <takei@vinelinux.org>
  146. - requires: emacsen-common -> prereq
  147. * Wed Jul 18 2001 Kazuhisa TAKEI <takei@vinelinux.org>
  148. - emacsenize
  149. * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  150. - 1.14.3-0vl2
  151. - back to Requires: emacs = 20.7 -> emacs >= 20.7 (for emacs-beta)
  152. * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  153. - 1.14.3-0vl1
  154. - updated to apel-10.3, flim-1.14.3, semi-1.14.3, emh-1.14.1
  155. * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji
  156. - 1.13.7-8
  157. - added %define _noVersionedDependencies 1
  158. * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji
  159. - 1.13.7-7
  160. - modified %files section to handle compressed man page(s)
  161. * Wed May 10 2000 MATSUBAYASHI 'Shaolin' Kohji
  162. - 1.13.7-6
  163. - apel updated to 10.2
  164. * Mon Jan 24 2000 MATSUBAYASHI 'Shaolin' Kohji
  165. - 1.13.7-5
  166. - added patch (see emacs-mime-ja: 00303) to format texinfo correctly
  167. * Thu Dec 24 1999 MATSUBAYASHI 'Shaolin' Kohji
  168. - 1.13.7-4
  169. - updated in sync with apel-10.0 / clime-1.13.6 release
  170. * Wed Dec 1 1999 MATSUBAYASHI 'Shaolin' Kohji
  171. - 1.13.7-3
  172. - change Group to Applications/Editors/EmacsLisp
  173. * Mon Nov 29 1999 MATSUBAYASHI 'Shaolin' Kohji
  174. - 1.13.7-2
  175. - added patches (see emacs-mime-ja:00183, emacs-mime-ja:00184)
  176. - now emh-1.10.1 and rmail-mime-1.13.0 are also included
  177. - documentation files are properly stored under /usr/doc directory
  178. * Wed Nov 3 1999 MATSUBAYASHI 'Shaolin' Kohji
  179. - 1.13.7-1
  180. - updated to apel-9.23 / clime-1.13.5 / semi-1.13.7 release
  181. - added Japanese / English info files to be installed