File scim-skk.spec of Package scim-skk

#
# spec file for package scim-skk (Version 0.5.2)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           scim-skk
BuildRequires:  anthy-devel gcc-c++ gtk2-devel scim-devel update-desktop-files
Version:        0.5.2
Release:        156
License:        GPL v2 or later
Group:          System/I18n/Japanese
AutoReqProv:    on
Requires:       skkdic
Provides:       locale(scim:ja)
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        SKK Input Method Engine for SCIM

%description
SKK Input Method Engine for SCIM



Authors:
--------
    Jun Mukai <mukai@jmuk.org>

%prep
%define scim_binary_version %(pkg-config --variable=scim_binary_version scim)
%define build_setup     1
%setup -q -n %{name}-%{version}
%patch0 -p0
%patch1 -p0
%patch2 -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 \
	    --enable-debug
make 

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

%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%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
* Wed Nov 07 2007 - mfabian@suse.de
- add missing includes to fix build with gcc 4.3.0.
* Sat Oct 28 2006 - meissner@suse.de
- added missing \ to enable optflags.
* Thu Oct 12 2006 - mfabian@suse.de
- fix to build with scim 1.4.5.
* Fri Feb 24 2006 - zsu@suse.de
- add Provides: locale(scim:ja)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 - zsu@suse.de
- update to 0.5.2
* Wed Oct 19 2005 - mfabian@suse.de
- make it build with gcc 4.1.
* Fri Aug 05 2005 - mfabian@suse.de
- update to 0.3.0.
* Tue Jun 07 2005 - mfabian@suse.de
- update to 0.2.1.
* Mon Jan 24 2005 - mfabian@suse.de
- new package: scim-skk, version 0.1.2.
openSUSE Build Service is sponsored by