migemo-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. ## -*- coding: utf-8-unix -*-
  2. %define _noVersionedDependencies 1
  3. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'Requires(post):%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  4. %define origname migemo
  5. %define origver 0.40
  6. %define release 4%{?_dist_release}
  7. Name: %{origname}
  8. Version: %{origver}
  9. Release: %{release}
  10. Summary: Japanese incremental search with Romaji on Emacsen
  11. Summary(ja): Emacsen 上でローマ字を使って日本語インクリメントサーチを行うツール
  12. License: GPLv2
  13. Group: Applications/Editors/Emacs
  14. Source0: http://0xcc.net/migemo/migemo-%{origver}.tar.gz
  15. Source1: migemo-install.sh
  16. Source2: migemo-remove.sh
  17. Source3: vine-default-migemo.el
  18. Source4: migemo-init.el
  19. URL: http://0xcc.net/migemo/
  20. BuildArch: noarch
  21. Buildroot: %{_tmppath}/%{name}-%{version}-root
  22. BuildRequires: ruby
  23. BuildRequires: ruby-bsearch
  24. BuildRequires: ruby-romkan
  25. BuildRequires: emacsen
  26. Requires: emacsen
  27. Requires: apel
  28. #Requires: ruby >= %{rubyver}
  29. Requires: ruby
  30. Requires: ruby-bsearch >= 1.5-0vl4
  31. Requires: ruby-romkan >= 0.4-0vl3
  32. Requires(post): emacsen
  33. Requires(preun): emacsen
  34. %prereq_ge emacsen-common
  35. %description
  36. Japanese incremental search with Romaji on Emacsen
  37. %description -l ja
  38. Emacsen 上でローマ字を使って日本語インクリメントサーチを行うツール
  39. %prep
  40. %setup -q -n %{origname}-%{origver}
  41. %build
  42. %configure
  43. make emacsdir=${RPM_BUILD_ROOT}-%{emacsdir} \
  44. lispdir=%{_datadir}/emacs/site-lisp/%{origname} \
  45. rubydir=%{rlibdir}
  46. %install
  47. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  48. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  49. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
  50. mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install
  51. mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove
  52. %makeinstall emacsdir=${RPM_BUILD_ROOT}-%{emacsdir} \
  53. lispdir=${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname} \
  54. rubydir=${RPM_BUILD_ROOT}%{rlibdir}
  55. rm -f ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/*.elc
  56. make clean
  57. cp -ar Makefile* configure* *.el *.el.in elisp-comp acinclude.m4 \
  58. install-sh mkinstalldirs missing INSTALL NEWS migemo.rb.in \
  59. README COPYING AUTHORS ChangeLog tests config.status migemo \
  60. %{SOURCE3} %{SOURCE4} \
  61. ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
  62. #
  63. # install script( bytecompile el and install elc , remove )
  64. #
  65. %_installemacsenscript %{origname} %{SOURCE1}
  66. %_removeemacsenscript %{origname} %{SOURCE2}
  67. %post
  68. #
  69. # bytecompile and install
  70. #
  71. if [ "$1" = 2 ]; then
  72. %_emacsenPackageRemove %{origname}
  73. fi
  74. %_addemacsenlist %{origname}
  75. %_emacsenPackageInstall %{origname}
  76. %preun
  77. if [ "$1" = 0 ]; then
  78. %_emacsenPackageRemove %{origname}
  79. %_removeemacsenlist %{origname}
  80. fi
  81. %clean
  82. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  83. rm -rf ${RPM_BUILD_DIR}/%{origname}-%{origver}
  84. %files
  85. %defattr(-,root,root)
  86. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README tests
  87. %{_bindir}/migemo*
  88. %{rlibdir}/migemo*
  89. %{_datadir}/migemo
  90. %{_datadir}/emacs/site-lisp/%{origname}
  91. %{emacsen_pkgdir}/install/%{origname}
  92. %{emacsen_pkgdir}/remove/%{origname}
  93. %changelog
  94. * Sun Feb 19 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.40-4
  95. - updated migemo-init.el
  96. * Sun Oct 18 2009 Munehiro Yamamoto <munepi@vinelinux.org> 0.40-3
  97. - use %%{emacsen_pkgdir}
  98. * Tue May 5 2009 IWAI, Masaharu <iwai@alib.jp> 0.40-2
  99. - spec in UTF-8
  100. - drop Prefix tag
  101. - fix BuildRequires: emacs to emacsen
  102. - apply vine-default
  103. - update migemo-install.sh (Source1)
  104. - update migemo-remove.sh (Source2)
  105. - add vine-default-migemo.el (Source3)
  106. - add migemo-init.el (Source4)
  107. - update %%flies section
  108. - add %%{_datadir}/emacs/site-lisp/%%{origname} directory
  109. * Tue Sep 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.40-1
  110. - applied new versioning policy
  111. - updated Source0 URL, URL:
  112. - updated BuildRequires:
  113. * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.40-0vl9
  114. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  115. * Fri Oct 22 2004 IWAI, Masaharu <iwai@alib.jp> 0.40-0vl7
  116. - add Japanese summary and description
  117. * Tue Jun 15 2004 IWAI, Masaharu <iwai@alib.jp> 0.40-0vl6
  118. - update migemo-install.sh (Source1):
  119. touch a few files: aclocal.m4 Makefile.in configure
  120. * Sun Dec 28 2003 IWAI, Masaharu <iwai@alib.jp> 0.40-0vl5
  121. - fix Requires
  122. * Fri Oct 10 2003 IWAI, Masaharu <iwai@alib.jp> 0.40-0vl4
  123. - update {Build,}Requires: more exact
  124. * Tue Oct 7 2003 IWAI, Masaharu <iwai@alib.jp> 0.40-0vl3
  125. - build with ruby-1.8.0
  126. * Sun Jun 1 2003 IWAI Masaharu <iwai@alib.jp> 0.40-0vl2
  127. - fix byte compile routine ([VineSeed-Plus:01695])
  128. - cp -ar migemo.rb.in migemo %%{_datadir}/emacs/site-lisp/%%{origname}
  129. - update migemo-install.sh (Source1)
  130. * Fri May 30 2003 IWAI Masaharu <iwai@alib.jp> 0.40-0vl1
  131. - upstream release
  132. * Fri Mar 21 2003 IWAI Masaharu <iwai@alib.jp> 0.32-0vl4
  133. - rebuild
  134. * Sat Feb 16 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.32-0vl3
  135. - rebuild with ruby-romkan-0.4-0vl1
  136. * Wed Feb 6 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.32-0vl2
  137. - moved the directory installed the ruby library
  138. - sitelibdir -> rubylibdir
  139. - added BuildRequires: ruby, rpm >= 3.0.6-0vl16
  140. * Wed Jan 2 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.32-0vl1
  141. - first release for VIne Linux
  142. * Fri Sep 7 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp>
  143. - 0.32-1
  144. - first release.