File novel-pinyin.spec of Package novel-pinyin

#
# spec file for package novel-pinyin (Version 0.2.5)
#
# Copyright (c) 2009 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:  gcc-c++ gtk2-devel intltool scim-devel
BuildRequires:  db-devel
Summary:        A Simplified Chinese Input Method
Version:        0.2.5
Release:        1
License:        GPL v2 or later
Group:          System/I18n/Chinese
AutoReqProv:    on
Url:            http://novel-pinyin.sourceforge.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

%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
* Mon Sep 01 2008 - pwu@suse.de
- update to version 0.2.3
  • Import the entire scim-pinyin phrases as corpus.
  • Better HMM parameter adjusts.
  • Better candidates adjusts.
  • Add version check.
  • Add data file corruption detection.
  • Protect against integer overflow.
* Mon Mar 10 2008 - pwu@suse.de
- Add ExclusiveArch: i586 x86_64
* Fri Mar 07 2008 pwu@suse.de
- update to novel-pinyin 0.1.6
  • Fixes some behavior.
  • Fixes "nin'e" to "ni'ne".
* Mon Feb 25 2008 mfabian@suse.de
- use find_lang rpm macro.
* Fri Feb 22 2008 pwu@suse.de
- update to novel-pinyin 0.1.5
  • Fixes input method behavior.
* Tue Feb 19 2008 pwu@suse.de
- update to novel-pinyin 0.1.3
  • Fixes i18n bug, duplicate candidates, show up candidates.
* Thu Feb 14 2008 pwu@suse.de
- Initial Release of novel-pinyin
openSUSE Build Service is sponsored by