ibus/ibus.spec

307 lines
9.6 KiB
RPMSpec
Raw Normal View History

2008-08-10 11:32:49 +00:00
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2008-09-30 00:25:58 +00:00
%{!?gtk_binary_version: %define gtk_binary_version %(pkg-config --variable=gtk_binary_version gtk+-2.0)}
2009-02-05 04:51:29 +00:00
%define mod_path ibus-1.1
2008-08-10 11:32:49 +00:00
Name: ibus
2009-02-25 05:59:33 +00:00
Version: 1.1.0.20090225
Release: 2%{?dist}
2008-09-08 08:04:39 +00:00
Summary: Intelligent Input Bus for Linux OS
2008-08-10 11:32:49 +00:00
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
Patch0: ibus-HEAD.patch
2008-08-10 11:32:49 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2009-02-03 08:39:00 +00:00
%define glib_ver %([ -a %{_libdir}/pkgconfig/glib-2.0.pc ] && pkg-config --modversion glib-2.0 | cut -d. -f 1,2 || echo -n "999")
2008-08-10 11:32:49 +00:00
BuildRequires: gettext-devel
BuildRequires: libtool
BuildRequires: python
BuildRequires: gtk2-devel
2009-02-05 04:51:29 +00:00
BuildRequires: dbus-devel
2008-08-10 11:32:49 +00:00
BuildRequires: dbus-glib-devel
BuildRequires: desktop-file-utils
2009-02-05 04:51:29 +00:00
BuildRequires: gtk-doc
BuildRequires: GConf2-devel
BuildRequires: pygobject2-devel
# BuildRequires: qt-devel
Requires: %{name}-libs = %{version}-%{release}
Requires(post): desktop-file-utils
Requires(post): %{_sbindir}/alternatives
Requires(postun): desktop-file-utils
Requires(postun): %{_sbindir}/alternatives
2008-08-10 11:32:49 +00:00
Requires: pygtk2
Requires: dbus-python >= 0.83.0
2008-10-08 08:21:57 +00:00
Requires: notification-daemon
Requires: pyxdg
2008-09-23 02:39:31 +00:00
Requires: iso-codes
2009-02-17 03:44:47 +00:00
Requires: im-chooser >= 1.2.5
2008-08-10 11:32:49 +00:00
Obsoletes: ibus-qt < 1.1.0
2009-02-05 04:51:29 +00:00
%define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/ibus.conf
2008-08-10 11:32:49 +00:00
%description
2008-09-08 08:04:39 +00:00
IBus means Intelligent Input Bus. It is a new input framework for Linux OS. It provides
2008-08-10 11:32:49 +00:00
full featured and user friendly input method user interface. It also may help
developers to develop input method easily.
%package libs
Summary: IBus libraries
Group: System Environment/Libraries
%description libs
This package contains the libraries for IBus
2008-08-10 11:32:49 +00:00
%package gtk
Summary: IBus im module for gtk2
2008-08-10 11:32:49 +00:00
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: glib2 >= %{glib_ver}
2008-08-10 11:32:49 +00:00
%description gtk
This package contains ibus im module for gtk2
2009-02-05 04:51:29 +00:00
# %package qt
# Summary: IBus im module for qt4
# Group: System Environment/Libraries
# Requires: %{name} = %{version}-%{release}
# Requires: qt >= 4.4.2
#
# %description qt
# This package contains ibus im module for qt4
%package devel
Summary: Development tools for ibus
Group: Development/Libraries
2008-08-10 11:32:49 +00:00
Requires: %{name} = %{version}-%{release}
2009-02-05 04:51:29 +00:00
Requires: glib2-devel
Requires: dbus-devel
Requires: gtk-doc
2008-08-10 11:32:49 +00:00
2009-02-05 04:51:29 +00:00
%description devel
The ibus-devel package contains the header files and developer
docs for ibus.
2008-08-10 11:32:49 +00:00
%prep
%setup -q
2009-02-25 05:59:33 +00:00
# %patch0 -p1
2008-08-10 11:32:49 +00:00
%build
2009-02-05 04:51:29 +00:00
%configure --disable-static \
--disable-iso-codes-check \
--enable-gtk-doc \
--disable-qt4-immodule
2008-08-10 11:32:49 +00:00
# make -C po update-gmo
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=${RPM_BUILD_ROOT} install
2009-02-05 04:51:29 +00:00
rm -f $RPM_BUILD_ROOT%{_libdir}/libibus.la
2008-09-30 00:25:58 +00:00
rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ibus.la
2008-08-10 11:32:49 +00:00
# install xinput config file
mkdir -pm 755 ${RPM_BUILD_ROOT}/%{_sysconfdir}/X11/xinit/xinput.d
install -pm 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_xinputconf}
# install .desktop files
2009-02-25 05:59:33 +00:00
echo "NoDisplay=true" >> $RPM_BUILD_ROOT%{_datadir}/applications/ibus.desktop
echo "NoDisplay=true" >> $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup.desktop
echo "X-GNOME-Autostart-enabled=false" >> $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/ibus.desktop
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/ibus.desktop
desktop-file-install --delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/*
2008-08-15 03:54:37 +00:00
%find_lang %{name}
2008-08-10 11:32:49 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
2009-02-25 05:59:33 +00:00
%post
update-desktop-database -q
%{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_xinputconf} 83 || :
2008-08-10 11:32:49 +00:00
2009-02-25 05:59:33 +00:00
%post libs
/sbin/ldconfig
2008-08-10 11:32:49 +00:00
%post gtk
%{_bindir}/update-gtk-immodules %{_host} || :
2009-02-25 05:59:33 +00:00
%postun
update-desktop-database -q
if [ "$1" = "0" ]; then
%{_sbindir}/alternatives --remove xinputrc %{_xinputconf} || :
# if alternative was set to manual, reset to auto
[ -L %{_sysconfdir}/alternatives/xinputrc -a "`readlink %{_sysconfdir}/alternatives/xinputrc`" = "%{_xinputconf}" ] && %{_sbindir}/alternatives --auto xinputrc || :
fi
2008-08-10 11:32:49 +00:00
2009-02-25 05:59:33 +00:00
%postun libs
/sbin/ldconfig
%postun gtk
%{_bindir}/update-gtk-immodules %{_host} || :
2008-08-15 03:54:37 +00:00
%files -f %{name}.lang
2008-08-10 11:32:49 +00:00
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%dir %{python_sitelib}/ibus
%{python_sitelib}/ibus/*
%dir %{_datadir}/ibus/
2009-02-05 04:51:29 +00:00
%{_bindir}/ibus-daemon
2008-08-10 11:32:49 +00:00
%{_bindir}/ibus-setup
2009-02-05 04:51:29 +00:00
%{_datadir}/ibus/*
%{_datadir}/applications/*
2008-08-10 11:32:49 +00:00
%{_datadir}/pixmaps/*
2009-02-05 04:51:29 +00:00
%{_libexecdir}/ibus-gconf
%{_libexecdir}/ibus-ui-gtk
%{_libexecdir}/ibus-x11
2009-02-25 05:59:33 +00:00
# %{_sysconfdir}/xdg/autostart/ibus.desktop
2008-08-10 11:32:49 +00:00
%config %{_xinputconf}
%files libs
%defattr(-,root,root,-)
%{_libdir}/libibus.so*
2008-08-10 11:32:49 +00:00
%files gtk
%defattr(-,root,root,-)
2008-09-30 00:25:58 +00:00
%{_libdir}/gtk-2.0/%{gtk_binary_version}/immodules/im-ibus.so
2008-08-10 11:32:49 +00:00
2009-02-05 04:51:29 +00:00
# %files qt
# %defattr(-,root,root,-)
# %{_libdir}/qt4/plugins/inputmethods/libibus.so
%files devel
2008-08-10 11:32:49 +00:00
%defattr(-,root,root,-)
2009-02-05 04:51:29 +00:00
%{_libdir}/lib*.so
%{_includedir}/*
%{_datadir}/gtk-doc/html/*
%{_libdir}/pkgconfig/*
2008-08-10 11:32:49 +00:00
%changelog
* Mon Mar 2 2009 Jens Petersen <petersen@redhat.com> - 1.1.0.20090225-2
- drop the superfluous ibus-0.1 engine obsoletes
- move glib2 requires to gtk package
2009-02-25 05:59:33 +00:00
* Tue Feb 25 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090225-1
- Update to ibus-1.1.0.20090225.
- Fix problems in %post and %postun scripts.
- Hide ibus & ibus preferences menu items.
* Tue Feb 17 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090211-10
- Recreate the ibus-HEAD.patch from upstream git source tree.
- Put 'Select an input method' in engine select combobox (#485861).
2009-02-17 03:44:47 +00:00
* Tue Feb 17 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090211-9
- Add requires im-chooser >= 1.2.5.
2009-02-17 01:43:27 +00:00
* Tue Feb 17 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090211-8
- Recreate the ibus-HEAD.patch from upstream git source tree.
2009-02-17 01:43:27 +00:00
- Fix ibus-hangul segfault (#485438).
* Mon Feb 16 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090211-6
- Recreate the ibus-HEAD.patch from upstream git source tree.
- The new patch fixes ibus-x11 segfault (#485661).
* Sun Feb 15 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090211-5
- Recreate the ibus-HEAD.patch from upstream git source tree.
* Sun Feb 15 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090211-4
- Remove gnome-python2-gconf from requires.
* Fri Feb 13 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090211-3
- Update ibus-HEAD.patch, to fix bug 484652.
* Fri Feb 13 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090211-2
- Add patch ibus-HEAD.patch, to update ibus to HEAD version.
2009-02-11 06:59:33 +00:00
* Wed Feb 11 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090211-1
- Add --xim argument in xinput-ibus
- Add Obsoletes: ibus-qt <= 1.1.0
- Move libibus.so.* to ibus-libs to make ibus multilib.
2009-02-11 06:59:33 +00:00
- Update to 1.1.0.20090211.
2009-02-05 04:51:29 +00:00
* Thu Feb 05 2009 Huang Peng <shawn.p.huang@gmail.com> - 1.1.0.20090205-1
- Update to 1.1.0.20090205.
2009-02-03 08:39:00 +00:00
* Tue Feb 03 2009 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20090203-1
- Update to 0.1.1.20090203.
2008-11-29 16:47:52 +00:00
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.1.20081023-3
- Rebuild for Python 2.6
* Wed Nov 19 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20081023-2
- Move libibus-gtk.so from ibus.rpm to ibus-gtk.rpm to fix bug 472146.
2008-10-23 06:43:41 +00:00
* Thu Oct 23 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20081023-1
- Update to 0.1.1.20081023.
2008-10-16 02:43:26 +00:00
* Thu Oct 16 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20081016-1
- Update to 0.1.1.20081016.
2008-10-07 03:06:09 +00:00
* Tue Oct 7 2008 Jens Petersen <petersen@redhat.com> - 0.1.1.20081006-3
- remove the empty %%doc file entries
* Tue Oct 7 2008 Jens Petersen <petersen@redhat.com> - 0.1.1.20081006-2
- add xinputrc alternative when installing or uninstalling
2008-10-06 08:18:49 +00:00
* Mon Oct 06 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20081006-1
- Update to 0.1.1.20081006.
2008-10-05 11:25:39 +00:00
* Sun Oct 05 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20081005-1
- Update to 0.1.1.20081005.
2008-10-04 02:36:34 +00:00
* Sat Oct 04 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20081004-1
- Update to 0.1.1.20081004.
2008-10-01 04:52:47 +00:00
* Wed Oct 01 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20081001-1
- Update to 0.1.1.20081001.
2008-09-30 00:25:58 +00:00
* Tue Sep 30 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080930-1
- Update to 0.1.1.20080930.
2008-09-23 02:25:33 +00:00
* Tue Sep 23 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080923-1
- Update to 0.1.1.20080923.
2008-09-17 13:31:12 +00:00
* Wed Sep 17 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080917-1
- Update to 0.1.1.20080917.
2008-09-16 09:06:22 +00:00
* Tue Sep 16 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080916-1
- Update to 0.1.1.20080916.
2008-09-14 18:18:56 +00:00
* Mon Sep 15 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080914-1
- Update to 0.1.1.20080914.
2008-09-08 08:04:39 +00:00
* Mon Sep 08 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080908-1
- Update to 0.1.1.20080908.
2008-08-31 23:47:31 +00:00
* Mon Sep 01 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080901-1
- Update to 0.1.1.20080901.
2008-08-30 01:24:17 +00:00
* Sat Aug 30 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080830-1
- Update to 0.1.1.20080830.
2008-08-25 04:30:36 +00:00
* Mon Aug 25 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080825-1
- Update to 0.1.1.20080825.
2008-08-23 00:43:32 +00:00
* Sat Aug 23 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080823-1
- Update to 0.1.1.20080823.
2008-08-15 03:54:37 +00:00
* Fri Aug 15 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080815-1
- Update to 0.1.1.20080815.
2008-08-12 07:24:08 +00:00
* Thu Aug 12 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.1.20080812-1
- Update to 0.1.1.20080812.
2008-08-10 17:20:19 +00:00
* Mon Aug 11 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.0.20080810-2
- Add gnome-python2-gconf in Requires.
2008-08-10 11:32:49 +00:00
* Thu Aug 07 2008 Huang Peng <shawn.p.huang@gmail.com> - 0.1.0.20080810-1
- The first version.