2006-12-27 12:51:08 +01:00
|
|
|
#
|
2009-07-09 11:22:08 +02:00
|
|
|
# spec file for package uim (Version 1.5.6)
|
2006-12-27 12:51:08 +01:00
|
|
|
#
|
2009-02-24 00:20:29 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-27 12:51:08 +01:00
|
|
|
#
|
2008-10-23 12:32:46 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-27 12:51:08 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-10-23 12:32:46 +02:00
|
|
|
|
2006-12-27 12:51:08 +01:00
|
|
|
Name: uim
|
2009-07-09 11:22:08 +02:00
|
|
|
BuildRequires: anthy-devel canna-devel emacs-x11 gcc-c++ intltool
|
|
|
|
BuildRequires: gnome-panel-devel gtk2-devel libgnomeui-devel
|
|
|
|
BuildRequires: ncurses-devel perl-XML-Parser pkg-config update-desktop-files
|
|
|
|
BuildRequires: emacs-x11 xemacs
|
2009-06-20 03:44:43 +02:00
|
|
|
BuildRequires: libexpat-devel
|
2009-07-09 11:22:08 +02:00
|
|
|
BuildRequires: qt3-devel
|
|
|
|
BuildRequires: libqt4-devel
|
2008-01-12 02:38:17 +01:00
|
|
|
%if %suse_version > 1020
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
2007-04-01 12:14:05 +02:00
|
|
|
# xorg-x11-libXdmcp-devel libgnomeprintui-devel
|
2008-01-12 02:38:17 +01:00
|
|
|
License: GPL v2 or later
|
2006-12-27 12:51:08 +01:00
|
|
|
Group: System/I18n/Japanese
|
2008-01-12 02:38:17 +01:00
|
|
|
AutoReqProv: on
|
2007-02-02 16:16:42 +01:00
|
|
|
PreReq: %{_bindir}/touch
|
2006-12-27 12:51:08 +01:00
|
|
|
Provides: locale(xorg-x11:ja)
|
2009-07-09 11:22:08 +02:00
|
|
|
Version: 1.5.6
|
|
|
|
Release: 1
|
2008-01-12 02:38:17 +01:00
|
|
|
Url: http://uim.freedesktop.org/wiki/
|
2006-12-27 12:51:08 +01:00
|
|
|
# svn co http://freedesktop.org:8080/svn/uim/trunk
|
|
|
|
# Source0: http://freedesktop.org/Software/UimDownload/uim-0.4.2.1.tar.bz2
|
|
|
|
# freedesktop svn archive is broken. Currently there is an snapshot of
|
|
|
|
# a new svn repository available which is updated every hour:
|
|
|
|
# http://freedesktop.org/~tkng/uim-trunk.tar.gz
|
2009-07-09 11:22:08 +02:00
|
|
|
Source0: http://uim.freedesktop.org/releases/uim-%{version}.tar.bz2
|
2006-12-27 12:51:08 +01:00
|
|
|
Source1: suse-start-uim.el
|
|
|
|
Source2: xemacs-auto-autoloads.el
|
|
|
|
Source3: etc-x11-xim.d-uim
|
|
|
|
Patch1: qt-build.patch
|
2009-07-09 11:22:08 +02:00
|
|
|
Patch10: uim-sigscheme-build-fixes.diff
|
|
|
|
Patch11: uim-gnome-build-fixes.diff
|
2006-12-27 12:51:08 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-07-09 11:22:08 +02:00
|
|
|
Summary: A multilingual input method library
|
2006-12-27 12:51:08 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Uim is a multilingual input method library. Uim's project goal is to
|
|
|
|
provide secure and useful input method for all languages. Currently, it
|
|
|
|
can input to applications which support gtk+'s immodule or XIM.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
TOKUNAGA Hiroyuki <tkng@xem.jp>
|
|
|
|
Masahito Omote <omote@utuuzin.net>
|
|
|
|
Yusuke Tabata <yusuke@cherubim.icw.co.jp>
|
|
|
|
Yamaken <yamaken@bp.iij4u.or.jp>
|
|
|
|
NOKUBI Takatsugu <knok@daionet.gr.jp>
|
|
|
|
|
|
|
|
%package devel
|
2008-10-23 12:32:46 +02:00
|
|
|
License: GPL v2 or later
|
2009-07-09 11:22:08 +02:00
|
|
|
Summary: Include Files and Libraries mandatory for Development
|
2006-12-27 12:51:08 +01:00
|
|
|
Group: System/I18n/Japanese
|
2007-02-02 16:16:42 +01:00
|
|
|
Requires: %{name} = %{version} glibc-devel
|
2006-12-27 12:51:08 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Include Files and Libraries mandatory for Development.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
TOKUNAGA Hiroyuki <tkng@xem.jp>
|
|
|
|
Masahito Omote <omote@utuuzin.net>
|
|
|
|
Yusuke Tabata <yusuke@cherubim.icw.co.jp>
|
|
|
|
Yamaken <yamaken@bp.iij4u.or.jp>
|
|
|
|
NOKUBI Takatsugu <knok@daionet.gr.jp>
|
|
|
|
|
|
|
|
%package gtk2
|
2008-10-23 12:32:46 +02:00
|
|
|
License: GPL v2 or later
|
2006-12-27 12:51:08 +01:00
|
|
|
Summary: Control applet using gnome2
|
|
|
|
Group: System/I18n/Japanese
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Obsoletes: uim-applet
|
|
|
|
Provides: uim-applet
|
|
|
|
Provides: locale(gnome-libs:ja)
|
|
|
|
|
|
|
|
%description gtk2
|
|
|
|
Control applet using gnome2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
TOKUNAGA Hiroyuki <tkng@xem.jp>
|
|
|
|
Masahito Omote <omote@utuuzin.net>
|
|
|
|
Yusuke Tabata <yusuke@cherubim.icw.co.jp>
|
|
|
|
Yamaken <yamaken@bp.iij4u.or.jp>
|
|
|
|
NOKUBI Takatsugu <knok@daionet.gr.jp>
|
|
|
|
|
|
|
|
%package qt
|
2008-10-23 12:32:46 +02:00
|
|
|
License: GPL v2 or later
|
2009-07-09 11:22:08 +02:00
|
|
|
Summary: Qt3 input module plugin for uim
|
2006-12-27 12:51:08 +01:00
|
|
|
Group: System/I18n/Japanese
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Provides: locale(qt3:ja)
|
|
|
|
|
|
|
|
%description qt
|
2009-07-09 11:22:08 +02:00
|
|
|
Qt3 input module plugin for uim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Kazuki Ohta <mover@hct.zaq.ne.jp>
|
|
|
|
Yamaken <yamaken@bp.iij4u.or.jp>
|
|
|
|
|
|
|
|
%package qt4
|
|
|
|
License: GPL v2 or later
|
|
|
|
Summary: Qt4 input module plugin for uim
|
|
|
|
Group: System/I18n/Japanese
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: uim-qt = %{version}
|
|
|
|
Provides: locale(libqt4:ja)
|
|
|
|
|
|
|
|
%description qt4
|
|
|
|
Qt4 input module plugin for uim
|
2006-12-27 12:51:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Kazuki Ohta <mover@hct.zaq.ne.jp>
|
|
|
|
Yamaken <yamaken@bp.iij4u.or.jp>
|
|
|
|
|
|
|
|
%prep
|
2009-07-09 11:22:08 +02:00
|
|
|
%setup0 -q
|
2006-12-27 12:51:08 +01:00
|
|
|
%patch1 -p1
|
2009-07-09 11:22:08 +02:00
|
|
|
%patch10 -p1
|
|
|
|
%if %suse_version >= 1110
|
|
|
|
%patch11 -p1
|
|
|
|
%endif
|
2006-12-27 12:51:08 +01:00
|
|
|
cp emacs/README README.emacs
|
|
|
|
iconv -f euc-jp -t utf-8 < emacs/README.ja > README.ja.emacs
|
|
|
|
|
|
|
|
%build
|
|
|
|
libtoolize --force --copy
|
|
|
|
autoreconf --force --install
|
2008-10-23 12:32:46 +02:00
|
|
|
intltoolize --force -c --automake
|
2007-02-02 16:16:42 +01:00
|
|
|
%configure\
|
|
|
|
--libexecdir=%{_prefix}/lib/uim \
|
|
|
|
--without-m17nlib\
|
|
|
|
--with-canna\
|
2009-07-09 11:22:08 +02:00
|
|
|
--with-anthy-utf8 \
|
2007-02-02 16:16:42 +01:00
|
|
|
--with-qt\
|
2009-07-09 11:22:08 +02:00
|
|
|
--with-qt-immodule \
|
|
|
|
--with-qt4-immodule \
|
|
|
|
--with-libedit
|
2007-02-02 16:16:42 +01:00
|
|
|
# --disable-scm-nested-eval --enable-callback-queue\
|
2009-07-09 11:22:08 +02:00
|
|
|
make %{?jobs:-j %jobs}
|
2006-12-27 12:51:08 +01:00
|
|
|
|
|
|
|
%install
|
2009-07-09 11:22:08 +02:00
|
|
|
%makeinstall
|
2007-04-01 12:14:05 +02:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*/*/*.*a $RPM_BUILD_ROOT%{_prefix}/lib*/*/*/*/*.*a
|
2009-07-09 11:22:08 +02:00
|
|
|
# gcroots devel -- we don't need it, right?
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_includedir}/gcroots.h
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gcroots.pc
|
2006-12-27 12:51:08 +01:00
|
|
|
# this file is generated by "uim-module-manager".
|
|
|
|
# touch it here to make sure that it is in the file list of the
|
|
|
|
# package, then it will be deleted when the package is uninstalled:
|
2007-02-02 16:16:42 +01:00
|
|
|
touch $RPM_BUILD_ROOT%{_datadir}/uim/modules
|
2006-12-27 12:51:08 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/X11/xim.d/ja
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/etc-x11-xim.d-uim \
|
|
|
|
$RPM_BUILD_ROOT/etc/X11/xim.d/uim
|
|
|
|
pushd $RPM_BUILD_ROOT/etc/X11/xim.d/ja
|
|
|
|
ln -s ../uim 60-uim
|
|
|
|
popd
|
|
|
|
# GNU Emacs:
|
2007-02-02 16:16:42 +01:00
|
|
|
install -m 644 $RPM_SOURCE_DIR/suse-start-uim.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/
|
|
|
|
pushd $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/uim-el
|
2006-12-27 12:51:08 +01:00
|
|
|
for i in $(find . -name "*.el")
|
|
|
|
do
|
|
|
|
emacs -no-site-file -q -batch -eval '(setq load-path (cons "." load-path))' -f batch-byte-compile $i
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
# XEmacs
|
2007-02-02 16:16:42 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp/uim-el
|
|
|
|
install -m 644 emacs/*.el $RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp/uim-el
|
|
|
|
pushd $RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp/uim-el
|
2006-12-27 12:51:08 +01:00
|
|
|
for i in $(find . -name "*.el")
|
|
|
|
do
|
|
|
|
xemacs -no-site-file -q -batch -eval '(setq load-path (cons "." load-path))' -f batch-byte-compile $i
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/xemacs-auto-autoloads.el \
|
2007-02-02 16:16:42 +01:00
|
|
|
$RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp/uim-el/auto-autoloads.el
|
2006-12-27 12:51:08 +01:00
|
|
|
# replace buildroot in comments in .elc files by spaces with the same total length:
|
|
|
|
RPM_BUILD_ROOT_REPLACEMENT=$(echo "$RPM_BUILD_ROOT" | tr [:print:] ' ')
|
|
|
|
for i in $(find $RPM_BUILD_ROOT -name "*.elc")
|
|
|
|
do
|
2007-02-02 16:16:42 +01:00
|
|
|
perl -pi -e "s|(;;; from file )$RPM_BUILD_ROOT(%{_datadir}/xemacs/site-packages/.*)|\1$RPM_BUILD_ROOT_REPLACEMENT\2|" $i
|
|
|
|
perl -pi -e "s|(;;; from file )$RPM_BUILD_ROOT(%{_datadir}/emacs/site-lisp/.*)|\1$RPM_BUILD_ROOT_REPLACEMENT\2|" $i
|
2006-12-27 12:51:08 +01:00
|
|
|
done
|
|
|
|
%find_lang uim
|
2009-07-09 11:22:08 +02:00
|
|
|
%if %suse_version > 1100
|
|
|
|
touch uim-chardict-qt.lang
|
|
|
|
%else
|
2006-12-27 12:51:08 +01:00
|
|
|
%find_lang uim-chardict-qt
|
2009-07-09 11:22:08 +02:00
|
|
|
%endif
|
2006-12-27 12:51:08 +01:00
|
|
|
%suse_update_desktop_file uim System SystemSetup
|
|
|
|
find $RPM_BUILD_ROOT -name "*.scm" \
|
|
|
|
| grep -E -v "installed-modules.scm|loader.scm" \
|
|
|
|
| sort | uniq | perl -p -e "s|$RPM_BUILD_ROOT||" >> uim.lang
|
2008-01-12 02:38:17 +01:00
|
|
|
%if %suse_version > 1020
|
|
|
|
%fdupes $RPM_BUILD_ROOT/usr/share
|
|
|
|
%endif
|
2006-12-27 12:51:08 +01:00
|
|
|
|
|
|
|
%clean
|
2007-02-06 00:46:47 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2006-12-27 12:51:08 +01:00
|
|
|
|
|
|
|
%post
|
2009-07-09 11:22:08 +02:00
|
|
|
/sbin/ldconfig
|
2006-12-27 12:51:08 +01:00
|
|
|
# register uim modules to uim. This will change the files:
|
2007-02-02 16:16:42 +01:00
|
|
|
# %{_datadir}/uim/installed-modules.scm
|
|
|
|
# %{_datadir}/uim/loader.scm
|
|
|
|
# %{_datadir}/uim/modules
|
2009-07-09 11:22:08 +02:00
|
|
|
uim-module-manager --register pyload anthy anthy-utf8 canna skk tcode tutcode hangul viqr ipa-x-sampa latin
|
2006-12-27 12:51:08 +01:00
|
|
|
|
|
|
|
%postun
|
2009-07-09 11:22:08 +02:00
|
|
|
/sbin/ldconfig
|
2006-12-27 12:51:08 +01:00
|
|
|
|
|
|
|
%post gtk2
|
|
|
|
# trigger run of SuSEconfig.gtk2 to register/unregister this input module
|
|
|
|
# by calling gtk-query-immodules-2.0:
|
|
|
|
touch var/adm/SuSEconfig/run-gtk
|
|
|
|
|
|
|
|
%postun gtk2
|
|
|
|
# trigger run of SuSEconfig.gtk2 to register/unregister this input module
|
|
|
|
# by calling gtk-query-immodules-2.0:
|
|
|
|
touch var/adm/SuSEconfig/run-gtk
|
|
|
|
|
|
|
|
%files -n uim -f uim.lang
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog INSTALL* NEWS* README*
|
|
|
|
%doc doc
|
|
|
|
%dir /etc/X11/xim.d/
|
|
|
|
/etc/X11/xim.d/*
|
2007-02-02 16:16:42 +01:00
|
|
|
%dir %{_datadir}/uim
|
2009-07-09 11:22:08 +02:00
|
|
|
%dir %{_datadir}/uim/lib
|
2006-12-27 12:51:08 +01:00
|
|
|
# autogenerated by uim-module-manager:
|
2007-02-02 16:16:42 +01:00
|
|
|
%ghost %{_datadir}/uim/installed-modules.scm
|
|
|
|
%ghost %{_datadir}/uim/loader.scm
|
|
|
|
%ghost %{_datadir}/uim/modules
|
|
|
|
%dir %{_datadir}/uim/pixmaps/
|
|
|
|
%{_datadir}/uim/pixmaps/*
|
2006-12-27 12:51:08 +01:00
|
|
|
%{_bindir}/uim-sh
|
|
|
|
%{_bindir}/uim-module-manager
|
|
|
|
%{_bindir}/uim-xim
|
|
|
|
%{_bindir}/uim-fep
|
|
|
|
%{_bindir}/uim-fep-tick
|
|
|
|
%{_bindir}/uim-el-agent
|
|
|
|
%{_bindir}/uim-el-helper-agent
|
|
|
|
%{_libdir}/*.so.*
|
2007-02-02 16:16:42 +01:00
|
|
|
%dir %{_libdir}/uim
|
|
|
|
%if "%{_libdir}" != "%{_prefix}/lib"
|
|
|
|
%dir %{_prefix}/lib/uim
|
|
|
|
%endif
|
|
|
|
%{_prefix}/lib/uim/uim-helper-server
|
|
|
|
%{_prefix}/lib/uim/uim-toolbar-applet
|
|
|
|
%{_prefix}/lib/uim/uim-candwin-gtk
|
2006-12-27 12:51:08 +01:00
|
|
|
%dir %{_libdir}/uim/plugin/
|
|
|
|
%{_libdir}/uim/plugin/*.so
|
2007-02-02 16:16:42 +01:00
|
|
|
%doc %{_mandir}/man1/*.1.gz
|
|
|
|
%{_datadir}/applications/%name.desktop
|
|
|
|
%{_datadir}/emacs/site-lisp/*
|
|
|
|
%dir %{_datadir}/xemacs/site-packages/
|
|
|
|
%dir %{_datadir}/xemacs/site-packages/lisp/
|
|
|
|
%dir %{_datadir}/xemacs/site-packages/lisp/uim-el/
|
|
|
|
%{_datadir}/xemacs/site-packages/lisp/uim-el/*
|
2006-12-27 12:51:08 +01:00
|
|
|
|
|
|
|
%files -n uim-devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/*.*a
|
|
|
|
%{_libdir}/*.so
|
2007-02-02 16:16:42 +01:00
|
|
|
%dir %{_includedir}/uim
|
|
|
|
%{_includedir}/uim/*
|
2006-12-27 12:51:08 +01:00
|
|
|
%{_libdir}/pkgconfig/uim.pc
|
|
|
|
|
|
|
|
%files -n uim-gtk2
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_bindir}/uim-im-switcher-gtk
|
|
|
|
%{_bindir}/uim-input-pad-ja
|
|
|
|
%{_bindir}/uim-toolbar-gtk
|
2007-02-02 16:16:42 +01:00
|
|
|
%{_bindir}/uim-toolbar-gtk-systray
|
2006-12-27 12:51:08 +01:00
|
|
|
%{_bindir}/uim-pref-gtk
|
2007-02-02 16:16:42 +01:00
|
|
|
%{_libdir}/bonobo/servers/*.server
|
|
|
|
%{_libdir}/gtk-*/*/immodules/*.so
|
2006-12-27 12:51:08 +01:00
|
|
|
|
|
|
|
%files -n uim-qt -f uim-chardict-qt.lang
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_bindir}/uim-chardict-qt
|
|
|
|
%{_bindir}/uim-im-switcher-qt
|
|
|
|
%{_bindir}/uim-pref-qt
|
|
|
|
%{_bindir}/uim-toolbar-qt
|
2007-02-02 16:16:42 +01:00
|
|
|
%{_prefix}/lib/qt3/plugins/inputmethods/*.so
|
|
|
|
%{_prefix}/lib/uim/uim-candwin-qt
|
|
|
|
%dir %{_datadir}/uim/helperdata/
|
|
|
|
%{_datadir}/uim/helperdata/bushu.t
|
2006-12-27 12:51:08 +01:00
|
|
|
|
2009-07-09 11:22:08 +02:00
|
|
|
%files -n uim-qt4 -f uim-chardict-qt.lang
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/qt4/plugins/inputmethods/*
|
|
|
|
|
2007-04-01 12:14:05 +02:00
|
|
|
%changelog
|