tc-el-vl.spec 4.1 KB

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