File tomoe-gtk.spec of Package tomoe-gtk

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

# norootforbuild

Name:           tomoe-gtk
Version:        0.6.0
Release:        23
BuildRequires:  gtk2-devel gucharmap-devel python python-cairo-devel python-gobject2-devel python-gtk-devel tomoe-devel update-desktop-files
%if %suse_version >= 1030
BuildRequires:  fdupes
# for /usr/share/gtk-doc
BuildRequires:  gtk-doc
License:        LGPL-2.1+
Group:          System/I18n/Japanese
AutoReqProv:    on
Requires:       libtomoe-gtk0 = %{version}
Provides:       libtomoe-gtk-0.5.1
Obsoletes:      libtomoe-gtk-0.5.1
Patch0:         fix-build.patch
Patch1:         gucharmap.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}
Summary:        TOMOE GTK+ library

TOMOE GTK+ library

    Takuro Ashie <>
    HIGUCHI Daisuke <>

%package -n libtomoe-gtk0
License:        LGPL-2.1+
Summary:        TOMOE GTK+ library
Group:          System/I18n/Japanese
Requires:       %{name} = %{version}

%description -n libtomoe-gtk0
TOMOE GTK+ library

    Takuro Ashie <>
    HIGUCHI Daisuke <>

%package devel
License:        LGPL-2.1+
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version} tomoe-devel gucharmap-devel
Provides:       libtomoe-gtk-devel-0.5.1
Obsoletes:      libtomoe-gtk-devel-0.5.1

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

    Takuro Ashie <>
    HIGUCHI Daisuke <>

%package doc
License:        LGPL-2.1+
Summary:        TOMOE GTK+ library
Group:          System/I18n/Japanese
Requires:       %{name} = %{version}
Provides:       libtomoe-gtk-doc-0.5.1
Obsoletes:      libtomoe-gtk-doc-0.5.1

%description doc
TOMOE GTK+ library

    Takuro Ashie <>
    HIGUCHI Daisuke <>

%setup -q
%patch0 -p 1
%if %suse_version > 1100
#%patch1 -p 1

#autoreconf --force --install
%if %suse_version > 1100
        --without-gucharmap \
	--enable-gtk-doc \
make CFLAGS="$CFLAGS" %{?jobs:-j%jobs}

%find_lang tomoe-gtk


%post -n libtomoe-gtk0 -p /sbin/ldconfig

%postun -n libtomoe-gtk0 -p /sbin/ldconfig

%defattr(-, root, root)

%files -n libtomoe-gtk0
%defattr(-, root, root)

%files lang -f tomoe-gtk.lang

%files devel
%defattr(-, root, root)

%files doc
%defattr(-, root, root)

* Fri Jun 19 2009
- allow build on 10.3 target
* Fri Aug 08 2008
- add Provides and Obsoletes to the sub-packages.
* Fri Aug 01 2008
- update to 0.6.0: ustream changes:
  • Rename the main package name from libtomoe-gtk to tomoe-gtk
  • Choose default dictionary according to current locale.
  However currently no dictionary will be enabled with most
  locales except ja or zh_CN, and on-demand language switching
  is not implemented yet.
  Please use tomoe application with above locales like this:
  $ LANG=zh_CN uim-tomoe-gtk
  $ LANG=ja scim-tomoe
  • Add tomoe_gtk_init() and tomoe_gtk_quit().
  Although tomoe_window_new() calls tomoe_gtk_init() internally
  for compatibility reason, it is recommended to call
  tomoe_gtk_init() manually in your code.
  • Add --with-gucharmap option.
  • Python binding.
  • Some minor fixes.
- create new subpackage libtomoe-gtk0 to comply with the shared
  library packaging policy.
* Thu Jan 31 2008
- Devhelp documentation moved to the separate package (bnc#248813).
* Tue Aug 07 2007
- Split off a -lang subpackage
- Use fdupes
- Buildrequire gtk-doc, not gtk2-doc
- Add %%post and %%postun.
* Tue Aug 07 2007
- added gtk2-doc to the buildrequires so the doc paths get an owner.
* Mon Aug 06 2007
- update to 0.5.1:
  • Fix a bug that the candidates view in the handwriting page
  isn't drawn on KDE environment.
  • Search characters by stroke count.
- add gucharmap-devel to BuildRequires.
* Wed Feb 07 2007
- Do not build static libraries (#238552).
* Thu Dec 14 2006
- update to 0.4.0
  • Adaptation to TOMOE-0.4.0.
  • Removed dictionary pages. It will be provided as separated
  tools later.
- remove bugzilla-204093-local-variable-used-before-set.patch
  (included upstream).
- remove bugzilla-212523-local-variable-used-before-set.patch not
  needed anymore.
* Tue Oct 17 2006
- Bugzilla #212523: “local variable used before set”.
* Thu Sep 28 2006
- Bugzilla #204090: “local variable used before set”.
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006
- new package: libtomoe-gtk, version 0.1.0.
openSUSE Build Service is sponsored by