Add --disable-iso-codes-check in spec file.
[platform/upstream/ibus.git] / ibus.spec.in
1 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2 %define mod_path ibus-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@
3 Name:       ibus
4 Version:    @PACKAGE_VERSION@
5 Release:    1%{?dist}
6 Summary:    Input Bus for Linux OS
7 License:    LGPLv2+
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 Source1:    xinput-ibus
12
13 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14
15 BuildRequires:  gettext-devel
16 BuildRequires:  libtool
17 BuildRequires:  python
18 BuildRequires:  gtk2-devel
19 BuildRequires:  qt-devel
20 BuildRequires:  dbus-glib-devel
21
22 Requires:   pygtk2
23 Requires:   dbus-python >= 0.83.0
24 Requires:   pyxdg
25 Requires:   gnome-python2-gconf
26 Requires:       iso-codes
27
28 %description
29 IBus means the Input Bus. It is a new input framework for Linux OS. It provides
30 full featured and user friendly input method user interface. It also may help
31 developers to develop input method easily.
32
33 %package gtk
34 Summary:    IBus im module for gtk2
35 Group:      System Environment/Libraries
36 Requires:   %{name} = %{version}-%{release}
37
38 %description gtk
39 This package contains ibus im module for gtk2
40
41 %package qt
42 Summary:    IBus im module for qt4
43 Group:      System Environment/Libraries
44 Requires:   %{name} = %{version}-%{release}
45 Requires:   qt >= 4.4.1
46
47 %description qt
48 This package contains ibus im module for qt4
49
50 %define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/ibus.conf
51
52 %prep
53 %setup -q
54
55 %build
56 %configure --disable-static --disable-iso-codes-check
57 # make -C po update-gmo
58 make %{?_smp_mflags}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 make DESTDIR=${RPM_BUILD_ROOT} install
63 rm -f $RPM_BUILD_ROOT%{_libdir}/libibus-gtk.la
64 rm -f $RPM_BUILD_ROOT%{_libdir}/libibus-gtk.so
65 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/immodules/im-ibus.la
66
67 # install xinput config file
68 mkdir -pm 755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/X11/xinit/xinput.d
69 install -pm 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_xinputconf}
70
71 %find_lang %{name}
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post -p /sbin/ldconfig
77
78 %post gtk
79 %{_bindir}/update-gtk-immodules %{_host} || :
80
81 %postun gtk
82 %{_bindir}/update-gtk-immodules %{_host} || :
83
84 %postun -p /sbin/ldconfig
85
86 %files -f %{name}.lang
87 %defattr(-,root,root,-)
88 %doc AUTHORS COPYING README
89 %dir %{python_sitelib}/ibus
90 %{python_sitelib}/ibus/*
91 %dir %{_datadir}/ibus/
92 %dir %{_datadir}/ibus/daemon/
93 %dir %{_datadir}/ibus/gconf/
94 %dir %{_datadir}/ibus/panel/
95 %dir %{_datadir}/ibus/setup/
96 %dir %{_datadir}/ibus/engine/
97 %dir %{_datadir}/ibus/icons/
98 %{_bindir}/ibus
99 %{_bindir}/ibus-setup
100 %{_libdir}/libibus-gtk.so*
101 %{_datadir}/ibus/daemon/*
102 %{_datadir}/ibus/gconf/*
103 %{_datadir}/ibus/panel/*
104 %{_datadir}/ibus/setup/*
105 %{_datadir}/ibus/icons/*
106 %{_datadir}/applications/*
107 %{_datadir}/pixmaps/*
108 %{_bindir}/ibus-daemon
109 %{_bindir}/ibus-gconf
110 %{_bindir}/ibus-panel
111 %{_bindir}/ibus-x11
112 %config %{_xinputconf}
113
114 %files gtk
115 %defattr(-,root,root,-)
116 %doc
117 %{_libdir}/gtk-2.0/immodules/im-ibus.so
118
119 %files qt
120 %defattr(-,root,root,-)
121 %doc
122 %{_libdir}/qt4/plugins/inputmethods/libibus.so
123
124 %changelog
125 * Thu Aug 07 2008 Huang Peng <shawn.p.huang@gmail.com> - @VERSION@-1
126 - The first version.