Browse Source

update to 20160424

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10210 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 8 years ago
parent
commit
c00f457151
1 changed files with 38 additions and 2 deletions
  1. 38 2
      s/skkdic/skkdic-vl.spec

+ 38 - 2
s/skkdic/skkdic-vl.spec

@@ -1,5 +1,5 @@
 %define pkg_name    skkdic
-%define pkg_version 20160410
+%define pkg_version 20160424
 %define pkg_release 1%{?_dist_release}
 
 Summary:   SKK Dictionaries
@@ -36,6 +36,7 @@ Source20: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.propernoun.gz
 Source21: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.requested.gz
 Source22: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.station.gz
 Source100: dot-dic.skk
+Source200: skktocdbm.sh
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: gzip
@@ -54,8 +55,26 @@ SKK 辞書パッケージです。
 を ~/.skk としてコピーして使用してください。
 
 
+%package cdb
+Summary:     standard dictionary file for SKK in cdb format for faster access
+Summary(ja): より高速なアクセスが可能な cdb フォーマットの SKK 標準辞書ファイル
+Group:       Applications/Text
+
+%description cdb
+This package provides the standard dictionary file for
+SKK Japanese input systems, converted to constant database (cdb)
+for faster access.
+
+%description -l ja cdb
+このパッケージはSKK日本語入力システムの標準辞書ファイルを
+constant database (cdb) に変換し、より高速なアクセスを可能とした
+ファイルを提供します。
+
+
 %prep
 %setup -n %{name} -c -T -a 4 -a 14
+
+%build
 %{__cp} \
  %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE5} %{SOURCE6} \
  %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} \
@@ -71,6 +90,12 @@ gzip -d *.gz
  zipcode/ZIPCODE-MK zipcode/words.zipcode \
  DOCS/zipcode/
 
+for JISYO in SKK-JISYO.*
+do
+  LJISYO=`basename $JISYO`
+  %{SOURCE200} < ${JISYO} > ${LJISYO}.cdb
+done
+
 %install
 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/skk
 %{__install} -m 644 SKK-JISYO.* ${RPM_BUILD_ROOT}%{_datadir}/skk
@@ -83,10 +108,21 @@ gzip -d *.gz
 %files
 %defattr(-,root,root)
 %doc DOCS/* dot-dic.skk edict_doc.txt
-%{_datadir}/skk/SKK-JISYO.*
+%{_datadir}/skk/SKK-JISYO.*[^{cdb}]
+%{_datadir}/skk/SKK-JISYO.L.unannotated
+%{_datadir}/skk/SKK-JISYO.assoc
+%{_datadir}/skk/SKK-JISYO.requested
+
+%files cdb
+%defattr(-, root, root)
+%{_datadir}/skk/SKK-JISYO.*.cdb
 
 
 %changelog
+* Fri Apr 29 2016 Toshiaki Ara <ara_t@384.jp> 20160410-1
+- update to 20160424
+- make subpackage skkdic-cdb
+
 * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 20160410-1
 - update to 20160410
 - correct SPEC file