ibus/ibus.spec.in

105 строки
2.8 KiB
Plaintext

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define mod_path ibus-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@
Name: ibus
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: Input bus for Linux OS
License: LGPLv2+
Group: System Environment/Libraries
URL: http://code.google.com/p/ibus/
Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
Source1: xinput-ibus
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext-devel, libtool, python-devel, pygtk2-devel, perl(XML::Parser), gtk2-devel, qt-devel, dbus-glib-devel, swig
Requires: pygtk2, dbus-python
%description
Input bus for Linux OS
%package gtk
Summary: IBus im module for gtk2
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description gtk
This package contains ibus im module for gtk2
%package qt
Summary: IBus im module for qt4
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description qt
This package contains ibus im module for qt4
%define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/ibus.conf
%prep
%setup -q
%build
%configure --disable-static
# make -C po update-gmo
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=${RPM_BUILD_ROOT} install
rm -f $RPM_BUILD_ROOT%{_libdir}/libibus-gtk.la
rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/immodules/im-ibus.la
# install xinput config file
mkdir -pm 755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/X11/xinit/xinput.d
install -pm 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_xinputconf}
# %find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post gtk
%{_bindir}/update-gtk-immodules %{_host} || :
%postun gtk
%{_bindir}/update-gtk-immodules %{_host} || :
%files
# -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%dir %{python_sitelib}/ibus
%{python_sitelib}/ibus/*
%dir %{_datadir}/ibus/
%dir %{_datadir}/ibus/daemon/
%dir %{_datadir}/ibus/gconf/
%dir %{_datadir}/ibus/panel/
%dir %{_datadir}/ibus/setup/
%dir %{_datadir}/ibus/engine/
%dir %{_datadir}/ibus/icons/
%{_bindir}/ibus
%{_bindir}/ibus-setup
%{_libdir}/libibus-gtk.so*
%{_datadir}/ibus/daemon/*
%{_datadir}/ibus/gconf/*
%{_datadir}/ibus/panel/*
%{_datadir}/ibus/setup/*
%{_datadir}/ibus/icons/*
%{_datadir}/applications/*
%{_libexecdir}/ibus-daemon
%{_libexecdir}/ibus-gconf
%{_libexecdir}/ibus-panel
%{_libexecdir}/ibus-x11
%config %{_xinputconf}
%files gtk
%{_libdir}/gtk-2.0/immodules/im-ibus.so
%files qt
%{_libdir}/qt4/plugins/inputmethods/libibus.so
%changelog
* Wed Jun 25 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.0-1
- The first version.