File cannadic.spec of Package cannadic
#
# spec file for package cannadic (Version 0.95a)
#
# Copyright (c) 2004 SuSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
# usedforbuild aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv kbd less libacl libattr libgcc libselinux libstdc++ libxcrypt m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch permissions popt procinfo procps psmisc pwdutils rcs readline sed sendmail strace syslogd sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel autoconf automake binutils canna canna-devel canna-libs gcc gdbm gettext libtool perl rpm
Name: cannadic
BuildRequires: canna-devel
License: GPL
Group: System/I18n/Japanese
Prereq: /usr/sbin/useradd
Autoreqprov: on
Version: 0.95a
Release: 0
URL: http://cannadic.oucrc.org/
# Original source: http://cannadic.oucrc.org/cannadic-0.95.tar.gz
Source0: http://cannadic.oucrc.org/cannadic-0.95a.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Extension Dictionary for Canna
# Summary(ja): かんな辞書(拡張版)
# %description -l ja
# 本辞書は Canna3.5b2 標準添付の辞書を補完する目的で編纂したものです。
# GPL で配布されているかな漢字変換辞書、 および改変した辞書の再配布に制
# 限が課せられていないかな漢字変換辞書を ベースとしてかんな辞書形式に再
# 構成し、 個人的利用の中で不足した単語を逐次追加収録してあります。 現在、
# 自立語辞書および付属語辞書の総単語数は約130,000語あります。
# 著者:
# ------
# Masao Sugimoto <nowaki@osk3.3web.ne.jp>
%description
This dictionary has been compiled as a supplement to the dictionaries
distributed with Canna3.5b2. It is based on Kana-Kanji conversion
dictionaries distributed under the GPL and Kana-Kanji conversion
distributed without restrictions. While using this dictionary, many
missing words have been successively added. Currently the main
dictionary and the suffix- and prefix-dictionary together contain about
130,000 words.
Authors:
--------
Masao Sugimoto <nowaki@osk3.3web.ne.jp>
%prep
%setup0
%build
%define canna_dir /var/lib/canna
%define canna_dic_dir /var/lib/canna/dic
%define canna_system_dic_dir %{canna_dic_dir}/canna
%define canna_user_dic_dir %{canna_dic_dir}/user
%define canna_root_dic_dir %{canna_user_dic_dir}/root
make maindic
make subdic
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p $RPM_BUILD_ROOT%{canna_system_dic_dir}
install -m 644 gcanna.cbd gcanna.cld $RPM_BUILD_ROOT%{canna_system_dic_dir}
# Installing the adjunct dictionary gcannaf as a binary dictionary
# crashes the cannaserver!
# Install a text dictionary of the adjunct dictionary gcannaf instead:
# (contrary to the binary version, the text version seems to work!)
#install -m 644 gcannaf.cbd gcannaf.cld $RPM_BUILD_ROOT%{canna_system_dic_dir}
install -m 644 gcannaf.ctd $RPM_BUILD_ROOT%{canna_system_dic_dir}
%pre
/usr/sbin/useradd -r -o -g bin -u 66 -s /bin/false -c "Wnn System Account" -d /var/lib/wnn wnn 2> /dev/null || :
%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files -n cannadic
%defattr(-, root, root)
%doc COPYING README
%dir %{canna_dir}/
%dir %attr(-, wnn, root) %{canna_dic_dir}/
%dir %attr(-, wnn, root) %{canna_system_dic_dir}/
%attr(-, wnn, root) %{canna_system_dic_dir}/*
%changelog -n cannadic
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Feb 25 2004 - tiwai@suse.de
- updated to version 0.95a.
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Fri Sep 19 2003 - mfabian@suse.de
- add user "wnn" in %%pre and add "Prereq: /usr/sbin/useradd"
* Thu Sep 18 2003 - mfabian@suse.de
- Bugzilla #31220: fix permissions and ownerships to agree
with the main canna package.
* Mon Aug 25 2003 - mfabian@suse.de
- update to version 0.95.
* Fri Jun 13 2003 - mfabian@suse.de
- fix "directory now owned by any package".
* Sun Aug 11 2002 - mfabian@suse.de
- update to version 0.94c
- change # neededforbuild:
canna -> canna canna-devel canna-libs
* Thu Apr 04 2002 - mfabian@suse.de
- update to version 0.94b
* Fri Sep 07 2001 - mfabian@suse.de
- new package: supplementary Canna dictionary "cannadic",
Version 0.92