File scim-chewing.spec of Package scim-chewing
#
# spec file for package scim-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: scim-chewing
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libchewing-devel
BuildRequires: perl-XML-Parser
BuildRequires: scim-devel
BuildRequires: update-desktop-files
Version: 0.3.4
Release: 0
PreReq: gconf2 libxml2 orbit2 glib2
Url: http://chewing.csie.net/
Source0: http://chewing.csie.net/download/scim/scim-chewing-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Chewing input method module for SCIM
License: GPL-2.0+
Group: System/I18n/Chinese
%description
Chewing input method module for SCIM.
Authors:
--------
Kanru Chen <kanru.96@stu.csie.ncnu.edu.tw>
Jim Huang <jserv@kaffe.org>
%prep
%define scim_binary_version %(pkg-config --variable=scim_binary_version scim)
%setup -q -n %{name}-%{version}
%build
#libtoolize --force
#autoreconf -I /opt/gnome/share/aclocal --force --install --verbose
CXXFLAGS="$RPM_OPT_FLAGS" \
./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
make DESTDIR=${RPM_BUILD_ROOT} install
rm -f $RPM_BUILD_ROOT%{_libdir}/scim-1.0/%{scim_binary_version}/*/*.la
%find_lang scim-chewing
%clean
%files -f scim-chewing.lang
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
%dir %{_libdir}/scim-1.0/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/
%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/chewing.so
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/
%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/chewing-imengine-setup.so
%dir %{_datadir}/scim/icons/
%{_datadir}/scim/icons/*.png
%changelog