File scim-skk.spec of Package scim-skk
#
# spec file for package scim-skk
#
# 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/
#
%define scim_gtk3 1
Name: scim-skk
Version: 0.5.2
Release: 0
Summary: SKK Input Method Engine for SCIM
License: GPL-2.0+
Group: System/I18n/Japanese
Url: http://sourceforge.jp/projects/scim-imengine/
Source0: http://osdn.dl.sourceforge.jp/scim-imengine/15351/scim-skk-0.5.2.tar.bz2
Patch0: commit-when-focus-out.patch
Patch1: libtool-options.patch
Patch2: missing-includes.patch
Patch3: scim-skk-iter-remove-fix.diff
Patch4: scim-skk-fix-returns.diff
#PATCH-FOR-UPSTREAM fix builds against latest gtk.
Patch5: gtk-2.24+-replace-functions.patch
BuildRequires: anthy-devel
BuildRequires: gcc-c++
BuildRequires: scim-devel
BuildRequires: update-desktop-files
Requires: skkdic
# Provides: locale(scim:ja)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
SKK Input Method Engine for SCIM
%prep
%define scim_binary_version %(pkg-config --variable=scim_binary_version scim)
%define build_setup 1
%setup -q
%patch0 -p0
%patch2 -p1
%patch3 -p1
%patch4 -p1
%if 0%{?suse_version} <= 1110
%patch1 -p0
libtoolize --force
autoreconf -I /opt/gnome/share/aclocal --force --install --verbose
%endif
%if 0%{?scim_gtk3}
%patch5 -p1
%endif
%build
CXXFLAGS="%{optflags}" \
./configure --prefix=/usr \
--sysconfdir=%{_sysconfdir} \
--libdir=%{_libdir} \
--disable-static \
--enable-debug
make
%install
%makeinstall
rm -f %{buildroot}/%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/skk.{a,la}
rm -f %{buildroot}/%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/skk-imengine-setup.{a,la}
%find_lang scim-skk
%files -f scim-skk.lang
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README* ChangeLog TODO
%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/skk.so
%if %{build_setup}
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/
%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/skk-imengine-setup.so
%endif
%dir %{_datadir}/scim/icons/
%{_datadir}/scim/icons/scim-skk.png
%changelog