Rename anthy to hangul
[platform/upstream/ibus-hangul.git] / ibus-hangul.spec.in
1 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2 %define mod_path ibus-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@
3 Name:       @PACKAGE_NAME@
4 Version:    @PACKAGE_VERSION@
5 Release:    1%{?dist}
6 Summary:    The Anthy engine for IBus input platform
7 License:    GPLv2+
8 Group:      System Environment/Libraries
9 URL:        http://code.google.com/p/ibus/
10 Source0:    http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
11
12 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildRequires:  gettext-devel
15 BuildRequires:  libtool
16 BuildRequires:  python-devel
17 BuildRequires:  anthy-devel
18 BuildRequires:  swig
19 BuildRequires:  pkgconfig
20
21 Requires:   ibus
22 Requires:   anthy
23
24 %description
25 The Anthy engine for IBus platform. It provides Japanese input method from
26 libanthy.
27
28 %prep
29 %setup -q
30
31 %build
32 %configure --disable-static
33 # make -C po update-gmo
34 make %{?_smp_mflags}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 make DESTDIR=${RPM_BUILD_ROOT} install
39 rm -f $RPM_BUILD_ROOT%{python_sitearch}/_anthy.la
40
41 %find_lang %{name}
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files -f %{name}.lang
47 %defattr(-,root,root,-)
48 %doc AUTHORS COPYING README
49 # %dir %{python_sitearch}/ibus
50 %{python_sitearch}/anthy.py*
51 %{python_sitearch}/_anthy.so
52 %dir %{_datadir}/@PACKAGE@
53 %{_bindir}/ibus-engine-anthy
54 %{_datadir}/@PACKAGE@/*
55 %{_datadir}/ibus/engine/anthy.engine
56
57 %changelog
58 * Fri Aug 08 2008 Huang Peng <shawn.p.huang@gmail.com> - @VERSION@-1
59 - The first version.