|
@@ -1,5 +1,5 @@
|
|
%define pkg_name skkdic
|
|
%define pkg_name skkdic
|
|
-%define pkg_version 20160410
|
|
+%define pkg_version 20160424
|
|
%define pkg_release 1%{?_dist_release}
|
|
%define pkg_release 1%{?_dist_release}
|
|
|
|
|
|
Summary: SKK Dictionaries
|
|
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
|
|
Source21: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.requested.gz
|
|
Source22: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.station.gz
|
|
Source22: http://openlab.ring.gr.jp/skk/dic/SKK-JISYO.station.gz
|
|
Source100: dot-dic.skk
|
|
Source100: dot-dic.skk
|
|
|
|
+Source200: skktocdbm.sh
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: gzip
|
|
BuildRequires: gzip
|
|
@@ -54,8 +55,26 @@ SKK 辞書パッケージです。
|
|
を ~/.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
|
|
%prep
|
|
%setup -n %{name} -c -T -a 4 -a 14
|
|
%setup -n %{name} -c -T -a 4 -a 14
|
|
|
|
+
|
|
|
|
+%build
|
|
%{__cp} \
|
|
%{__cp} \
|
|
%{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE5} %{SOURCE6} \
|
|
%{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE5} %{SOURCE6} \
|
|
%{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} \
|
|
%{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} \
|
|
@@ -71,6 +90,12 @@ gzip -d *.gz
|
|
zipcode/ZIPCODE-MK zipcode/words.zipcode \
|
|
zipcode/ZIPCODE-MK zipcode/words.zipcode \
|
|
DOCS/zipcode/
|
|
DOCS/zipcode/
|
|
|
|
|
|
|
|
+for JISYO in SKK-JISYO.*
|
|
|
|
+do
|
|
|
|
+ LJISYO=`basename $JISYO`
|
|
|
|
+ %{SOURCE200} < ${JISYO} > ${LJISYO}.cdb
|
|
|
|
+done
|
|
|
|
+
|
|
%install
|
|
%install
|
|
%{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/skk
|
|
%{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/skk
|
|
%{__install} -m 644 SKK-JISYO.* ${RPM_BUILD_ROOT}%{_datadir}/skk
|
|
%{__install} -m 644 SKK-JISYO.* ${RPM_BUILD_ROOT}%{_datadir}/skk
|
|
@@ -83,10 +108,21 @@ gzip -d *.gz
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%doc DOCS/* dot-dic.skk edict_doc.txt
|
|
%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
|
|
%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
|
|
* Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 20160410-1
|
|
- update to 20160410
|
|
- update to 20160410
|
|
- correct SPEC file
|
|
- correct SPEC file
|