File scim-tomoe.spec of Package scim-tomoe

#
# spec file for package scim-tomoe (Version 0.6.0)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           scim-tomoe
BuildRequires:  gcc-c++ gtk2-devel gucharmap-devel intltool scim-devel tomoe-devel tomoe-gtk-devel update-desktop-files
Version:        0.6.0
Release:        1
License:        GPL v2 or later
Group:          System/I18n/Japanese
AutoReqProv:    on
Provides:       locale(scim:ja)
Url:            http://sourceforge.net/projects/tomoe/
Source0:        scim-tomoe-0.6.0.tar.bz2
Patch0:         libtool-autoconf.patch
Patch3:         missing-includes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Tomoe Input Method Engine for SCIM

%description
Tomoe 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
%patch3 -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/anthy.{a,la}
rm -f $RPM_BUILD_ROOT/%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/anthy-imengine-setup.{a,la}
%find_lang scim-tomoe

%clean

%files -f scim-tomoe.lang
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README TODO ChangeLog
%{_bindir}/scim-tomoe
%{_libdir}/scim-1.0/%{scim_binary_version}/Helper/tomoe*
%dir %{_datadir}/scim/icons/
%{_datadir}/scim/icons/scim-tomoe.png

%changelog
* Mon Aug 11 2008 mfabian@suse.de
- update to 0.6.0:
  • Adaptation to tomoe-gtk-0.6.0.
- remove fix-to-build-with-scim-1.4.5.patch (included upstream).
* Thu Nov 08 2007 mfabian@suse.de
- add missing includes to fix build with gcc 4.3.0.
* Mon Aug 06 2007 mfabian@suse.de
- update to 0.5.0:
  • Adaptation to libtomoegtk-0.5.0.
* Thu Dec 14 2006 mfabian@suse.de
- update to 0.4.0.
  • Adaptation to libtomoegtk-0.3.0.
- remove scim-tomoe-no-focus.diff (included upstream).
* 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
* Tue Jan 17 2006 zsu@suse.de
- Prevent main window from grabbing input focus to increase usability.
* Fri Jan 13 2006 mfabian@suse.de
- new package: scim-tomoe, version 0.2.0.
openSUSE Build Service is sponsored by