File ibus-chewing.spec of Package ibus-chewing
#
# spec file for package ibus-chewing
#
# Copyright (c) 2012 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/
#
Name: ibus-chewing
Version: 1.4.3
Release: 0
Summary: The Chewing engine for IBus input platform
License: GPL-2.0+
Group: System/I18n/Chinese
Url: http://code.google.com/p/ibus/
Source0: http://ibus.googlecode.com/files/%{name}-%{version}-Source.tar.gz
Source1: cmake-fedora-modules.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gconf2-devel
BuildRequires: gettext-devel
BuildRequires: gob2
BuildRequires: gtk2-devel
BuildRequires: ibus-devel >= 1.2
BuildRequires: libchewing-devel >= 0.3.2
BuildRequires: pkg-config
BuildRequires: xorg-x11-devel
Requires: gconf2
Requires: ibus >= 1.2
Requires: libchewing >= 0.3.2
%gconf_schemas_prereq
%description
The Chewing engine for IBus platform. It provides Chinese input method from
libchewing.
新酷音輸入法
%prep
%setup -q -n %{name}-%{version}-Source
%build
tar -jxvf %{SOURCE1}
cmake -DCMAKE_INSTALL_PREFIX='/usr' \
-DLIBEXEC_DIR='%{_libdir}/ibus' \
-DSYSCONF_INSTALL_DIR='/etc'
make
%install
mkdir -p $RPM_BUILD_ROOT/etc/gconf/schemas
%{?make_install}%{!?make_install:%makeinstall}
rm -r $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list %{name}.lang >%{name}.lst
%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lst
%defattr(-,root,root,-)
%doc AUTHORS README ChangeLog COPYING
%{_libdir}/ibus
%{_datadir}/%{name}
%{_datadir}/ibus
%changelog