File fwnn.spec of Package fwnn

#
# spec file for package fwnn (Version 1.1.1a021)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           fwnn
BuildRequires:  ncurses-devel termcap
%define base_version 1.1.1
%define alpha_version a021
License:        GPLv2+
Group:          System/I18n/Japanese
Requires:       fwnncom
Conflicts:      wnn6
PreReq:         /usr/sbin/useradd %insserv_prereq %fillup_prereq
AutoReqProv:    on
Version:        1.1.1a021
Release:        1
Url:            http://www.freewnn.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        FreeWnn Japanese Input System--Server Only
Source:         ftp://ftp.etl.go.jp/pub/FreeWnn/alpha/FreeWnn-%{base_version}-%{alpha_version}.tar.bz2
Source1:        rcfwnn
Source2:        rcfcwnn
Source3:        rcftwnn
Source4:        rcfkwnn
Source99:       fwnn-rpmlintrc
Patch0:         FreeWnn-fsstnd.patch
Patch1:         FreeWnn-ja.patch
Patch2:         FreeWnn-noroot.patch
Patch3:         FreeWnn-sighandler.patch
Patch4:         FreeWnn-uum.patch
Patch5:         FreeWnn-%{base_version}-%{alpha_version}.dif
Patch7:         FreeWnn-s390x.patch
Patch8:         FreeWnn-warnings.patch
Patch11:        FreeWnn-include.patch
Patch12:        FreeWnn-returnvalue.diff
Patch13:        FreeWnn-prototypes.patch
Patch14:        FreeWnn-trad_cpp.patch
# Summary(ja):  FreeWnn 日本語入力システム - サーバのみ
# %description  -l ja
# 
# Wnn(うんぬ)とは?  京都大学、オムロン株式会社、株式会社アステック
# によって共同開発され、 1987年に完成した UNIX上のかな漢字変換システム。現
# 在では、FreeWnn プロジェクトが開発と維持をします
# (http://www.freewnn.org)。
# 
# 
# Watashino Namaeha Nakanodesu(私の名前は中野です)という文章の一括変換が
# できる (当時は、文章を一括変換できることは画期的だった!)システム とい
# うことで、その文の各文節の頭文字をとって名付けられた。  C言語で 書かれ
# たソースコードが無料で配布されたことから、多くのワークステーショ ン上で
# 使われるようになり、現在では、UNIX上のかな漢字変換システムの デファクト・
# スタンダード(事実上の標準)となっている。  一番の特徴はクライアント・
# サーバ方式を採用していることで、 サーバ部分(jserver)は、 X Window
# System 上の入力システムであるxwnmoの かな漢字変換エンジンとしてや、
# Nemacs/ Mule のたまご(egg) のかな漢字変換エンジンとして、使われている。
# 
# 
# このパッケージには日本語入力サーバのみ含まれます。

