ibus/ibus.spec.in

102 строки
2.7 KiB
Plaintext
Исходник Обычный вид История

2008-06-24 21:12:28 +04:00
%{!?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)")}
2008-06-24 21:30:44 +04:00
%define mod_path ibus-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@
2008-06-24 21:12:28 +04:00
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
2008-07-03 14:33:24 +04:00
Source1: xinput-ibus
2008-06-24 21:12:28 +04:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2008-07-08 14:08:13 +04:00
BuildRequires: gettext-devel, libtool, python-devel, pygtk2-devel, perl(XML::Parser), gtk2-devel, qt-devel, dbus-glib-devel, swig
Requires: pygtk2, dbus-python
2008-06-24 21:12:28 +04:00
%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
2008-07-03 14:33:24 +04:00
%define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/ibus.conf
2008-06-24 21:12:28 +04:00
%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%{python_sitearch}/_anthy.la
rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/immodules/im-ibus.la
2008-07-03 14:33:24 +04:00
# install xinput config file
mkdir -pm 755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/X11/xinit/xinput.d
install -pm 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_xinputconf}
2008-06-24 21:12:28 +04:00
# %find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post gtk
%{_bindir}/update-gtk-immodules %{_host} || :
2008-07-01 13:26:52 +04:00
%postun gtk
%{_bindir}/update-gtk-immodules %{_host} || :
2008-06-24 21:12:28 +04:00
%files
# -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
2008-07-01 13:26:52 +04:00
%dir %{python_sitelib}/ibus
%{python_sitelib}/ibus/*
2008-06-24 21:12:28 +04:00
%dir %{_datadir}/ibus/
2008-06-25 06:41:59 +04:00
%dir %{_datadir}/ibus/daemon/
2008-07-10 11:34:03 +04:00
%dir %{_datadir}/ibus/gconf/
2008-06-24 21:12:28 +04:00
%dir %{_datadir}/ibus/panel/
2008-07-10 11:34:03 +04:00
%dir %{_datadir}/ibus/setup/
2008-06-24 21:12:28 +04:00
%dir %{_datadir}/ibus/engine/
%dir %{_datadir}/ibus/icons/
2008-07-08 13:24:31 +04:00
%{_bindir}/ibus
2008-07-10 11:34:03 +04:00
%{_bindir}/ibus-setup
2008-06-25 06:41:59 +04:00
%{_datadir}/ibus/daemon/*
2008-07-08 04:30:12 +04:00
%{_datadir}/ibus/gconf/*
2008-06-24 21:12:28 +04:00
%{_datadir}/ibus/panel/*
2008-07-10 11:34:03 +04:00
%{_datadir}/ibus/setup/*
2008-06-24 21:12:28 +04:00
%{_datadir}/ibus/icons/*
%{_libexecdir}/ibus-daemon
2008-07-08 04:30:12 +04:00
%{_libexecdir}/ibus-gconf
2008-06-24 21:12:28 +04:00
%{_libexecdir}/ibus-panel
2008-07-03 14:44:22 +04:00
%config %{_xinputconf}
2008-06-24 21:12:28 +04:00
%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.