rail-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. %define _noVersionedDependencies 1
  2. %define origver 1.2.5
  3. %define origname rail
  4. %define emacsen_pkgdir /usr/lib/emacsen-common/packages
  5. Name: %{origname}
  6. Version: %{origver}
  7. Release: 2%{?_dist_release}
  8. Summary: rail - Replace Agent-string Internal Library for emacsen
  9. Summary(ja): rail - emacsen 用 Agent 名変換ライブラリ
  10. Source0: ftp://ftp.fan.gr.jp/pub/elisp/rail/rail-%{version}.tar.bz2
  11. Source1: semi-1.14.6-VERSION
  12. Source2: flim-1.14.9-VERSION
  13. Source10: %{origname}-install.sh
  14. Source11: %{origname}-remove.sh
  15. Source12: %{origname}-init.el
  16. License: GPL
  17. Group: Applications/Editors/Emacs
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildArch: noarch
  20. Requires: emacsen semi
  21. Requires(post): emacsen emacsen-common semi
  22. Obsoletes: rail-xemacs
  23. Conflicts: %{origname}-el
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. Packager: shaolin
  27. %description
  28. rail is a nifty elisp, that translates codenames with latin chars
  29. of flim/semi/XEmacs/UTF-2000-Mule/Meadow to Japanese characters.
  30. It also provides a function compatible with genjis.el (a part
  31. of tm, that converts mule-version to Japanese characters).
  32. %description -l ja
  33. rail は,flim/semi/XEmacs/UTF-2000-Mule/Meadow のコードネームを
  34. 日本語化し,User-Agent: フィールドに適用するための elsp です.
  35. tm の genjis.el 互換機能 (mule-version の日本語化) も備えています.
  36. %prep
  37. %setup -n %{origname}-%{version}
  38. ## install newer codename file for semi
  39. cp %{SOURCE1} contrib/SEMI_VERSION
  40. cp %{SOURCE2} contrib/FLIM_VERSION
  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}/%{_libdir}/emacsen-common/packages/install
  46. #mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/emacsen-common/packages/remove
  47. mkdir -p ${RPM_BUILD_ROOT}/%{emacsen_pkgdir}/install
  48. mkdir -p ${RPM_BUILD_ROOT}/%{emacsen_pkgdir}/remove
  49. ## install el files
  50. cp -a Makefile contrib *.el \
  51. ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{origname}
  52. # 2004.12.13 add Irokawa
  53. cp -a %{SOURCE12} \
  54. ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{origname}
  55. ## install script (bytecompile el and install elc, remove elc)
  56. %_installemacsenscript %{origname} %{SOURCE10}
  57. %_removeemacsenscript %{origname} %{SOURCE11}
  58. %clean
  59. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  60. %post
  61. ## bytecompile el and install elc
  62. if [ "$1" = 2 ] ; then
  63. %_emacsenPackageRemove %{origname}
  64. fi
  65. %_addemacsenlist %{origname}
  66. %_emacsenPackageInstall %{origname}
  67. %preun
  68. if [ "$1" = 0 ] ; then
  69. %_emacsenPackageRemove %{origname}
  70. %_removeemacsenlist %{origname}
  71. fi
  72. %files
  73. %defattr(-,root,root)
  74. %doc 00README 00FAQ CHANGELOG contrib
  75. %{_datadir}/emacs/site-lisp/%{origname}
  76. #%{_libdir}/emacsen-common/packages/install/%{origname}
  77. #%{_libdir}/emacsen-common/packages/remove/%{origname}
  78. %{emacsen_pkgdir}/install/%{origname}
  79. %{emacsen_pkgdir}/remove/%{origname}
  80. %changelog
  81. * Thu Apr 21 2011 IWAI, Masaharu <iwai@alib.jp> 1.2.5-2
  82. - drop defining prereq_ge macro: using Requires(post) tag
  83. - add Requires: emacsen semi
  84. - update Packager syntax
  85. * Sat Sep 06 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.5-1vl5
  86. - applied new versioning policy, spec in utf-8
  87. - added macro %%emacsen_pkgdir
  88. * Fri Dec 7 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.5-0vl12
  89. - added %%{SOURCE2} for flim-1.14.9
  90. * Wed Jan 10 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.2.5-0vl11
  91. - added %%{SOURCE2} for flim-1.14.8
  92. * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.5-0vl10
  93. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  94. * Mon Dec 13 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.2.5-0vl9
  95. - added %%{SOURCE2} for flim-1.14.7
  96. - added %%{SOURCE12} for use /etc/$FLAVOR/site-start.d/
  97. * Wed Dec 24 2003 MATSUBAYASHI <shaolin@vinelinux.org> 1.2.5-0vl8
  98. - added %%{SOURCE1} and %%{SOURCE2} for flim-1.14.6 / semi-1.14.6
  99. * Wed May 21 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.2.5-0vl7
  100. - Modded %%{SOURCE2} for flim-1.14.5
  101. * Sat Dec 07 2002 MATSUBAYASHI <shaolin@vinelinux.org> 1.2.5-0vl6
  102. - added %%{SOURCE1} for semi-1.14.5
  103. * Mon Jun 03 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.5-0vl5
  104. - added Source2 (for flim-1.14.4)
  105. * Fri Dec 28 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.5-0vl4
  106. - package name changed rail-el -> rail again
  107. * Thu Dec 06 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.2.5-0vl3
  108. - rail is now rail-el, thus emacsen-common aware :)
  109. * Wed Jul 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  110. - 1.2.5-0vl2
  111. - added %%{SOURCE1} for semi-1.14.3
  112. * Tue Jan 23 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  113. - 1.2.5-0vl1
  114. - updated to 1.2.5 release
  115. - now rail-xemacs is a sub-package
  116. - use better macros (%%{_tmppath})
  117. * Tue Mar 28 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  118. - 1.2.4-0vl1
  119. - updated in sync with 1.2.4 release
  120. * Mon Nov 29 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
  121. - 1.0.2-2
  122. - Requires: apel, flim removed
  123. * Tue Nov 16 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
  124. - 1.0.2-1
  125. - updated in sync wih 1.0.2 release
  126. * Tue Oct 26 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
  127. - 0.8-1
  128. - updated in sync wih 0.8 release
  129. - added newer FLIM_VERSION file for newest CLIME release
  130. * Wed Oct 13 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
  131. - 0.7-1
  132. - updated in sync wih 0.7 release
  133. * Mon Oct 4 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
  134. - 0.6-1
  135. - updated in sync wih 0.6 release
  136. * Fri Oct 1 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
  137. - 0.5-2
  138. - added newer FLIM_VERSION file for newest CLIME release
  139. * Wed Sep 29 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
  140. - 0.5-1
  141. - first rpm release