File novel-pinyin.spec of Package novel-pinyin
#
# spec file for package novel-pinyin
#
# Copyright (c) 2016 SUSE LINUX 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/
#
%define scim_moduledir %(pkg-config --variable=moduledir scim)
Name: novel-pinyin
Version: 0.2.6
Release: 0
Summary: A Simplified Chinese Input Method
License: GPL-2.0+
Group: System/I18n/Chinese
Url: https://github.com/scim-im/scim-novel-pinyin
Source: https://github.com/scim-im/scim-novel-pinyin/archive/v%{verison}/scim-novel-pinyin-%{version}.tar.gz
Patch0: novel-pinyin-abuild.patch
BuildRequires: db-devel
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: scim-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A Simplified Chinese Sentence-Based Pinyin Input Method Engine Based On
Markov Model.
%prep
%setup -q -n scim-%{name}-%{version}
%patch -P 0 -p1
./autogen.sh
%build
%configure
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
find %{buildroot} -name "*.la" -delete -print
find %{buildroot} -name "*.a" -delete -print
%find_lang novel-pinyin
%files -f novel-pinyin.lang
%defattr(-, root, root)
%{scim_moduledir}/IMEngine/novel_pinyin.so
%if 0%{?suse_version} >= 1140
%{scim_moduledir}/SetupUI/novel-pinyin-imengine-setup.so
%endif
%{_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