File scim-canna.spec of Package scim-canna

# spec file for package scim-canna (Version 1.0.0)
# Copyright (c) 2010 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

# norootforbuild

Name:           scim-canna
BuildRequires:  canna-devel gcc-c++ gtk2-devel scim-devel update-desktop-files
Version:        1.0.0
Release:        251
License:        GPLv2+
Group:          System/I18n/Japanese
AutoReqProv:    on
Provides:       locale(scim:ja)
Patch1:         libtool-autoconf.patch
Patch2:         missing-includes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Canna Input Method Engine for SCIM

Canna Input Method Engine for SCIM

%define scim_binary_version %(pkg-config --variable=scim_binary_version scim)
%define build_setup     1
%setup -q -n %{name}-%{version}
%patch2 -p1
%if %suse_version <= 1110
%patch1 -p1
libtoolize --force
autoreconf -I /opt/gnome/share/aclocal --force --install --verbose

./configure --prefix=/usr \
            --sysconfdir=%{_sysconfdir} \
	    --libdir=%{_libdir} \
            --disable-static \

make DESTDIR=${RPM_BUILD_ROOT} install
rm -f $RPM_BUILD_ROOT/%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/canna.{a,la}
rm -f $RPM_BUILD_ROOT/%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/canna-imengine-setup.{a,la}
%find_lang scim-canna


%files -f scim-canna.lang
%defattr(-, root, root)
%dir %{_libdir}/scim-1.0/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/
%if %{build_setup}
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/

openSUSE Build Service is sponsored by