File scim-wnn.spec of Package scim-wnn

#
# spec file for package scim-wnn (Version 0.2.4)
#
# 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-wnn
BuildRequires:  gcc-c++ gtk2-devel scim-devel update-desktop-files wnn-sdk
Version:        0.2.4
Release:        147
License:        GPL v2 or later
Group:          System/I18n/Japanese
AutoReqProv:    on
Provides:       locale(scim:ja)
Url:            http://sourceforge.jp/projects/scim-imengine/
Source0:        http://osdn.dl.sourceforge.jp/scim-imengine/14016/scim-wnn-0.2.4.tar.bz2
Patch0:         libtool-autoconf.patch
Patch1:         missing-includes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Wnn Input Method Engine for SCIM

%description
Wnn Input Method Engine for SCIM



Authors:
--------
    TAM (Teppei Tamra) <tam-t@par.odn.ne.jp>
    Takuro Ashie <ashie@homa.ne.jp>

%prep
%define scim_binary_version %(pkg-config --variable=scim_binary_version scim)
%define build_setup     1
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -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/wnn.{a,la}
rm -f $RPM_BUILD_ROOT/%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/wnn-imengine-setup.{a,la}
%find_lang scim-wnn

%clean

%files -f scim-wnn.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/wnn.so
%if %{build_setup}
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/
%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/wnn-imengine-setup.so
%endif
%dir %{_datadir}/scim/icons/
%{_datadir}/scim/icons/scim-wnn.png
%dir %{_datadir}/scim/scim-wnn/
%{_datadir}/scim/scim-wnn/*
%changelog
* Thu Nov 08 2007 - mfabian@suse.de
- add missing includes to fix build with gcc 4.3.0.
* Thu Oct 12 2006 - mfabian@suse.de
- fix to build with scim 1.4.5.
* Mon Jul 17 2006 - mfabian@suse.de
- add "#!BuildIgnore: NX" to make it build for the
  xorg7-SUSE_Factory in the openSUSE build service.
* Fri Feb 24 2006 - zsu@suse.de
- add Provides: locale(scim:ja)
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 - mfabian@suse.de
- fix libtool problem in configure.ac to make the package build
  again.
* Fri May 06 2005 - mfabian@suse.de
- update to 0.2.4.
* Tue Feb 15 2005 - mfabian@suse.de
- update to 0.2.2.
- remove obsolete patch.
* Tue Dec 28 2004 - mfabian@suse.de
- update to 0.2.0.
- add patch received from author to fix a crash of scim when
  selecting the last predicted candidate while using the horizontal
  candidate display. See also:
  http://lists.sourceforge.jp/mailman/archives/scim-imengine-dev/2004-December/000099.html
* Mon Dec 20 2004 - mfabian@suse.de
- update to 0.1.2 which makes it work with Wnn7SDK.
* Fri Dec 17 2004 - mfabian@suse.de
- new package: scim-wnn, version 0.1.1.
openSUSE Build Service is sponsored by