skk-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. %define _noVersionedDependencies 1
  2. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  3. %define _libdir %{_prefix}/lib
  4. Summary: SKK for emacs
  5. Summary(ja): Emacs 用 SKK (かな漢字変換プログラム)
  6. Name: skk
  7. Version: 13.1
  8. Release: 1%{?_dist_release}
  9. Source0: http://openlab.ring.gr.jp/skk/maintrunk/ddskk-%{version}.tar.gz
  10. Source1: %{name}-install.sh
  11. Source2: %{name}-remove.sh
  12. Source3: %{name}-init.el
  13. Source4: vine-default-%{name}.el
  14. Patch0: ddskk-11.4-tut.patch
  15. Patch1: ddskk-11.6.0-make.patch
  16. Patch2: ddskk-info.patch
  17. License: GPL
  18. Group: Applications/Editors/Emacs
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. BuildArch: noarch
  21. PreReq: emacsen, make, install-info, skkdic
  22. %prereq_ge emacsen-common
  23. %prereq_ge apel
  24. BuildPreReq: emacsen-common, apel
  25. Obsoletes: ddskk
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. %description
  29. Daredevil SKK is a branch of SKK (Simple Kana to Kanji conversion
  30. program, an input method of Japanese). It forked from the maintrunk,
  31. SKK version 10.56.
  32. %description -l ja
  33. Daredevil SKK は、かな漢字変換プログラムです。
  34. 又、Daredevil SKK は SKK 10.56 から派生したバージョンです。
  35. rskkserv をインストールしている場合は、
  36. ~/.emacs に、以下の設定をして下さい。
  37. (setq skk-server-portnum 1178)
  38. (setq skk-server-host "localhost")
  39. NICOLA-DDSKK も同梱しています。
  40. NICOLA-DDSKK とは、Daredevil SKK で NICOLA かな入力(親指シフト入力)
  41. によって日本語入力を可能にするものです。
  42. 設定等は、%{_docdir}/%{name}-%{version}/nicola-ddskk/README.NICOLA.ja を
  43. 参照して下さい。
  44. %prep
  45. %setup -q -n ddskk-%{version}
  46. %patch0 -p1
  47. %patch1 -p1
  48. %patch2 -p1
  49. rm -f *.orig
  50. %__cp -af %{SOURCE3} %{SOURCE4} .
  51. %build
  52. make info
  53. mkdir nicola-ddskk
  54. cp -pf nicola/{ChangeLog*,README.*} nicola-ddskk
  55. %install
  56. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  57. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  58. mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{name}
  59. mkdir -p $RPM_BUILD_ROOT%{emacsen_pkgdir}/{install,remove}
  60. mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{name}/nicola
  61. #
  62. # install el files
  63. #
  64. cp -af Makefile SKK-MK *.el *.in etc ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name}
  65. cp -f nicola/{Makefile,NICOLA-DDSKK-*,*.el} \
  66. $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{name}/nicola
  67. #
  68. # install script( bytecompile el and install elc , remove )
  69. #
  70. %_installemacsenscript %{name} %{SOURCE1}
  71. %_removeemacsenscript %{name} %{SOURCE2}
  72. #
  73. # install info file
  74. #
  75. mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
  76. install -m 644 doc/skk.info* ${RPM_BUILD_ROOT}%{_infodir}
  77. ( cd ${RPM_BUILD_ROOT}%{_infodir}
  78. for i in skk.info skk.info-1 skk.info-2 skk.info-3 skk.info-4 ; do
  79. nkf -Je $i > $i.euc
  80. mv -f $i.euc $i
  81. gzip -9 $i
  82. done
  83. )
  84. %post
  85. #
  86. # bytecompile and install
  87. #
  88. if [ "$1" = 2 ]; then
  89. %_emacsenPackageRemove %{name}
  90. fi
  91. %_addemacsenlist %{name}
  92. %_emacsenPackageInstall %{name}
  93. /sbin/install-info %{_infodir}/skk.info.gz %{_infodir}/dir
  94. %preun
  95. if [ "$1" = 0 ]; then
  96. %_emacsenPackageRemove %{name}
  97. %_removeemacsenlist %{name}
  98. /sbin/install-info --delete %{_infodir}/skk.info.gz %{_infodir}/dir
  99. fi
  100. %clean
  101. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  102. %files
  103. %defattr(-,root,root)
  104. %doc READMEs ChangeLog* etc/Emacs.ad
  105. %doc nicola-ddskk
  106. %{_infodir}/*.info*
  107. %{_datadir}/emacs/site-lisp/%{name}/
  108. %{emacsen_pkgdir}/install/%{name}
  109. %{emacsen_pkgdir}/remove/%{name}
  110. %changelog
  111. * Sun Aug 29 2010 IWAI, Masaharu <iwai@alib.jp> 13.1-1
  112. - new upstream release
  113. - update skk-install.sh: update VERSION
  114. - using emacsen_pkgdir rpm macro
  115. - check emacs-ime value in vine-default-skk.el
  116. * Sat Apr 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 11.6.0-2
  117. - added vine-default-skk.el, skk-init.el
  118. - updated skk-install.sh for vine-default-skk.el
  119. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 11.6.0-1vl5
  120. - applied new versioning policy, spec in utf-8
  121. - added %%define _libdir %%{_prefix}/lib
  122. * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 11.6.0-0vl6
  123. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  124. * Thu Jul 20 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 11.6.0-0vl5
  125. - s/Copyright/License/
  126. - changed Group to Applications/Editors/EmacsLisp
  127. * Tue May 20 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 11.6.0-0vl4
  128. - added PreReq skkdic
  129. * Sun May 26 2002 MATUBARA Kazuyuki <matubara@kamome.or.jp> 11.6.0-0vl3
  130. - package name changed from ddskk to skk
  131. * Sat Apr 20 2002 MATUBARA Kazuyuki <matubara@kamome.or.jp> 11.6.0-0vl2
  132. - delete xemacs message to ddskk-install.sh
  133. * Sun Mar 03 2002 MATUBARA Kazuyuki <matubara@mb.asmnet.ne.jp> 11.6.0-0vl1
  134. - 1st packageing