migemo-vl.spec 4.8 KB

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