File scim-canna.spec of Package scim-canna

#
# spec file for package scim-canna (Version 1.0.0)
#
# 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-canna
BuildRequires:  canna-devel gcc-c++ gtk2-devel scim-devel update-desktop-files
Version:        1.0.0
Release:        129
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/18849/scim-canna-1.0.0.tar.bz2
Patch0:         commit-when-focus-out.patch
Patch1:         libtool-autoconf.patch
Patch2:         missing-includes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Canna Input Method Engine for SCIM

%description
Canna Input Method Engine for SCIM



Authors:
--------
    Hiroyuki Ikezoe <poincare@ikezoe.net>
    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
%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/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

%clean

%files -f scim-canna.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/canna.so
%if %{build_setup}
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/
%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/canna-imengine-setup.so
%endif
%{_datadir}/scim/icons/scim-canna.png
%changelog
* Fri Nov 09 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.
* Wed Sep 06 2006 - mfabian@suse.de
- update to 1.0.0.
  • Add README
  • Add on/off key.
  • Add preferences for initial input mode.
* Thu Feb 23 2006 - mfabian@suse.de
- add "Provides: locale(scim:ja)".
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 - mfabian@suse.de
- update to 0.1.3.
- remove bugzilla-105566-scim-setup-crash.patch (included upstream).
- add libtool-autoconf.patch to make it build.
* Fri Aug 19 2005 - mfabian@suse.de
- Bugzilla #105566: apply patch by Zhe Su <zsu@novell.com>.
* Fri Aug 05 2005 - mfabian@suse.de
- update to 0.1.1.
  remove Uli's cpp.patch, it is included upstream now.
* Wed Jun 08 2005 - uli@suse.de
- fixed C++ sloppiness
- pass RPM_OPT_FLAGS correctly
- removed explicit -fPIC, the package takes care of that
* Tue Jun 07 2005 - mfabian@suse.de
- new package: scim-canna, version 0.1.0.
openSUSE Build Service is sponsored by