Fix spec error.
[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 Hangul 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:  libhangul-devel
18 BuildRequires:  swig
19 BuildRequires:  pkgconfig
20
21 Requires:   ibus
22
23 %description
24 The Hangul engine for IBus platform. It provides Korean input method from
25 libhangul.
26
27 %prep
28 %setup -q
29
30 %build
31 %configure --disable-static
32 # make -C po update-gmo
33 make %{?_smp_mflags}
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 make DESTDIR=${RPM_BUILD_ROOT} install
38 rm -f $RPM_BUILD_ROOT%{python_sitearch}/_hangul.la
39
40 %find_lang %{name}
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files -f %{name}.lang
46 %defattr(-,root,root,-)
47 %doc AUTHORS COPYING README
48 # %dir %{python_sitearch}/ibus
49 %{python_sitearch}/hangul.py*
50 %{python_sitearch}/_hangul.so
51 %dir %{_datadir}/@PACKAGE@
52 %{_bindir}/ibus-engine-hangul
53 %{_datadir}/@PACKAGE@/*
54 %{_datadir}/ibus/engine/hangul.engine
55
56 %changelog
57 * Fri Aug 08 2008 Huang Peng <shawn.p.huang@gmail.com> - @VERSION@-1
58 - The first version.