apel-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. %define _noVersionedDependencies 1
  2. %define origver 10.8
  3. %define origname apel
  4. Summary: A Portable Emacs Library
  5. Summary(ja): Emacs 用の 基礎的な関数を提供するライブラリ
  6. Name: %{origname}
  7. Version: %{origver}
  8. Release: 4%{?_dist_release}
  9. Source0: http://kanji.zinbun.kyoto-u.ac.jp/~tomo/lemi/dist/apel/apel-%{origver}.tar.gz
  10. Source1: apel-install.sh
  11. Source2: apel-remove.sh
  12. Source3: apel-init.el
  13. Patch0: apel-10.8-20120427.patch
  14. Patch1: apel-10.8-ikazuhiro-branch.patch
  15. Patch2: apel-10.8-prevent-fontset-error.patch
  16. Patch3: apel-10.8-use-new-style-backquotes.patch
  17. # https://github.com/wanderlust/apel/commit/74e1e49626a4bc7b1e9b87d844d3852e976d1df2
  18. Patch4: apel-10.8-docstring.patch
  19. License: 1993-1999 Free Software Foundation, Inc., Dan Rich, Morioka Tomohiko, Kobayashi Shuhei
  20. Group: Applications/Editors/Emacs
  21. Url: http://git.chise.org/elisp/apel/
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. BuildArch: noarch
  24. Requires: emacsen
  25. Requires(post,preun): emacsen emacsen-common
  26. Obsoletes: %{origname}-el
  27. Conflicts: semi <= 1.14.5-0vl2
  28. Vendor: Project Vine
  29. Distribution: Vine Linux
  30. Packager: shaolin, daisuke
  31. %description
  32. This package contains following .el files for emacsen:
  33. APEL %{origver}
  34. APEL stands for "A Portable Emacs Library".
  35. It provides basic functions and macros for emacsen.
  36. Note: in order to rebuild this SRPM package, you need emacsen
  37. and emacsen-common installed.
  38. %description -l ja
  39. このパッケージは GNU Emacs %{emacsver} 上で使用する
  40. 以下の elisp を収めています.
  41. APEL %{origver}
  42. APEL は "A Portable Emacs Library" の略です.
  43. Emacs 環境のための基礎的な関数やマクロを提供します.
  44. 注意:この SRPM パッケージを rebuild するには、emacsen と emacsen-common が
  45. インストールされている必要があります.
  46. %prep
  47. %setup -q -n %{origname}-%{origver}
  48. %patch0 -p1
  49. %patch1 -p1
  50. %patch2 -p1
  51. %patch3 -p1
  52. %patch4 -p1
  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/%{_prefix}/lib/emacsen-common/packages/install
  58. mkdir -p $RPM_BUILD_ROOT/%{_prefix}/lib/emacsen-common/packages/remove
  59. #
  60. # install el files
  61. #
  62. cp Makefile EMU-* APEL-* *.el %{SOURCE3} \
  63. ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname}
  64. #
  65. # install script( bytecompile el and install elc , remove )
  66. #
  67. %_installemacsenscript %{origname} %{SOURCE1}
  68. %_removeemacsenscript %{origname} %{SOURCE2}
  69. %post
  70. #
  71. # bytecompile and install
  72. #
  73. if [ "$1" = 2 ]; then
  74. %_emacsenPackageRemove %{origname}
  75. fi
  76. %_addemacsenlist %{origname}
  77. %_emacsenPackageInstall %{origname}
  78. %preun
  79. if [ "$1" = 0 ]; then
  80. %_emacsenPackageRemove %{origname}
  81. %_removeemacsenlist %{origname}
  82. fi
  83. %triggerpostun -- apel-el
  84. %_emacsenPackageInstall %{origname}
  85. %clean
  86. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  87. %files
  88. %defattr(-,root,root)
  89. %doc ChangeLog README*
  90. /usr/share/emacs/site-lisp/%{origname}/
  91. /usr/lib/emacsen-common/packages/install/%{origname}
  92. /usr/lib/emacsen-common/packages/remove/%{origname}
  93. %changelog
  94. * Sat Jun 2 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 10.8-4
  95. - Fix misusage of "\" in docstring. (Patch4)
  96. * Tue May 06 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 10.8-3
  97. - add patch0 for (original) git master
  98. - add patch1 to update to ikazuhiro's branch (2014-03-15)
  99. https://github.com/ikazuhiro/apel/commits/master
  100. - add patch2 from debian package
  101. (Prevent an error of fontset-pixel-size for Emacs 23.)
  102. - add patch3 from debian package
  103. (use new style backquotes to use on emacs-24.3.90)
  104. * Fri Apr 22 2011 IWAI, Masaharu <iwai@alib.jp> 10.8-2
  105. - drop defining prereq_ge macro: using Requires(post,preun) tag
  106. - add Requires: emacsen
  107. * Tue Jun 15 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 10.8-1
  108. - new upstream release
  109. * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 10.7-2
  110. - spec in utf8
  111. * Fri May 2 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.7-1
  112. - applied new versioning policy
  113. * Fri Dec 7 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 10.7-0vl1
  114. - updated to 10.7
  115. * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 10.6-0vl3
  116. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  117. * Wed Dec 24 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 10.6-0vl2
  118. - rebuilt
  119. * Tue Jul 8 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 10.6-0vl1
  120. - updated to new upstream version 10.6
  121. * Mon Jun 09 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 10.5-0vl1
  122. - updated to new upstream version 10.5
  123. * Mon May 19 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 10.4-0vl1
  124. - update.
  125. - Tag Changed(Copyright -> License)
  126. * Fri Jan 11 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 10.3-0vl9
  127. - Obsoletes: apel-el now, instead of Conflicts:
  128. - added %%triggerpostun -- apel-el
  129. * Fri Dec 28 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 10.3-0vl8
  130. - package name changed apel-el -> apel again
  131. - added Source3 for forthcoming site-start mechanism
  132. * Thu Dec 06 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 10.3-0vl7
  133. - activate file-detect and atype (Patch10), especially for xemacs
  134. * Thu Dec 06 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 10.3-0vl6
  135. - fixed the target directory for emu modules to be installed
  136. - included missing documents again
  137. - cleanup the spec file
  138. * Wed Jul 18 2001 Kazuhisa TAKEI <takei@vinelinux.org>
  139. - emacsenize
  140. * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  141. - 1.14.3-0vl2
  142. - back to Requires: emacs = 20.7 -> emacs >= 20.7 (for emacs-beta)
  143. * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  144. - 1.14.3-0vl1
  145. - updated to apel-10.3, flim-1.14.3, semi-1.14.3, emh-1.14.1
  146. * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji
  147. - 1.13.7-8
  148. - added %define _noVersionedDependencies 1
  149. * Fri Aug 25 2000 MATSUBAYASHI 'Shaolin' Kohji
  150. - 1.13.7-7
  151. - modified %files section to handle compressed man page(s)
  152. * Wed May 10 2000 MATSUBAYASHI 'Shaolin' Kohji
  153. - 1.13.7-6
  154. - apel updated to 10.2
  155. * Mon Jan 24 2000 MATSUBAYASHI 'Shaolin' Kohji
  156. - 1.13.7-5
  157. - added patch (see emacs-mime-ja: 00303) to format texinfo correctly
  158. * Fri Dec 24 1999 MATSUBAYASHI 'Shaolin' Kohji
  159. - 1.13.7-4
  160. - updated in sync with apel-10.0 / clime-1.13.6 release
  161. * Wed Dec 1 1999 MATSUBAYASHI 'Shaolin' Kohji
  162. - 1.13.7-3
  163. - change Group to Applications/Editors/EmacsLisp
  164. * Mon Nov 29 1999 MATSUBAYASHI 'Shaolin' Kohji
  165. - 1.13.7-2
  166. - added patches (see emacs-mime-ja:00183, emacs-mime-ja:00184)
  167. - now emh-1.10.1 and rmail-mime-1.13.0 are also included
  168. - documentation files are properly stored under /usr/doc directory
  169. * Wed Nov 3 1999 MATSUBAYASHI 'Shaolin' Kohji
  170. - 1.13.7-1
  171. - updated to apel-9.23 / clime-1.13.5 / semi-1.13.7 release
  172. - added Japanese / English info files to be installed