flim-vl.spec 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. %define _noVersionedDependencies 1
  2. %define emacsen_pkgdir /usr/lib/emacsen-common/packages
  3. %define origver 1.14.9
  4. %define origname flim
  5. Summary: Library to provide basic features about message for Emacsen
  6. Summary(ja): Emacsen 用の message に関する表現形式や符号化のためのライブラリです。
  7. Name: %{origname}
  8. Version: %{origver}
  9. Release: 4%{?_dist_release}
  10. Source0: http://www.kanji.zinbun.kyoto-u.ac.jp/~tomo/comp/emacsen/lisp/flim/flim-1.14/flim-%{origver}.tar.gz
  11. Source1: %{origname}-install.sh
  12. Source2: %{origname}-remove.sh
  13. Source3: %{origname}-init.el
  14. Patch0: FLIM-CFG.emacs.patch
  15. License: 1993-1999 Free Software Foundation, Inc., Dan Rich, Morioka Tomohiko, Kobayashi Shuhei
  16. Group: Applications/Editors/Emacs
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildArch: noarch
  19. Requires(post,preun): emacsen emacsen-common
  20. Requires(post): apel
  21. Requires: apel
  22. Obsoletes: flim-el
  23. Conflicts: semi <= 1.14.5-0vl2
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. Packager: shaolin
  27. %description
  28. FLIM is a library to provide basic features about message
  29. representation or encoding.
  30. Note: in order to rebuild this SRPM package, you need
  31. emacsen, emacsen-common and apel installed.
  32. %description -l ja
  33. FLIM は Internet message に関する様々な表現形式や符号化に関する
  34. 基礎的な機能を提供するための汎用部品です.
  35. 注意:この SRPM パッケージを rebuild するには、emacsen と emacsen-common
  36. 及び apel がインストールされている必要があります.
  37. %prep
  38. rm -rf ${RPM_BUILD_DIR}/%{origname}-%{origver}
  39. %setup -n %{origname}-%{origver}
  40. %patch0 -p1
  41. %install
  42. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  43. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  44. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{origname}
  45. mkdir -p $RPM_BUILD_ROOT/%{emacsen_pkgdir}/install
  46. mkdir -p $RPM_BUILD_ROOT/%{emacsen_pkgdir}/remove
  47. #
  48. # remove unnecessary file
  49. #
  50. ## upstream is dropped in FLIM-ELS: see ChangeLog file 2002-11-15
  51. %{__rm} -f mailcap.el
  52. #
  53. # install el files
  54. #
  55. cp Makefile FLIM-* *.el %{SOURCE3} \
  56. ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname}
  57. #
  58. # install script( bytecompile el and install elc , remove )
  59. #
  60. %_installemacsenscript %{origname} %{SOURCE1}
  61. %_removeemacsenscript %{origname} %{SOURCE2}
  62. #
  63. # install info file
  64. #
  65. mkdir -p ${RPM_BUILD_ROOT}/usr/info
  66. %post
  67. #
  68. # bytecompile and install
  69. #
  70. if [ "$1" = 2 ]; then
  71. %_emacsenPackageRemove %{origname}
  72. fi
  73. %_addemacsenlist %{origname}
  74. %_emacsenPackageInstall %{origname}
  75. %preun
  76. if [ "$1" = 0 ]; then
  77. %_emacsenPackageRemove %{origname}
  78. %_removeemacsenlist %{origname}
  79. fi
  80. %triggerpostun -- flim-el
  81. %_emacsenPackageInstall %{origname}
  82. %clean
  83. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  84. rm -rf ${RPM_BUILD_DIR}/apel-%{apelver}
  85. %files
  86. %defattr(-,root,root)
  87. %doc ChangeLog NEWS README* VERSION
  88. /usr/share/emacs/site-lisp/%{origname}/
  89. %{emacsen_pkgdir}/install/%{origname}
  90. %{emacsen_pkgdir}/remove/%{origname}
  91. %changelog
  92. * Fri Apr 22 2011 IWAI, Masaharu <iwai@alib.jp> 1.14.9-4
  93. - add Requires: apel
  94. - add Requires(preun): emacsen emacsen-common: fix 1.14.9-3
  95. * Thu Apr 21 2011 IWAI, Masaharu <iwai@alib.jp> 1.14.9-3
  96. - drop defining prereq_ge macro
  97. - using Requires(post) tag
  98. * Thu Mar 4 2010 IWAI, Masaharu <iwai@alib.jp> 1.14.9-2
  99. - remove mailcap.el: <BTS:VineLinux:935>
  100. - update Packager's syntax
  101. - update description-{en,ja}
  102. * Tue Sep 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.14.9-1vl5
  103. - applied new versioning policy, spec in utf-8
  104. - added %%emacsen_pkgdir macro
  105. * Fri Dec 7 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.9-0vl1
  106. - updated to 1.14.9
  107. * Wed Jan 10 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.14.8-0vl1
  108. - updated in sync with 1.14.8 release
  109. * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14.7-0vl2
  110. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  111. - s/Copyright/License/
  112. * Mon Dec 13 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.14.7-0vl1
  113. - updated in sync with 1.14.7 release
  114. * Wed Dec 24 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.6-0vl1
  115. - updated in sync with 1.14.6 release
  116. * Mon Jun 09 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.5-0vl2
  117. - increased release number for the new apel release
  118. * Wed May 21 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.14.5-0vl1
  119. - updated in sync with 1.14.5 release
  120. * Mon Jun 03 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.4-0vl1
  121. - updated in sync with 1.14.4 release
  122. * Fri Jan 11 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.3-0vl9
  123. - Obsoletes: flim-el now, instead of Conflicts:
  124. - added %%triggerpostun -- flim-el
  125. * Fri Dec 28 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.3-0vl8
  126. - package name changed flim-el -> flim again
  127. - added Source3 for forthcoming site-start mechanism
  128. * Sun Dec 23 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.14.3-0vl7
  129. - modified Source1 to remove mel-b-ccl.el* if the flavor is xemacs-21.1.x
  130. (see http://lists.airs.net/wl/archive/200101/msg00077.html)
  131. * Fri Nov 9 2001 Kazuhisa TAKEI <takei@vinelinux.org>
  132. - change Patch0( fixed load-path)
  133. * Mon Jul 23 2001 Kazuhisa TAKEI <takei@vinelinux.org>
  134. - requires: emacsen-common -> prereq
  135. * Wed Jul 18 2001 Kazuhisa TAKEI <takei@vinelinux.org>
  136. - emacsenize
  137. * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  138. - 1.14.3-0vl2
  139. - back to Requires: emacs = 20.7 -> emacs >= 20.7 (for emacs-beta)
  140. * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  141. - 1.14.3-0vl1
  142. - updated to apel-10.3, flim-1.14.3, semi-1.14.3, emh-1.14.1
  143. * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji
  144. - 1.13.7-8
  145. - added %define _noVersionedDependencies 1
  146. * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji
  147. - 1.13.7-7
  148. - modified %files section to handle compressed man page(s)
  149. * Wed May 10 2000 MATSUBAYASHI 'Shaolin' Kohji
  150. - 1.13.7-6
  151. - apel updated to 10.2
  152. * Mon Jan 24 2000 MATSUBAYASHI 'Shaolin' Kohji
  153. - 1.13.7-5
  154. - added patch (see emacs-mime-ja: 00303) to format texinfo correctly
  155. * Thu Dec 24 1999 MATSUBAYASHI 'Shaolin' Kohji
  156. - 1.13.7-4
  157. - updated in sync with apel-10.0 / clime-1.13.6 release
  158. * Wed Dec 1 1999 MATSUBAYASHI 'Shaolin' Kohji
  159. - 1.13.7-3
  160. - change Group to Applications/Editors/EmacsLisp
  161. * Mon Nov 29 1999 MATSUBAYASHI 'Shaolin' Kohji
  162. - 1.13.7-2
  163. - added patches (see emacs-mime-ja:00183, emacs-mime-ja:00184)
  164. - now emh-1.10.1 and rmail-mime-1.13.0 are also included
  165. - documentation files are properly stored under /usr/doc directory
  166. * Wed Nov 3 1999 MATSUBAYASHI 'Shaolin' Kohji
  167. - 1.13.7-1
  168. - updated to apel-9.23 / clime-1.13.5 / semi-1.13.7 release
  169. - added Japanese / English info files to be installed