ibus-el-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. %define _noVersionedDependencies 1
  2. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  3. %define origname ibus-el
  4. %define origver 0.2.1
  5. Summary: a IBus client for GNU Emacs
  6. Summary(ja): GNU Emacs 用 IBus クライアント
  7. Name: %{origname}
  8. Version: %{origver}
  9. Release: 3%{?_dist_release}
  10. # http://launchpad.net/ibus.el
  11. Source0: ibus-el-%{version}.tar.gz
  12. Source1: %{origname}-install.sh
  13. Source2: %{origname}-remove.sh
  14. Source3: vine-default-%{origname}.el
  15. Source4: %{origname}-init.el
  16. #
  17. Patch0: ibus-el-0.2.1-emacs-24.0.90.patch
  18. License: GPLv3
  19. Group: Applications/Editors/Emacs
  20. URL: http://www11.atwiki.jp/s-irie/pages/21.html
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. BuildArch: noarch
  23. Requires: emacsen
  24. PreReq: emacsen
  25. %prereq_ge emacsen-common
  26. Requires: python >= 2.5
  27. Requires: ibus >= 1.2
  28. Requires: python-xlib
  29. Distribution: Vine Linux
  30. Vendor: Project Vine
  31. Packager: iwaim
  32. %description
  33. ibus.el is a IBus client for GNU Emacs. This program allows users
  34. on-the-spot style input with IBus. The input statuses are individually
  35. kept for each buffer, and prefix-keys such as C-x and C-c can be used
  36. even if IBus is active. So you can input various languages fast and
  37. comfortably by using it.
  38. %prep
  39. %setup -q -n %{origname}-%{origver}
  40. %patch0 -p1 -b .emacs24
  41. %build
  42. %install
  43. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  44. [ "%{buildroot}" != "/" ] && mkdir -p %{buildroot}
  45. mkdir -p %{buildroot}%{_datadir}/%{name}
  46. install -m 0755 ibus-el-agent %{buildroot}%{_datadir}/%{name}
  47. mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages
  48. mkdir -p %{buildroot}%{emacsen_pkgdir}/install
  49. mkdir -p %{buildroot}%{emacsen_pkgdir}/remove
  50. #
  51. # install el files
  52. #
  53. cp -p *.el %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}
  54. #
  55. # install script (bytecompile el and install elc , remove)
  56. #
  57. %_installemacsenscript %{origname} %{SOURCE1}
  58. %_removeemacsenscript %{origname} %{SOURCE2}
  59. %clean
  60. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  61. %post
  62. #
  63. # bytecompile and install
  64. #
  65. if [ "$1" = 2 ]; then
  66. %_emacsenPackageRemove %{origname}
  67. fi
  68. %_addemacsenlist %{origname}
  69. %_emacsenPackageInstall %{origname}
  70. %preun
  71. if [ "$1" = 0 ]; then
  72. %_emacsenPackageRemove %{origname}
  73. %_removeemacsenlist %{origname}
  74. fi
  75. %files
  76. %defattr(-,root,root)
  77. %doc README doc/COPYING doc/ChangeLog
  78. %{_datadir}/emacs/site-lisp/%{origname}
  79. %{emacsen_pkgdir}/install/%{origname}
  80. %{emacsen_pkgdir}/remove/%{origname}
  81. %dir %{_datadir}/%{name}
  82. %{_datadir}/%{name}/ibus-el-agent
  83. %changelog
  84. * Mon Oct 3 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.1-3
  85. - supported emacs-24.0.90
  86. - updated ibus-el-init.el
  87. - output "Loading vine-default-ibus-el ..." to the buffer *Messages*
  88. * Tue Apr 5 2011 IWAI, Masaharu <iwai@alib.jp> 0.2.1-2vl6
  89. - fix <BTS:VineLinux:1117>
  90. - update vine-default-ibus-el.el (Source3): sync [VineSeed:22997]
  91. * Wed Nov 24 2010 IWAI, Masaharu <iwai@alib.jp> 0.2.1-1
  92. - new upstream release
  93. * Tue Aug 31 2010 IWAI, Masaharu <iwai@alib.jp> 0.2.0-1
  94. - new upstream release
  95. * Sat Jun 12 2010 IWAI, Masaharu <iwai@alib.jp> 0.1.1-1
  96. - new upstream release
  97. * Mon Jun 7 2010 IWAI, Masaharu <iwai@alib.jp> 0.1.0-1
  98. - first release for Vine Linux