File scim-chewing.spec of Package scim-chewing

#
# spec file for package scim-chewing (Version 0.3.3)
#
# 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:           scim-chewing
BuildRequires:  gcc-c++ gtk2-devel libchewing-devel perl-XML-Parser scim-devel update-desktop-files
BuildRequires:  intltool
Version:        0.3.3
Release:        2
License:        GPL v2 or later
Group:          System/I18n/Chinese
AutoReqProv:    on
Provides:       locale(scim:zh_TW;zh_HK)
PreReq:         gconf2 libxml2 orbit2 glib2
Url:            http://chewing.csie.net/
Source0:        http://chewing.csie.net/download/scim/scim-chewing-%{version}.tar.bz2
Patch0:         missing-includes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Chewing input method module for SCIM

%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}
%patch0 -p1

%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
openSUSE Build Service is sponsored by