Add rpm build scripts.
[ibus.git] / ibus.spec.in
blobfe272ef8fa9a6cf73225aa94e6708ac597aa0e75
1 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
3 # %define mod_path scim-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@
4 Name: ibus
5 Version: @PACKAGE_VERSION@
6 Release: 1%{?dist}
7 Summary: Input bus for Linux OS
8 License: LGPLv2+
9 Group: System Environment/Libraries
10 URL: http://code.google.com/p/ibus/
11 Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14 BuildRequires: gettext-devel, libtool, python-devel, pygtk2-devel, perl(XML::Parser) gtk2-devel qt-devel
15 Requires: pygtk2
17 %description
18 Input bus for Linux OS
20 %package gtk
21 Summary: IBus im module for gtk2
22 Group: System Environment/Libraries
23 Requires: %{name} = %{version}-%{release}
25 %description gtk
26 This package contains ibus im module for gtk2
28 %package qt
29 Summary: IBus im module for qt4
30 Group: System Environment/Libraries
31 Requires: %{name} = %{version}-%{release}
33 %description qt
34 This package contains ibus im module for qt4
36 %package enchant
37 Summary: IBus enchant engine
38 Group: System Environment/Libraries
39 BuildRequires: python-enchant
40 Requires: %{name} = %{version}-%{release} python-enchant
42 %description enchant
43 This package contains an enchant IM engine.
45 %package anthy
46 Summary: Anthy japanese IM engine
47 Group: System Environment/Libraries
48 Requires: %{name} = %{version}-%{release} anthy
50 %description anthy
51 This package contains the anthy IM engine
54 Requires: %{name}-xingma = %{version}-%{release}
56 %prep
57 %setup -q
59 %build
60 %configure --disable-static
61 # make -C po update-gmo
62 make %{?_smp_mflags}
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 make DESTDIR=${RPM_BUILD_ROOT} install
67 rm -f $RPM_BUILD_ROOT%{python_sitearch}/_anthy.la
68 rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/immodules/im-ibus.la
70 # %find_lang %{name}
72 %clean
73 rm -rf $RPM_BUILD_ROOT
75 %files
76 # -f %{name}.lang
77 %defattr(-,root,root,-)
78 %doc AUTHORS COPYING README
79 %dir %{python_sitearch}/ibus
80 %{python_sitearch}/ibus/*
81 %dir %{_datadir}/ibus/
82 %dir %{_datadir}/ibus/ibusdaemon/
83 %dir %{_datadir}/ibus/panel/
84 %dir %{_datadir}/ibus/engine/
85 %dir %{_datadir}/ibus/icons/
86 %{_datadir}/ibus/ibusdaemon/*
87 %{_datadir}/ibus/panel/*
88 %{_datadir}/ibus/engine/*
89 %{_datadir}/ibus/icons/*
90 %{_libexecdir}/ibus-daemon
91 %{_libexecdir}/ibus-panel
93 %files gtk
94 %{_libdir}/gtk-2.0/immodules/im-ibus.so
96 %files qt
97 %{_libdir}/qt4/plugins/inputmethods/libibus.so
99 %files enchant
100 %dir %{_datadir}/ibus/engine/enchant
101 %{_datadir}/ibus/engine/enchant/*
102 %{_libexecdir}/ibus-engine-enchant
104 %files anthy
105 %{python_sitearch}/_anthy.so
106 %{python_sitearch}/anthy.*
107 %dir %{_datadir}/ibus/engine/anthy
108 %{_datadir}/ibus/engine/anthy/*
109 %{_libexecdir}/ibus-engine-anthy
111 %changelog
112 * Wed Jun 25 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.0-1
113 - The first version.