semi-vl.spec 7.5 KB

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