0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

openSUSEでmozc ut2のrpmをビルドする

Posted at

自分用メモ
気が向いたらわかりやすく書き直す
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
  1. src.rpmを落としてくる
    https://software.opensuse.org/package/mozc?locale=ja

  2. rpm -ivh mozc-2.18.2612.102-lp152.6.9.src.rpm

  3. ~/rpmbuildに移動

  4. wget -nc https://osdn.net/users/utuhiro/pf/utuhiro/dl/mozcdic-ut-20210627.tar.bz2 -O ./SOURCES
    適宜新しいファイルに変更

  5. SPECS/mozc.specを修正(下参照)

  6. 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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?