File scim-chewing.spec of Package scim-chewing
#
# spec file for package scim-chewing
#
# Copyright (c) 2014 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: scim-chewing
Version: 0.3.6git20140424
Release: 0
Summary: Chewing input method module for SCIM
License: GPL-2.0+
Group: System/I18n/Chinese
Url: http://chewing.csie.net/
#Source: http://chewing.csie.net/download/scim/%{name}-%{version}.tar.xz
Source: %{name}-%{version}.tar.xz
Patch: %{name}-0.3.6-autogen.patch
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libchewing-devel
BuildRequires: libtool
BuildRequires: perl-XML-Parser
BuildRequires: scim-devel
BuildRequires: update-desktop-files
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Chewing input method module for SCIM.
%prep
%define scim_binary_version %(pkg-config --variable=scim_binary_version scim)
%setup -q
%patch -p1
NOCONFIGURE=1 ./autogen.sh
%build
CXXFLAGS="%{optflags}" \
./configure --prefix=/usr \
--sysconfdir=%{_sysconfdir} \
--libdir=%{_libdir} \
--disable-static \
--disable-schemas-install \
--with-gconf-schema-file-dir=/etc/opt/gnome/gconf/schemas \
--enable-debug
make
%install
%makeinstall
find %{buildroot}%{_libdir} -name "*.la" -type f -delete -print
%find_lang scim-chewing
%clean
%files -f scim-chewing.lang
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/chewing.so
%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/chewing-imengine-setup.so
%{_datadir}/scim/icons/*.png
%changelog