123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497 |
- %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
- %define snapshot 20110817
- %define ver 1.3.99.%{snapshot}
- %define rel 2
- %if "%{?_dist_release}" >= "vl7"
- %define have_gjsfile 1
- %define have_libxkbfile 1
- %else
- %define have_gjsfile 0
- %define have_xkbfile 0
- %endif
- %define ibus_api_version 1.0
- Summary: Intelligent Input Bus for Linux / Unix OS
- Name: ibus
- Version: %{ver}
- Release: %{rel}%{?_dist_release}
- License: LGPL
- Group: System Environment/Libraries
- URL: http://code.google.com/p/ibus/
- Source0: %{name}-%{version}.tar.gz
- Source1: http://fujiwara.fedorapeople.org/ibus/gnome-shell/ibus-gjs-1.3.99.20110814.tar.gz
- Patch1: ibus-530711-preload-sys.patch
- Patch4: ibus-541492-xkb.patch
- # add Shift+space as trigger key instead of Ctrl+space
- Patch20: ibus-1.3.9-vine.patch
- Requires: gtk2, pyxdg, iso-codes, dbus-python >= 0.83.0
- Requires: notify-python
- Requires: librsvg2
- Requires(pre): GConf2
- Requires(post): GConf2
- Requires(preun): GConf2
- Requires(post): glib2
- Requires(post,postun): coreutils, gtk2
- BuildRequires(install,check): desktop-file-utils
- BuildRequires: gettext >= 0.16.1, gtk2-devel, intltool >= 0.40.0
- BuildRequires: dbus-devel, dbus-python-devel >= 0.83.0
- BuildRequires: glib2-devel >= 2.0.0
- %if %{?_dist_release} != "vl5"
- BuildRequires: gtk3-devel >= 3.0.0
- %endif
- %if %have_gjsfile
- BuildRequires: gjs
- BuildRequires: gnome-shell
- %endif
- %if %have_libxkbfile
- BuildRequires: libxkbfile-devel
- %endif
- BuildRequires: GConf2-devel >= 2.12
- BuildRequires: perl >= 5.8.1 perl-XML-Parser
- Buildrequires: python >= 2.5
- Buildroot: %{_tmppath}/%{name}-%{version}-root
- Provides: iBus
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: iwaim
- %description
- IBus is an Intelligent Input Bus. It is a new input framework for Linux OS.
- It provides full featured and user friendly input method user interface.
- It also may help developers to develop input method easily.
- %package devel
- Summary: Header files for iBus
- Group: Development/Libraries
- Requires: ibus == %{version}-%{release}
- Requires: glib2-devel
- Requires: dbus-devel
- Requires: vala
- %description devel
- Header files for iBus.
- %package gtk3
- Summary: IBus im module for gtk3
- Summary(ja): gtk3 用 IBus IMモジュール
- Group: System Environment/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires(post): gtk3
- Requires(preun): gtk3
- %description gtk3
- The ibus-gtk3 contains ibus im module for gtk3.
- %package gnome3
- Summary: IBus gnome-shell-extension for GNOME3
- Summary(ja): GNOME3 用 IBus gnome-shell 拡張
- Group: System Environment/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: gnome-shell
- %description gnome3
- This is a transitional package which allows users to try out new IBus
- GUI for GNOME3 in development. Note that this package will be marked
- as obsolete once the integration has completed in the GNOME3 upstream.
- ## to build compat32 for x86_64 architecture support
- %package -n compat32-%{name}
- Summary: IBus im module for gtk2
- Summary(ja): IBus gtk2 用 IM モジュール
- Group: System Environment/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires(post): compat32-gtk2
- Requires(preun): compat32-gtk2
- %description -n compat32-%{name}
- The compat32-ibus contains ibus im module for gtk2.
- %if %{?_dist_release} != "vl5"
- %package -n compat32-%{name}-gtk3
- Summary: Ibus im module for gtk3
- Group: System Environment/Libraries
- Requires: compat32-%{name} = %{version}-%{release}
- Requires(post): compat32-gtk3
- Requires(preun): compat32-gtk3
- %description -n compat32-%{name}-gtk3
- The compat32-ibus-gtk3 contains ibus im module for gtk3.
- %endif
- %prep
- %setup -q
- %if %have_gjsfile
- zcat %SOURCE1 | tar xf -
- %endif
- %patch1 -p1 -b .preload-sys
- %if %have_libxkbfile
- %patch4 -p1 -b .xkb
- %endif
- %patch20 -p1 -b .vine
- %if %have_libxkbfile
- aclocal -I m4
- autoheader
- autoconf -f
- automake -a -c -f
- %endif
- %configure \
- --disable-static \
- %if %{?_dist_release} != "vl5"
- --enable-gtk3 \
- %endif
- --enable-gtk2 \
- --with-gtk2-im-module-dir=%{_libdir}/gtk-2.0/immodules \
- --enable-xim \
- --disable-gtk-doc \
- --with-no-snooper-apps='gnome-do,Do.*,firefox.*,:*chrome.*,.*chromium.*' \
- --enable-surrounding-text \
- --enable-introspection
- %build
- make %{?_smp_mflags}
- %if %have_gjsfile
- d=`basename %SOURCE1 .tar.gz`
- cd $d
- export PKG_CONFIG_PATH=..:/usr/lib64/pkgconfig:/usr/lib/pkgconfig
- %configure
- make %{?_smp_mflags}
- cd ..
- %endif
- %install
- rm -rf %{buildroot}
- make DESTDIR=%{buildroot} install
- rm -rf %{buildroot}%{_libdir}/libibus-%{ibus_api_version}.la
- rm -rf %{buildroot}%{_libdir}/gtk-2.0/immodules/im-ibus.la
- %if %{?_dist_release} != "vl5"
- rm -rf %{buildroot}%{_libdir}/gtk-3.0/3.0.0/immodules/im-ibus.la
- %endif
- %{_bindir}/desktop-file-install \
- --vendor="" --dir=%{buildroot}/%{_datadir}/applications \
- --add-category=Applications \
- --add-category=X-GNOME-PersonalSettings \
- %{buildroot}/%{_datadir}/applications/ibus-setup.desktop
- rm -rf %{buildroot}%{_sysconfdir}/xdg/autostart/ibus.desktop
- %if %have_gjsfile
- # https://bugzilla.redhat.com/show_bug.cgi?id=657165
- d=`basename %SOURCE1 .tar.gz`
- cd $d
- make DESTDIR=$RPM_BUILD_ROOT install
- rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/ibus-gjs.mo
- cd ..
- %endif
- %find_lang %{name}10
- %clean
- rm -rf %{buildroot}
- %check
- #make check
- %{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus.desktop
- %{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup.desktop
- %post
- /sbin/ldconfig
- if [ -x %{_bindir}/update-desktop-database ] ; then
- %{_bindir}/update-desktop-database %{_datadir}/applications -q
- fi
- %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules
- export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
- gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/ibus.schemas >& /dev/null || :
- # recreate icon cache
- touch --no-create %{_datadir}/icons/hicolor || :
- [ -x %{_bindir}/gtk-update-icon-cache ] && \
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
- %pre
- if [ "$1" -gt 1 ]; then
- export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
- gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/ibus.schemas >& /dev/null || :
- fi
- %preun
- if [ "$1" -eq 0 ]; then
- export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
- gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/ibus.schemas >& /dev/null || :
- fi
- %postun
- /sbin/ldconfig
- %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules
- if [ -x %{_bindir}/update-desktop-database ] ; then
- %{_bindir}/update-desktop-database %{_datadir}/applications -q
- fi
- # recreate icon cache
- touch --no-create %{_datadir}/icons/hicolor || :
- [ -x %{_bindir}/gtk-update-icon-cache ] && \
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
- %post gtk3
- %{_bindir}/gtk-query-immodules-3.0 --update-cache
- %postun gtk3
- %{_bindir}/gtk-query-immodules-3.0 --update-cache
- %post -n compat32-%{name}
- /sbin/ldconfig
- %{_bindir}/gtk-query-immodules-2.0-32 > %{_sysconfdir}/gtk-2.0/i386/gtk.immodules
- %postun -n compat32-%{name}
- /sbin/ldconfig
- %{_bindir}/gtk-query-immodules-2.0-32 > %{_sysconfdir}/gtk-2.0/i386/gtk.immodules
- %post -n compat32-%{name}-gtk3
- %{_bindir}/gtk-query-immodules-3.0-32 --update-cache
- %postun -n compat32-%{name}-gtk3
- %{_bindir}/gtk-query-immodules-3.0-32 --update-cache
- %files -f %{name}10.lang
- %defattr(-,root,root,-)
- %doc AUTHORS COPYING ChangeLog NEWS README
- %{_bindir}/ibus*
- %{_libdir}/libibus-%{ibus_api_version}.so.*
- %{_libdir}/gtk-2.0/immodules/im-ibus.so
- %{_libexecdir}/ibus-gconf
- %{_libexecdir}/ibus-ui-gtk
- %{_libexecdir}/ibus-x11
- #%{python_sitearch}/ibus
- %{python_sitelib}/ibus
- %{_datadir}/applications/*
- %{_datadir}/ibus
- %{_datadir}/gtk-doc/html/ibus
- %{_datadir}/icons/hicolor/*/apps/*
- #%{_sysconfdir}/xdg/autostart/ibus.desktop
- %{_sysconfdir}/gconf/schemas/ibus.schemas
- %if %have_libxkbfile
- %{_libexecdir}/ibus-engine-xkb
- %{_libexecdir}/ibus-xkb
- %endif
- %files devel
- %defattr(-,root,root,-)
- %{_libdir}/pkgconfig/*
- %{_libdir}/lib*.so
- %{_includedir}/*
- %{_datadir}/vala/vapi/ibus-1.0.vapi
- %{_datadir}/vala/vapi/ibus-1.0.deps
- %if %{?_dist_release} != "vl5"
- %{_libdir}/girepository-1.0/IBus-1.0.typelib
- %{_datadir}/gir-1.0/IBus-1.0.gir
- %endif
- %if %{?_dist_release} != "vl5"
- %files gtk3
- %defattr(-,root,root,-)
- %{_libdir}/gtk-3.0/3.0.0/immodules/im-ibus.so
- %endif
- %if %have_gjsfile
- %files gnome3
- %defattr(-,root,root,-)
- %{_datadir}/gnome-shell/js/ui/status/ibus
- %{_datadir}/gnome-shell/extensions/ibus-indicator@example.com
- %endif
- ## to build compat32 for x86_64 architecture support
- %if %{build_compat32}
- %files -n compat32-%{name}
- %defattr(-,root,root)
- %{_libdir}/libibus-%{ibus_api_version}.so.*
- %{_libdir}/gtk-2.0/immodules/im-ibus.so
- %if %{?_dist_release} != "vl5"
- %files -n compat32-%{name}-gtk3
- %defattr(-,root,root,-)
- %{_libdir}/gtk-3.0/3.0.0/immodules/im-ibus.so
- %endif
- %endif
- %changelog
- * Wed Aug 31 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.99.20110817-2
- - re-enable compat32
- * Wed Aug 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.9-6
- - add compat32-ibus{,-gtk3}
- - add %%post/preun gtk3 to ibus-gtk3
- - add %%post/preun compat32-gtk3 to compat32-ibus-gtk3
- * Tue Aug 23 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.99.20110817-1
- - update to upstream snapshot (1.3.99.20110817)
- - add ibus-gjs for gnome3
- - update patches
- * Thu Jun 02 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.9-5
- - add patch1 from ubuntu (accepted in upstream)
- Use LC_MESSAGES instead of LC_ALL in bus_ibus_impl_set_default_preload_engines.
- - add "Catgegories=Applications;X-GNOME-PersonalSettings" to ibus-setup.desktop
- - add patch10 to add default preload engines to gconf schemas
- - add patch20 to modify IM trigger shortcut keys
- - add Shift+space, remove Ctrl+space
- * Tue Apr 19 2011 IWAI, Masaharu <iwai@alib.jp> 1.3.9-4vl6
- - drop {post,postun} script for gtk3 immodules in main package
- * Fri Apr 8 2011 IWAI, Masaharu <iwai@alib.jp> 1.3.9-3vl6
- - drop GTK3 immodule file in main package
- * Fri Feb 18 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.9-2
- - create -gtk3 sub package (VineSeed only)
- * Wed Dec 15 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.9-1
- - new upstream release
- - add files in devel sub package for VineSeed
- - girepository-1.0/IBus-1.0.typelib
- - gir-1.0/IBus-1.0.gir
- * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 1.3.7-2
- - rebuilt with rpm-4.8.1 for pkg-config
- * Mon Aug 9 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.7-1
- - new upstream release
- - add support Vala on Vine Linux 5
- * Fri Jul 9 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.6-1
- - new upstream release
- * Tue Jun 15 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.5-1
- - new upstream release
- - update GTK immodule dir option for configure
- - add vapi file for VineSeed
- - add Requires: vala for devel package, VineSeed
- * Wed Jun 9 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.4-2
- - update Requires: notify-python librsvg2
- - execute gconftool-2 on {post,pre,preun}
- - add Requires: Gconf2 on {post,pre,preun}
- - update Requires: glib2-devel dbus-devel for ibus-devel package
- - execute update-desktop-database on {post,postun}
- - execute gtk-update-icon-cache on {post,postun}: <BTS:VineLinux:955>
- - add Requires: coreutils, gtk2 on {post,postun}
- - drop %%{_sysconfdir}/xdg/autostart/ibus.desktop file
- * Sun Jun 6 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.4-1
- - new upstream release
- - stop 'make check'
- * Tue May 25 2010 Shu KONNO <owa@bg.wakwak.com> 1.3.3-2
- - s/python_sitearch/python_sitelib/
- * Sat May 15 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.3-1
- - new upstream release
- - execute 'make check'
- - clean up:
- - drop unused git_source and vine_ja_po
- * Fri Apr 16 2010 IWAI, Masaharu <iwai@alib.jp> 1.2.1-1
- - new upstream release
- - stop 'make check'
- * Mon Jan 25 2010 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091215-2
- - add BuildRequires: GConf2-devel >= 2.12: fix <BTS:VineLinux:901>
- * Fri Dec 18 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091215-1
- - new upstream release
- * Sat Dec 5 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091204-1
- - new upstream release
- * Sun Nov 29 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091124-1
- - new upstream release
- * Wed Nov 4 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20091024-1
- - new upstream release
- - add fix POFILES.in patch (Patch0)
- - update file list in %%files section
- - running ldconfig and gtk-query-immodules-2.0 in %%post and %%postun
- * Thu Oct 8 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20090927-1
- - new upstream release
- * Thu Sep 17 2009 IWAI, Masaharu <iwai@alib.jp> 1.2.0.20090915-1
- - new upstream release
- - update %%files section
- - update BuildRequires
- - drop obsoleted configure option: --disable-qt4-immodule
- * Fri Aug 28 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090812-1
- - new upstream release
- * Sat Jun 20 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090612-1
- - new upstream release
- - add Packager tag
- * Tue Jun 2 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090531-1
- - new upstream release
- * Sat May 9 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090508-1
- - new upstream release
- - update BuildRequires
- - add dbus-devel, intltool >= 0.40.0
- - drop qt4-devel
- * Sun Apr 26 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090423-1
- - new upstream release
- - drop defined python_sitearch rpm macro
- * Fri Apr 17 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090417-1
- - new upstream release
- * Tue Apr 14 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090413-1
- - new upstream release
- - drop Vine ja.po (SOURCE1)
- * Wed Apr 8 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090407-1
- - new upstream release
- - update ja.po (SOURCE1)
- * Sat Apr 4 2009 IWAI, Masaharu <iwai@alib.jp> 1.1.0.20090331-1
- - new upstream release
- * Sat Mar 21 2009 IWAI, Masaharu <iwai@alib.jp> - 1.1.0.20090311-3
- - add ja.po (SOURCE1): update
- - add ibus.desktop file in xdg autostart
- - add ibus.schemas file
- * Fri Mar 20 2009 Shu KONNO <owa@bg.wakwak.com> - 1.1.0.20090311-2
- - set python_sitearch to arch independent path
- * Tue Mar 17 2009 IWAI, Masaharu <iwai@alib.jp> - 1.1.0.20090311-1
- - new upstream release
- - add dbus-python version ( 0.83.0 and more ) in Requires
- - add BuildRequires: dbus-python-devel >= 0.83.0
- * Mon Feb 23 2009 IWAI, Masaharu <iwai@alib.jp> - 1.1.0.20090217-1
- - new upstream release
- - add Requires: iso-codes, dbus-python: <BTS:VineLinux:656>
- - generate devel sub package
- - stop creating qt4 immodule
- - drop .la files
- * Mon Jan 26 2009 IWAI, Masaharu <iwai@alib.jp> - 0.1.1.20090126-1
- - initial release
|