migemo-vl.spec 4.9 KB

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