tc-el-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. Summary: Yet another Japanese input method for Emacsen
  2. Name: tc-el
  3. Version: 2.3.1
  4. Release: 1%{?_dist_release}
  5. License: GPL
  6. Group: Applications/Editors/Emacs
  7. Source0: http://openlab.jp/tcode/resources/soft/tc-%{version}.tar.gz
  8. Source1: %{name}-install.sh
  9. Source2: %{name}-remove.sh
  10. Patch0: tc-2.3.1-shebang.patch
  11. Patch1: tc-2.3.1-datadir.patch
  12. URL: http://openlab.jp/tcode/tc2/index.html
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildPreReq: autoconf, libtool, emacs
  15. PreReq: emacsen, emacsen-common >= 0.1
  16. Requires: bash
  17. %description
  18. T-Code is Japanese input method that doesn't use Kana-to-Kanji convertion.
  19. You can input Kanji characters directly in the same way of inputting
  20. Hiragana. This packages also provides TUT-Code input method (the
  21. alternative of T-Code).
  22. %prep
  23. %setup -q -c
  24. cd tc-%{version}
  25. %patch0 -p0
  26. %patch1 -p0
  27. cd ..
  28. %build
  29. cd tc-%{version}
  30. %configure --with-lispdir=%{_datadir}/emacs/site-lisp/tc-el
  31. make -C bushu-util
  32. make -C doc
  33. make -C etc
  34. make -C kinput2
  35. make -C mazegaki
  36. make -C skkinput3
  37. cd ..
  38. %install
  39. cd tc-%{version}
  40. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  41. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  42. mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}
  43. mkdir -p ${RPM_BUILD_ROOT}/%{_prefix}/lib/emacsen-common/packages/install
  44. mkdir -p ${RPM_BUILD_ROOT}/%{_prefix}/lib/emacsen-common/packages/remove
  45. make -C bushu-util DESTDIR=${RPM_BUILD_ROOT} install
  46. make -C doc DESTDIR=${RPM_BUILD_ROOT} install
  47. make -C etc DESTDIR=${RPM_BUILD_ROOT} install
  48. make -C kinput2 DESTDIR=${RPM_BUILD_ROOT} install
  49. make -C mazegaki DESTDIR=${RPM_BUILD_ROOT} install
  50. make -C skkinput3 DESTDIR=${RPM_BUILD_ROOT} install
  51. (cd lisp && \
  52. install -m 644 *.el ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name})
  53. rm -f $RPM_BUILD_ROOT%{_bindir}/tcinput
  54. %_installemacsenscript %{name} %{SOURCE1}
  55. %_removeemacsenscript %{name} %{SOURCE2}
  56. cd ..
  57. %post
  58. /sbin/install-info %{_infodir}/tc.info.gz %{_infodir}/dir \
  59. --section="T-Code Driver for Emacsen"
  60. if [ "$1" = 2 ]; then
  61. %_emacsenPackageRemove tc-el
  62. fi
  63. %_addemacsenlist tc-el
  64. %_emacsenPackageInstall tc-el
  65. %preun
  66. /sbin/install-info --delete %{_infodir}/tc.info.gz %{_infodir}/dir \
  67. --section="T-Code Driver for Emacsen"
  68. if [ "$1" = 0 ]; then
  69. %_emacsenPackageRemove tc-el
  70. %_removeemacsenlist tc-el
  71. fi
  72. %clean
  73. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  74. %files
  75. %defattr(-, root, root)
  76. %{_datadir}/tc
  77. %{_infodir}/*.info.gz
  78. #%{_libdir}/emacsen-common/packages/install/%{name}
  79. #%{_libdir}/emacsen-common/packages/remove/%{name}
  80. %{_prefix}/lib/emacsen-common/packages/install/%{name}
  81. %{_prefix}/lib/emacsen-common/packages/remove/%{name}
  82. %{_datadir}/emacs/site-lisp/%{name}/
  83. %doc tc-%{version}/AUTHORS
  84. %doc tc-%{version}/COPYING
  85. %doc tc-%{version}/ChangeLog*
  86. %doc tc-%{version}/NEWS
  87. %doc tc-%{version}/README
  88. %doc tc-%{version}/skkinput3/tcinput
  89. %changelog
  90. * Mon Aug 18 2008 Shu KONNO <owa@bg.wakwak.com> 2.3.1-1vl5
  91. - applied new versioning policy
  92. - fixed path of emacsen-common
  93. * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.1-0vl2
  94. - changed Group to Appliations/Editors/Emacs
  95. - s/Copyright/License/
  96. * Wed Dec 3 2003 akira yamada <akira@vinelinux.org> 2.3.1-0vl1
  97. - new upstream version.
  98. - BuildPreReq: emacs-beta -> emacs
  99. * Tue Feb 12 2002 akira yamada <akira@vinelinux.org> 2.2-0vl4
  100. - rewrote summary field.
  101. - .tc-bitmap-8x16 is in %{_datadir}/tc, fixed tc-el-install.sh.
  102. * Mon Feb 11 2002 akira yamada <akira@vinelinux.org> 2.2-0vl3
  103. - install .tc-bitmap-8x16 to datadir.
  104. * Wed Feb 06 2002 akira yamada <akira@vinelinux.org> 2.2-0vl2
  105. - BuildArch is not noarch. /usr/lib/tc/{reduce,combine} are elf-binary.
  106. * Mon Feb 04 2002 akira yamada <akira@vinelinux.org> 2.2-0vl1
  107. - new upstream release.
  108. - added autoconf, libtool and emacs-beta to BuildPreReq.
  109. - emacsen-common is in PreReq, not in Requires.
  110. - BuildArch is now noarch.
  111. * Fri Dec 14 2001 akira yamada <akira@vinelinux.org> 2.1+2.2pre2-0vl1
  112. - Initial packaging.