skk-vl.spec 4.8 KB

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