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