%description 
FreeWnn is a Kana-Kanji translation system, originally developed by a
joint project made up of Kyoto University, OMRON Corporation [formerly
known as Tateishi Electronics Co.], and ASTEC Inc. Further development
and maintenance is now done by the "FreeWnn Project"
(http://www.freewnn.org).

The name "Wnn", is an acronym for the Japanese sentence "Watashino
Namaeha Nakanodesu" (literally, it means "my name is Nakano."), and is
derived from a goal of the project: to develop a system powerful enough
to translate a whole sentence like that at once.  The source code has
been written in C and is freely distributed. Consequently, Wnn spread
widely among workstation platforms, and became a de facto standard as a
Kana-Kanji translation system for UNIX operating systems.

Wnn works in a client/server manner. The server portion of Wnn, or
jserver, is used as a Kana-Kanji translation engine for clients like
"xwnmo" and "kinput2" (input systems for the X Window System) or for
clients like "Egg", which are part of Mule (MUlti-Lingual Emacs) and
XEmacs.

This package contains only the Japanese server.



%package -n fwnn-devel
License:        GPLv2+
Group:          Development/Libraries/C and C++
Summary:        Development Library and Header Files for FreeWnn
Provides:       fwnndev
Obsoletes:      fwnndev
# Summary(ja): FreeWnn 用開発ライブラリとヘッダファイル
# %description -n fwnn-devel -l ja
# 
# このパッケージには FreeWnn を利用した日本語入力 client をコンパイルする
# ために必要なヘッダファイルとライブラリが含まれています。

%description -n fwnn-devel
This package contains the header files and libraries for building
client programs which use FreeWnn for Japanese input.



%package -n fwnncom
License:        GPLv2+
Summary:        Common Files for FreeWnn
Group:          System/I18n/Japanese
PreReq:         /usr/sbin/useradd

%description -n fwnncom
This package includes files you need to run FreeWnn, Free cWnn, Free
tWnn, or Free kWnn.  Install this package if you will be using any part
of the Wnn System.



%package -n fcwnn
License:        GPLv2+
Group:          System/I18n/Chinese
Requires:       fwnncom, fcwnncom
PreReq:         /usr/sbin/useradd fcwnncom
Summary:        Free cWnn Chinese Input System (Mainland China)
# Summary(ja): Free cWnn 中国語の入力システム (中華人民共和国)
# %description -n fcwnn -l ja
# 
# Free cWnn 中国語の入力システム (中華人民共和国)

%description -n fcwnn
Free cWnn Chinese Input System (mainland China).



%package -n fcwnncom
License:        GPLv2+
Summary:        Free cWnn/tWnn Chinese Input System Common Files (Mainland and Taiwan)
Group:          System/I18n/Chinese
Requires:       fwnncom
PreReq:         /usr/sbin/useradd

%description -n fcwnncom
This package includes the common files for the Free cWnn and Free tWnn
Chinese Input Systems. Free cWnn is for mainland Chinese and free tWnn
is for Taiwan-Chinese.



%package -n fcwnndev
License:        GPLv2+
Group:          Development/Libraries/C and C++
Summary:        Development Libraries and Header Files for Free cWnn
# Summary(ja): Free cWnn 用開発ライブラリとヘッダファイル
# %description -n fcwnndev -l ja
# 
# このパッケージには Free cWnn を利用したプログラムをコンパイルするために
# 必要なヘッダファイルとライブラリを含んでいます。

%description -n fcwnndev
This package contains the header files and libraries for building
client programs that use the Chinese Input System, Free cWnn.



%package -n ftwnn
License:        GPLv2+
Summary:        Free tWnn Chinese Input System (Taiwan)
Group:          System/I18n/Chinese
Requires:       fwnncom, fcwnncom
PreReq:         /usr/sbin/useradd, fcwnncom
# Summary(ja): Free tWnn 中国語の入力システム (台湾)
# %description -n ftwnn -l ja
# 
# Free tWnn 中国語の入力システム (台湾)

%description -n ftwnn
Free tWnn Chinese input system (Taiwan).



%package -n fkwnn
License:        GPLv2+
Summary:        Free kWnn Korean Input System
Group:          System/I18n/Korean
Requires:       fwnncom
PreReq:         /usr/sbin/useradd
# Summary(ja): Free kWnn 韓国語の入力システム
# %description -n fkwnn -l ja
# 
# Free kWnn 韓国語の入力システム

%description -n fkwnn
Free kWnn Korean input system.



%package -n fkwnndev
License:        GPLv2+
Group:          Development/Libraries/C and C++
Summary:        Development Libraries and Header Files for Free kWnn
# Summary(ja): Free kWnn 用開発ライブラリとヘッダファイル
# %description -n fkwnndev -l ja
# 
# このパッケージには Free kWnn を利用したプログラムをコンパイルするために
# 必要なヘッダファイルとライブラリを含んでいます。

%description -n fkwnndev
This package contains the header files and libraries for building
client programs that use the Korean Input System, Free kWnn.



%prep
######################################################################
# package xwnmo
# I don't know how to build xwnmo. Will try that later ...
# %package -n xwnmo
# Requires: wnn
# Summary: xwnmo - Input Manager for the X11 Window System
# Summary(ja): xwnmo - Xウィンドウ・インプットマネージャー
# Group: Applications/X11
# 
# %description -n xwnmo 
# 
# Xwnmo is a input manager for the Input Method of the X Window System.
# It is based on the X11 Input Method Specifications.  It provides a
# multi-language input environment for multiple clients in the X11
# Window System. Clients can connect to it by using the XIM library. The
# conversion engine xwnmo uses the internationalized Wnn. It selects
# the conversion server in accordance with language of clients.
# 
# %description -n xwnmo -l ja
# 
# xwnmo は、Xウィンドウ・インプットメソッド用のインプット・マネージャーで
# す。 X Window System, Version 11 Input Method Specifications をベースに
# 作成されました。 xwnmo は、Xウィンドウの複数のクライアントに対して、多
# 国語の入力環境を提供します。クライアントは、XIMライブラリを使うことに
# より、xwnmo を使用できます。変換のエンジンには、国際化されたWnnを使用
# します。クライアントのランゲージに応じて、変換サーバを選択します。
%setup -q -n FreeWnn-%{base_version}-%{alpha_version}
%patch0 -p2
%patch1 -p2
%patch2 -p2
%patch3 -p2
%patch4 -p2
%patch5 -p1
%patch7 -p2 -b .s390x
%patch8
%patch11 -p2
%patch12
%patch13
%patch14
#%setup -b 1 -n Xsi           # add include-files for Xwnmo
# SuSE setlocale patch, try to set LC_CTYPE if LC_ALL fails (Xwnmo) and
#......................................................................
# %patch2 -p1
# Trying to make Xwnmo work...
#..................................................................
# %patch3 -p1                  

%build
# update config.{guess,sub}
%{?suse_update_config}
./configure --prefix=/usr \
            --libdir=%{_libdir} \
            --mandir=%{_mandir} \
            --infodir=%{_infodir} \
            %{_target_cpu}-suse-linux-gnu
# not -j safe, see Wnn/pubdicplus/Makefile.in
make CCOPTIONS="$RPM_OPT_FLAGS"
pushd Wnn/uum
make CCOPTIONS="$RPM_OPT_FLAGS"
popd

%install
make install DESTDIR=$RPM_BUILD_ROOT INSTPGMFLAGS=
make install.man  DESTDIR=$RPM_BUILD_ROOT 
pushd Wnn/uum
make install DESTDIR=$RPM_BUILD_ROOT INSTPGMFLAGS=
popd
#----------------------------------------------------------------------
# move Japanese man pages to their correct destination:
# (the above 'make install.man' command installs Japanese AND English
#  manpages, but unfortunately all of them into the same directory.
#  The Japanese manpages should be in a subdirectory 'ja'
#  (or maybe ja_JP.eucJP), therefore I move them here:
for i in 1 2 3 4 5 6 7 8 9 ; do
    mkdir -p $RPM_BUILD_ROOT/%{_mandir}/ja/man$i
done
for i in atod.1 atof.1 dtoa.1 jserver.1 oldatonewa.1 uum.1 wddel.1 wdreg.1 \
	  wnnkill.1 wnnstat.1 wnntouch.1
do
	  mv $RPM_BUILD_ROOT/%{_mandir}/man1/$i $RPM_BUILD_ROOT/%{_mandir}/ja/man1/
done
mv $RPM_BUILD_ROOT/%{_mandir}/man3/* $RPM_BUILD_ROOT/%{_mandir}/ja/man3/
for i in 2a_ctrl.4 2b_romkana.4 cvt_key_tbl.4 fzk.data.4 fzk.u.4 \
	  hinsi_data.4 jserverrc.4 mode.4 serverdefs.4 ujis_dic.4 \
	  uumkey.4 uumrc.4 wnnenvrc.4
do
	  mv $RPM_BUILD_ROOT/%{_mandir}/man4/$i $RPM_BUILD_ROOT/%{_mandir}/ja/man4/
done
for i in pubdic.5 usr_dic.5
do
	  mv $RPM_BUILD_ROOT/%{_mandir}/man5/$i $RPM_BUILD_ROOT/%{_mandir}/ja/man5/
done
#----------------------------------------------------------------------
# Make sure directories for of boot script installation exist:
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
mkdir -p $RPM_BUILD_ROOT/usr/sbin
#----------------------------------------------------------------------
# Install boot scripts:
install -m 755 $RPM_SOURCE_DIR/rcfwnn  $RPM_BUILD_ROOT/etc/init.d/fwnn
install -m 755 $RPM_SOURCE_DIR/rcfcwnn $RPM_BUILD_ROOT/etc/init.d/fcwnn
install -m 755 $RPM_SOURCE_DIR/rcftwnn $RPM_BUILD_ROOT/etc/init.d/ftwnn
install -m 755 $RPM_SOURCE_DIR/rcfkwnn $RPM_BUILD_ROOT/etc/init.d/fkwnn
#----------------------------------------------------------------------
# Make symbolic links
for i in fwnn fcwnn ftwnn fkwnn ; do
    ( cd $RPM_BUILD_ROOT/usr/sbin; ln -sf ../../etc/init.d/$i rc$i )
done
ln -sf /var/lib/wnn/ja/dic ${RPM_BUILD_ROOT}/etc/FreeWnn/ja/dic
ln -sf /var/lib/wnn/zh_CN/dic ${RPM_BUILD_ROOT}/etc/FreeWnn/zh_CN/dic
ln -sf /var/lib/wnn/zh_TW/dic ${RPM_BUILD_ROOT}/etc/FreeWnn/zh_TW/dic
ln -sf /var/lib/wnn/ko_KR/dic ${RPM_BUILD_ROOT}/etc/FreeWnn/ko_KR/dic
#----------------------------------------------------------------------
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/lib*.la

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%pre -n fwnn
/usr/sbin/useradd -r -o -g root -u 66 -s /bin/false -c "Wnn System Account" -d /var/lib/wnn wnn 2> /dev/null || :

%post -n fwnn
# touch all public dictionary files:
chroot . usr/bin/wnntouch var/lib/wnn/ja/dic/gerodic/g-jinmei.dic
chroot . usr/bin/wnntouch var/lib/wnn/ja/dic/pubdic/*.*
# Create symbolic runlevel links:
%{fillup_and_insserv -y}

%preun -n fwnn
%stop_on_removal fwnn

%postun -n fwnn
%restart_on_update fwnn
%insserv_cleanup
#%post -n fwnn-devel
# if you make libwnn.so, unomment it.
#/sbin/ldconfig

%pre -n fwnncom
/usr/sbin/useradd -r -o -g root -u 66 -s /bin/false -c "Wnn System Account" -d /var/lib/wnn wnn 2> /dev/null || :

%pre -n fcwnn
/usr/sbin/useradd -r -o -g root -u 66 -s /bin/false -c "Wnn System Account" -d /var/lib/wnn wnn 2> /dev/null || :

%preun -n fcwnn
%stop_on_removal fcwnn

%post -n fcwnn
# touch all public dictionary files:
chroot . usr/bin/cwnntouch var/lib/wnn/zh_CN/dic/sys/*.*
# Create symbolic run level links:
%{fillup_and_insserv}

%postun -n fcwnn
%restart_on_update fcwnn
%insserv_cleanup
#%postun -n fcwnndev
# if you make libwnn.so, unomment it.
#/sbin/ldconfig

%pre -n ftwnn
/usr/sbin/useradd -r -o -g root -u 66 -s /bin/false -c "Wnn System Account" -d /var/lib/wnn wnn 2> /dev/null || :

%preun -n ftwnn
%stop_on_removal ftwnn

%post -n ftwnn
# touch all public dictionary files:
chroot . usr/bin/cwnntouch var/lib/wnn/zh_TW/dic/sys/*.*
# Create symbolic run level links:
%{fillup_and_insserv}

%postun -n ftwnn
%restart_on_update ftwnn
%insserv_cleanup

%pre -n fkwnn
/usr/sbin/useradd -r -o -g root -u 66 -s /bin/false -c "Wnn System Account" -d /var/lib/wnn wnn 2> /dev/null || :

%preun -n fkwnn
%stop_on_removal fkwnn

%post -n fkwnn
# touch all public dictionary files:
chroot . usr/bin/kwnntouch var/lib/wnn/ko_KR/dic/sys/*.*
# Create symbolic run level links:
%{fillup_and_insserv}

%postun -n fkwnn
%restart_on_update fkwnn
%insserv_cleanup
#%postun -n fkwnndev
# if you make libwnn.so, unomment it.
#/sbin/ldconfig

%files
%defattr(-,root,root)
%config /etc/init.d/fwnn
%config /usr/sbin/rcfwnn
%attr(-,wnn,root) /usr/bin/atod
%attr(-,wnn,root) /usr/bin/dtoa
%attr(-,wnn,root) /usr/bin/oldatonewa
%attr(-,wnn,root) /usr/bin/wdreg
%attr(-,wnn,root) /usr/bin/wnnstat
%attr(-,wnn,root) /usr/bin/atof
%attr(755,wnn,root) /usr/bin/jserver
%attr(-,wnn,root) /usr/bin/wddel
%attr(-,wnn,root) /usr/bin/wnnkill
%attr(-,wnn,root) /usr/bin/uum
%attr(-,wnn,root) /usr/bin/wnntouch
%dir %attr(-,wnn,root) /var/lib/wnn/
%dir %attr(-,wnn,root) /var/lib/wnn/ja/
%attr(-,wnn,root) /var/lib/wnn/ja/dic
%dir /etc/FreeWnn/ja/
/etc/FreeWnn/ja/dic
%config /etc/FreeWnn/ja/hinsi.data
%config /etc/FreeWnn/ja/jserverrc
%config /etc/FreeWnn/ja/libwnn.msg
%config /etc/FreeWnn/ja/rk
%config /etc/FreeWnn/ja/rk.vi
%config /etc/FreeWnn/ja/uum.msg
%config /etc/FreeWnn/ja/uumkey
%config /etc/FreeWnn/ja/uumkey.omr
%config /etc/FreeWnn/ja/uumkey_e
%config /etc/FreeWnn/ja/uumrc
%config /etc/FreeWnn/ja/uumrc.omr
%config /etc/FreeWnn/ja/uumrc.rev
%config /etc/FreeWnn/ja/uumrc_e
%config /etc/FreeWnn/ja/uumrc_vi
%config /etc/FreeWnn/ja/wnnenvrc
%config /etc/FreeWnn/ja/wnnenvrc.omr
%config /etc/FreeWnn/ja/wnnenvrc.rem
%config /etc/FreeWnn/ja/wnnenvrc.rev
%config /etc/FreeWnn/ja/wnnenvrc_R
%config /etc/FreeWnn/ja/wnnenvrc_R.omr
%config /etc/FreeWnn/ja/wnnenvrc_R.rem
%config /etc/FreeWnn/ja/wnnstat.msg
%dir /etc/FreeWnn/lt_LN/
/etc/FreeWnn/lt_LN/rk
%config /etc/FreeWnn/lt_LN/uum.msg
%config /etc/FreeWnn/lt_LN/uumkey
%config /etc/FreeWnn/lt_LN/uumkey_e
%config /etc/FreeWnn/lt_LN/uumrc
%{_libdir}/libjd.so.0*
%{_libdir}/libwnn.so.0*

%files -n fwnn-devel
%defattr(-,root,root)
%dir /usr/include/wnn/
/usr/include/wnn/*
%{_libdir}/libjd.a
%{_libdir}/libjd.so
%{_libdir}/libwnn.a
%{_libdir}/libwnn.so

%files -n fwnncom
%defattr(-,root,root)
%doc CONTRIBUTORS COPYRIGHT COPYRIGHT-j ChangeLog ChangeLog.old INSTALL
%doc olddoc/ Wnn/manual/ Wnn/manual.en/
%doc cWnn/manual cWnn/manual.en
%doc %{_mandir}/man?/*
%dir %{_mandir}/ja/
%dir %{_mandir}/ja/*/
%doc %{_mandir}/ja/man?/*
%dir %attr(-,wnn,root) /var/lib/wnn
%dir /etc/FreeWnn/
%config /etc/FreeWnn/cvt_key_empty
%config /etc/FreeWnn/cvt_key_tbl
%config /etc/FreeWnn/cvt_key_tbl.ST
%config /etc/FreeWnn/cvt_key_tbl.gm
%config /etc/FreeWnn/cvt_key_tbl.kt
%config /etc/FreeWnn/cvt_key_tbl.mv
%config /etc/FreeWnn/cvt_key_tbl.vt
%config /etc/FreeWnn/serverdefs

%files -n fcwnn
%defattr(-,root,root)
%config /etc/init.d/fcwnn
%config /usr/sbin/rcfcwnn
%attr(755,wnn,root) /usr/bin/cserver
%config /etc/FreeWnn/zh_CN/cixing.data
%config /etc/FreeWnn/zh_CN/cserverrc
/etc/FreeWnn/zh_CN/dic
%dir %attr(-,wnn,root) /var/lib/wnn/
%dir %attr(-,wnn,root) /var/lib/wnn/zh_CN/
%attr(-,wnn,root)/var/lib/wnn/zh_CN/dic
%config /etc/FreeWnn/zh_CN/libwnn.msg
%dir /etc/FreeWnn/
%dir /etc/FreeWnn/zh_CN/
/etc/FreeWnn/zh_CN/rk
/etc/FreeWnn/zh_CN/rk_p
/etc/FreeWnn/zh_CN/rk_z
/etc/FreeWnn/zh_CN/uum.msg
/etc/FreeWnn/zh_CN/uumkey
/etc/FreeWnn/zh_CN/uumkey_e
/etc/FreeWnn/zh_CN/uumkey_p
%config /etc/FreeWnn/zh_CN/uumrc
%config /etc/FreeWnn/zh_CN/uumrc_p
%config /etc/FreeWnn/zh_CN/uumrc_z
%config /etc/FreeWnn/zh_CN/wnnenvrc
%config /etc/FreeWnn/zh_CN/wnnenvrc_Qi
%config /etc/FreeWnn/zh_CN/wnnenvrc_QiR
%config /etc/FreeWnn/zh_CN/wnnenvrc_R
%config /etc/FreeWnn/zh_CN/wnnenvrc_Wu
%config /etc/FreeWnn/zh_CN/wnnenvrc_WuR
%config /etc/FreeWnn/zh_CN/wnnstat.msg
%{_libdir}/libcwnn.so.0*

%files -n fcwnncom
%defattr(-,root,root)
/usr/bin/catod
/usr/bin/catof                  
/usr/bin/cdtoa
/usr/bin/cwddel
/usr/bin/cwdreg
/usr/bin/cwnnkill
/usr/bin/cwnnstat
/usr/bin/cwnntouch

%files -n fcwnndev
%defattr(-,root,root)
%dir /usr/include/cwnn/
/usr/include/cwnn/*
%{_libdir}/libcwnn.a
%{_libdir}/libcwnn.so

%files -n ftwnn
%defattr(-,root,root)
%config /etc/init.d/ftwnn
%config /usr/sbin/rcftwnn
%attr(755,wnn,root) /usr/bin/tserver
%config /etc/FreeWnn/zh_TW/cixing.data
/etc/FreeWnn/zh_TW/dic
%dir %attr(-,wnn,root) /var/lib/wnn/
%dir %attr(-,wnn,root) /var/lib/wnn/zh_TW/
%attr(-,wnn,root) /var/lib/wnn/zh_TW/dic
%config /etc/FreeWnn/zh_TW/libwnn.msg
%dir /etc/FreeWnn/
%dir /etc/FreeWnn/zh_TW/
/etc/FreeWnn/zh_TW/rk
/etc/FreeWnn/zh_TW/rk_p
/etc/FreeWnn/zh_TW/rk_z
%config /etc/FreeWnn/zh_TW/tserverrc
%config /etc/FreeWnn/zh_TW/uum.msg
%config /etc/FreeWnn/zh_TW/uumkey
%config /etc/FreeWnn/zh_TW/uumkey_e
%config /etc/FreeWnn/zh_TW/uumkey_p
%config /etc/FreeWnn/zh_TW/uumrc
%config /etc/FreeWnn/zh_TW/uumrc_p
%config /etc/FreeWnn/zh_TW/uumrc_z
%config /etc/FreeWnn/zh_TW/wnnenvrc
%config /etc/FreeWnn/zh_TW/wnnenvrc_R
%config /etc/FreeWnn/zh_TW/wnnstat.msg

%files -n fkwnn
%defattr(-,root,root)
%config /etc/init.d/fkwnn
%config /usr/sbin/rcfkwnn
%attr(755,wnn,root) /usr/bin/kserver
/usr/bin/katod
/usr/bin/katof
/usr/bin/kdtoa
/usr/bin/kwddel
/usr/bin/kwdreg
/usr/bin/kwnnkill
/usr/bin/kwnnstat
/usr/bin/kwnntouch
%dir /etc/FreeWnn/
%dir /etc/FreeWnn/ko_KR/
/etc/FreeWnn/ko_KR/dic
%dir %attr(-,wnn,root) /var/lib/wnn/
%dir %attr(-,wnn,root) /var/lib/wnn/ko_KR/
%attr(-,wnn,root) /var/lib/wnn/ko_KR/dic
%config /etc/FreeWnn/ko_KR/hinsi.data
%config /etc/FreeWnn/ko_KR/kserverrc
%config /etc/FreeWnn/ko_KR/libwnn.msg
/etc/FreeWnn/ko_KR/rk
%config /etc/FreeWnn/ko_KR/uum.msg
%config /etc/FreeWnn/ko_KR/uumkey
%config /etc/FreeWnn/ko_KR/uumrc
%config /etc/FreeWnn/ko_KR/wnnenvrc
%config /etc/FreeWnn/ko_KR/wnnenvrc_R
%config /etc/FreeWnn/ko_KR/wnnstat.msg
%{_libdir}/libkwnn.so.0*

%files -n fkwnndev
%defattr(-,root,root)
%dir /usr/include/kwnn/
/usr/include/kwnn/*
%{_libdir}/libkwnn.a
%{_libdir}/libkwnn.so
# I don't know how to build xwnmo. Will try that later ...
# %files -n xwnmo
# %doc Xwnmo/manual Xwnmo/manual.en Xwnmo/README Xwnmo/README.j
# %doc Xwnmo/X11R6/README Xwnmo/X11R6/include/README 
# %doc Xwnmo/xjutil/README Xwnmo/xjutil/README.j Xwnmo/xwnmo/README
# %doc Xwnmo/xwnmo/README.j Xwnmo/xwnmo/SEP_README Xwnmo/xwnmo/SEP_README.j
# /usr/X11R6/lib/X11/app-defaults/Xwnmo
# /usr/X11R6/bin/xwnmo
# /usr/X11R6/bin/killxwnmo
# /usr/X11R6/bin/xjutil
# /usr/X11R6/man/ja_JP.ujis/man1/xwnmo.1.gz
# /usr/X11R6/man/ja_JP.ujis/man1/ximrc.1.gz
# /usr/X11R6/man/ja_JP.ujis/man1/ximconf.1.gz
# /usr/X11R6/man/ja_JP.ujis/man1/cvt_fun_tbl.1.gz
# /usr/X11R6/man/ja_JP.ujis/man1/cvt_meta_tbl.1.gz
# /usr/X11R6/man/ja_JP.ujis/man1/killxwnmo.1.gz
# /usr/X11R6/man/ja_JP.ujis/man1/cvt_xim_tbl.1.gz
# /usr/X11R6/man/ja_JP.ujis/man1/xjutil.1.gz
# /usr/X11R6/man/man1/xwnmo.1.gz
# /usr/X11R6/man/man1/ximrc.1.gz
# /usr/X11R6/man/man1/ximconf.1.gz
# /usr/X11R6/man/man1/cvt_fun_tbl.1.gz
# /usr/X11R6/man/man1/cvt_meta_tbl.1.gz
# /usr/X11R6/man/man1/killxwnmo.1.gz
# /usr/X11R6/man/man1/cvt_xim_tbl.1.gz
# /usr/X11R6/man/man1/xjutil.1.gz
# /var/lib/wnn/ja_JP/uumrc.xim
# /var/lib/wnn/ja_JP/uumrc_vi.xim
# /var/lib/wnn/ja_JP/uumrc_e.xim
# /var/lib/wnn/ja_JP/uumkey.xim
# /var/lib/wnn/ja_JP/uumkey_v.xim
# /var/lib/wnn/ja_JP/uumkey_e.xim
# /var/lib/wnn/ja_JP/xim.msg
# /var/lib/wnn/ja_JP/xjutil.msg
# /var/lib/wnn/lt_LN/uumrc.xim
# /var/lib/wnn/lt_LN/uumkey.xim
# /var/lib/wnn/lt_LN/xim.msg
# /var/lib/wnn/zh_CN/uumrc.xim
# /var/lib/wnn/zh_CN/uumrc_p.xim
# /var/lib/wnn/zh_CN/uumrc_z.xim
# /var/lib/wnn/zh_CN/uumkey.xim
# /var/lib/wnn/zh_CN/uumkey_p.xim
# /var/lib/wnn/zh_CN/xim.msg
# /var/lib/wnn/zh_CN/xjutil.msg
# /var/lib/wnn/zh_TW/uumrc.xim
# /var/lib/wnn/zh_TW/uumrc_p.xim
# /var/lib/wnn/zh_TW/uumrc_z.xim
# /var/lib/wnn/zh_TW/uumkey.xim
# /var/lib/wnn/zh_TW/uumkey_p.xim
# /var/lib/wnn/zh_TW/xim.msg
# /var/lib/wnn/zh_TW/xjutil.msg
# /var/lib/wnn/ko_KR/uumrc.xim
# /var/lib/wnn/ko_KR/uumkey.xim
# /var/lib/wnn/ko_KR/xim.msg
# /var/lib/wnn/ko_KR/xjutil.msg
# %config /var/lib/wnn/ximconf
# %config /var/lib/wnn/ximrc
# %config /var/lib/wnn/ximrc_vi
# %config /var/lib/wnn/cvt_xim_tbl

%changelog