%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")

%define git_source 0

Name: ibus-anthy
Version: 1.2.0.20091127
Release: 1%{?_dist_release}
Summary: The Anthy engine for IBus input platform
License: GPLv2+
Group: System Environment/Libraries
URL: http://code.google.com/p/ibus/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gettext, libtool, python-devel >= 2.5, anthy-devel, swig
Requires: ibus, anthy

Packager: iwaim

%description
The Anthy engine for iBus platform. It provides Japanese input method from
libanthy.

%prep
%setup -q

%build
%if %{git_source}
./autogen.sh
%endif
%configure --disable-static
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install

%find_lang %{name}

%clean
rm -rf %{buildroot}

%check
make check

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libexecdir}/ibus-engine-anthy
%{_libexecdir}/ibus-setup-anthy
%{python_sitearch}/*
%dir %{_datadir}/ibus-anthy
%{_datadir}/ibus-anthy/*
%{_datadir}/ibus/component/anthy.xml

%changelog
* Sun Nov 29 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091127-1 
- new upstream release

* Thu Oct  8 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20090917-1
- new upstream release

* Thu Sep 17 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20090907-1
- new upstream release
- update BuildRequires

* Fri Aug 28 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090814-1
- new upstream release

* Sat Jun 20 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090603-1
- new upstream release
- add Packager tag

* Sat Apr  4 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090402-1
- new upstream release

* Mon Feb 23 2009 IWAI, Masaharu <iwai@alib.jp> - 1.1.0.20090211-1
- new upstream release

* Mon Jan 26 2009 IWAI, Masaharu <iwai@alib.jp> - 0.1.1.20090126-1
- initial release
