File novel-pinyin.spec of Package novel-pinyin
#
# spec file for package novel-pinyin (Version 0.2.4)
#
# 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: novel-pinyin
BuildRequires: db-devel gcc-c++ gtk2-devel intltool scim-devel
Summary: A Simplified Chinese Input Method
Version: 0.2.4
Release: 9
License: GPLv2+
Group: System/I18n/Chinese
AutoReqProv: on
Url: http://novel-pinyin.sf.net
Source0: novel-pinyin-%{version}.tar.bz2
#Patch1: urgent-patch-fix-novel-pinyin-first-load.patch
Patch2: novel-pinyin-fixes-train-factor.patch
Patch3: bnc528583.patch
ExclusiveArch: %{ix86} x86_64
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define scim_moduledir %(pkg-config --variable=moduledir scim)
%description
A Simplified Chinese Sentence-Based Pinyin Input Method Engine Based On
Markov Model.
Authors:
--------
Peng Wu <alexepico@gmail.com>
%prep
%setup -q -n %{name}-%{version}
#%patch1 -p2
%patch2 -p1
%patch3 -p1
find . -type f | xargs chmod u+w
%build
%configure
make
%install
make DESTDIR=${RPM_BUILD_ROOT} install
rm -f $RPM_BUILD_ROOT/%{scim_moduledir}/IMEngine/novel_pinyin.*a
rm -f $RPM_BUILD_ROOT/%{scim_moduledir}/SetupUI/novel-pinyin-imengine-setup.*a
#install -m 644 $RPM_SOURCE_DIR/gb_char.bin \
# $RPM_BUILD_ROOT/%{_datadir}/scim/novel-pinyin/gb_char.bin
#install -m 644 $RPM_SOURCE_DIR/gbk_char.bin \
# $RPM_BUILD_ROOT/%{_datadir}/scim/novel-pinyin/gbk_char.bin
#install -m 644 $RPM_SOURCE_DIR/pinyin_index.bin \
# $RPM_BUILD_ROOT/%{_datadir}/scim/novel-pinyin/pinyin_index.bin
#install -m 644 $RPM_SOURCE_DIR/bigram.db \
# $RPM_BUILD_ROOT/%{_datadir}/scim/novel-pinyin/bigram.db
%find_lang novel-pinyin
%files -f novel-pinyin.lang
%defattr(-, root, root)
%{scim_moduledir}/IMEngine/novel_pinyin.so
%{scim_moduledir}/SetupUI/novel-pinyin-imengine-setup.so
%{_datadir}/scim/icons/novel-pinyin.png
%dir %{_datadir}/scim/novel-pinyin
%{_datadir}/scim/novel-pinyin/bigram.db
%{_datadir}/scim/novel-pinyin/gb_char.bin
%{_datadir}/scim/novel-pinyin/gbk_char.bin
%{_datadir}/scim/novel-pinyin/pinyin_index.bin
%{_datadir}/scim/novel-pinyin/special_table
%changelog