ibus-el-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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: 2%{?_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. License: GPLv3
  17. Group: Applications/Editors/Emacs
  18. URL: http://www11.atwiki.jp/s-irie/pages/21.html
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. BuildArch: noarch
  21. Requires: emacsen
  22. PreReq: emacsen
  23. %prereq_ge emacsen-common
  24. Requires: python >= 2.5
  25. Requires: ibus >= 1.2
  26. Requires: python-xlib
  27. Distribution: Vine Linux
  28. Vendor: Project Vine
  29. Packager: iwaim
  30. %description
  31. ibus.el is a IBus client for GNU Emacs. This program allows users
  32. on-the-spot style input with IBus. The input statuses are individually
  33. kept for each buffer, and prefix-keys such as C-x and C-c can be used
  34. even if IBus is active. So you can input various languages fast and
  35. comfortably by using it.
  36. %prep
  37. %setup -q -n %{origname}-%{origver}
  38. %build
  39. %install
  40. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  41. [ "%{buildroot}" != "/" ] && mkdir -p %{buildroot}
  42. mkdir -p %{buildroot}%{_datadir}/%{name}
  43. install -m 0755 ibus-el-agent %{buildroot}%{_datadir}/%{name}
  44. mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages
  45. mkdir -p %{buildroot}%{emacsen_pkgdir}/install
  46. mkdir -p %{buildroot}%{emacsen_pkgdir}/remove
  47. #
  48. # install el files
  49. #
  50. cp -p *.el %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}
  51. #
  52. # install script (bytecompile el and install elc , remove)
  53. #
  54. %_installemacsenscript %{origname} %{SOURCE1}
  55. %_removeemacsenscript %{origname} %{SOURCE2}
  56. %clean
  57. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  58. %post
  59. #
  60. # bytecompile and install
  61. #
  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 README doc/COPYING doc/ChangeLog
  75. %{_datadir}/emacs/site-lisp/%{origname}
  76. %{emacsen_pkgdir}/install/%{origname}
  77. %{emacsen_pkgdir}/remove/%{origname}
  78. %dir %{_datadir}/%{name}
  79. %{_datadir}/%{name}/ibus-el-agent
  80. %changelog
  81. * Tue Apr 5 2011 IWAI, Masaharu <iwai@alib.jp> 0.2.1-2vl6
  82. - fix <BTS:VineLinux:1117>
  83. - update vine-default-ibus-el.el (Source3): sync [VineSeed:22997]
  84. * Wed Nov 24 2010 IWAI, Masaharu <iwai@alib.jp> 0.2.1-1
  85. - new upstream release
  86. * Tue Aug 31 2010 IWAI, Masaharu <iwai@alib.jp> 0.2.0-1
  87. - new upstream release
  88. * Sat Jun 12 2010 IWAI, Masaharu <iwai@alib.jp> 0.1.1-1
  89. - new upstream release
  90. * Mon Jun 7 2010 IWAI, Masaharu <iwai@alib.jp> 0.1.0-1
  91. - first release for Vine Linux