自分用メモ
気が向いたらわかりやすく書き直す
http://linuxplayers.g1.xrea.com/mozc-ut.html
依存ライブラリ
zypper in fcitx-devel gtk2-devel ibus-devel ninja pkgconfig zinnia-devel libQt5Core-devel libQt5Gui-devel libQt5Widgets-devel
-
src.rpmを落としてくる
https://software.opensuse.org/package/mozc?locale=ja -
rpm -ivh mozc-2.18.2612.102-lp152.6.9.src.rpm
-
~/rpmbuildに移動
-
wget -nc https://osdn.net/users/utuhiro/pf/utuhiro/dl/mozcdic-ut-20210627.tar.bz2 -O ./SOURCES
適宜新しいファイルに変更 -
SPECS/mozc.specを修正(下参照)
-
rpmbuild -bb ./SPECS/mozc.spec
SPECS/mozc.spec の修正内容
--- mozc.spec 2020-05-17 10:05:58.000000000 +0900
+++ ../backup/mozc.spec 2021-06-28 23:52:22.994284857 +0900
@@ -76,6 +76,8 @@
# License: SUSE-Public-Domain
Source10: jigyosyo.zip
Source11: ken_all.zip
+
+Source12: mozcdic-ut-20210627.tar.bz2
#
%if %{with_fcitx}
# add fcitx as mozc module
@@ -227,6 +229,12 @@
python ../../dictionary/gen_zip_code_seed.py --zip_code=KEN_ALL.CSV --jigyosyo=JIGYOSYO.CSV >> dictionary09.txt
popd
+# prepare ut2 dictionary
+pushd data/dictionary_oss
+tar xf %{SOURCE12}
+cat mozcdic-ut-20210627/mozcdic-ut-20210627.txt >> dictionary00.txt
+popd
+
%build
%define target Release
export QTDIR=%{_libdir}/qt5