SHA256
1
0
forked from pool/uim
OBS User unknown
2009-07-09 09:22:08 +00:00
committed by Git OBS Bridge
parent 4b9609aef9
commit da8c99f4c4
14 changed files with 149 additions and 496 deletions

230
uim.spec
View File

@@ -1,5 +1,5 @@
#
# spec file for package uim (Version 1.2.1)
# spec file for package uim (Version 1.5.6)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -19,8 +19,13 @@
Name: uim
BuildRequires: anthy-devel canna-devel emacs-x11 gcc-c++ gnome-panel-devel gtk2-devel intltool libgnomeui-devel ncurses-devel perl-XML-Parser pkg-config qt3-devel update-desktop-files xemacs
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
BuildRequires: libexpat-devel
BuildRequires: qt3-devel
BuildRequires: libqt4-devel
%if %suse_version > 1020
BuildRequires: fdupes
%endif
@@ -30,29 +35,23 @@ Group: System/I18n/Japanese
AutoReqProv: on
PreReq: %{_bindir}/touch
Provides: locale(xorg-x11:ja)
Version: 1.2.1
Release: 278
Version: 1.5.6
Release: 1
Url: http://uim.freedesktop.org/wiki/
# 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
Source0: http://uim.freedesktop.org/releases/uim-1.2.1.tar.bz2
Source0: http://uim.freedesktop.org/releases/uim-%{version}.tar.bz2
Source1: suse-start-uim.el
Source2: xemacs-auto-autoloads.el
Source3: etc-x11-xim.d-uim
Patch0: uim.desktop.patch
Patch1: qt-build.patch
Patch3: version.patch
Patch4: uim-configure.patch
Patch5: uim-slib.patch
Patch6: uim-aliasing.patch
Patch7: uim-el.patch
Patch8: missing-header.patch
Patch9: uim-fix-gnome-compilation.patch
Patch10: uim-sigscheme-build-fixes.diff
Patch11: uim-gnome-build-fixes.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: a multilingual input method library
Summary: A multilingual input method library
%description
Uim is a multilingual input method library. Uim's project goal is to
@@ -71,7 +70,7 @@ Authors:
%package devel
License: GPL v2 or later
Summary: Include Files and Libraries mandatory for Development.
Summary: Include Files and Libraries mandatory for Development
Group: System/I18n/Japanese
Requires: %{name} = %{version} glibc-devel
@@ -112,13 +111,31 @@ Authors:
%package qt
License: GPL v2 or later
Summary: Qt input module plugin for uim
Summary: Qt3 input module plugin for uim
Group: System/I18n/Japanese
Requires: %{name} = %{version}
Provides: locale(qt3:ja)
%description qt
Qt input module plugin for uim
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
@@ -128,16 +145,12 @@ Authors:
Yamaken <yamaken@bp.iij4u.or.jp>
%prep
%setup0 -q -n uim-%{version}
#%patch0 -p1
%setup0 -q
%patch1 -p1
#%patch3 -p1
#%patch4
%patch5
#%patch6
%patch7
%patch8 -p1
%patch9 -p1
%patch10 -p1
%if %suse_version >= 1110
%patch11 -p1
%endif
cp emacs/README README.emacs
iconv -f euc-jp -t utf-8 < emacs/README.ja > README.ja.emacs
@@ -149,14 +162,20 @@ intltoolize --force -c --automake
--libexecdir=%{_prefix}/lib/uim \
--without-m17nlib\
--with-canna\
--with-anthy-utf8 \
--with-qt\
--with-qt-immodule
--with-qt-immodule \
--with-qt4-immodule \
--with-libedit
# --disable-scm-nested-eval --enable-callback-queue\
make
make %{?jobs:-j %jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%makeinstall
rm $RPM_BUILD_ROOT%{_libdir}/*/*/*.*a $RPM_BUILD_ROOT%{_prefix}/lib*/*/*/*/*.*a
# 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
# 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:
@@ -194,7 +213,11 @@ do
perl -pi -e "s|(;;; from file )$RPM_BUILD_ROOT(%{_datadir}/emacs/site-lisp/.*)|\1$RPM_BUILD_ROOT_REPLACEMENT\2|" $i
done
%find_lang uim
%if %suse_version > 1100
touch uim-chardict-qt.lang
%else
%find_lang uim-chardict-qt
%endif
%suse_update_desktop_file uim System SystemSetup
find $RPM_BUILD_ROOT -name "*.scm" \
| grep -E -v "installed-modules.scm|loader.scm" \
@@ -207,15 +230,15 @@ find $RPM_BUILD_ROOT -name "*.scm" \
rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
/sbin/ldconfig
# register uim modules to uim. This will change the files:
# %{_datadir}/uim/installed-modules.scm
# %{_datadir}/uim/loader.scm
# %{_datadir}/uim/modules
uim-module-manager --register pyload anthy canna skk tcode tutcode hangul viqr ipa-x-sampa latin
uim-module-manager --register pyload anthy anthy-utf8 canna skk tcode tutcode hangul viqr ipa-x-sampa latin
%postun
%run_ldconfig
/sbin/ldconfig
%post gtk2
# trigger run of SuSEconfig.gtk2 to register/unregister this input module
@@ -234,6 +257,7 @@ touch var/adm/SuSEconfig/run-gtk
%dir /etc/X11/xim.d/
/etc/X11/xim.d/*
%dir %{_datadir}/uim
%dir %{_datadir}/uim/lib
# autogenerated by uim-module-manager:
%ghost %{_datadir}/uim/installed-modules.scm
%ghost %{_datadir}/uim/loader.scm
@@ -294,142 +318,8 @@ touch var/adm/SuSEconfig/run-gtk
%dir %{_datadir}/uim/helperdata/
%{_datadir}/uim/helperdata/bushu.t
%files -n uim-qt4 -f uim-chardict-qt.lang
%defattr(-, root, root)
%{_libdir}/qt4/plugins/inputmethods/*
%changelog
* Thu Jun 04 2009 tiwai@suse.de
- fix build for older distros
* Mon Feb 23 2009 vuntz@novell.com
- Add uim-fix-gnome-compilation.patch to fix build. The patch
should probably be sent upstream if the latest version still has
the issue (upstream is at 1.5.5 now).
- Add libgnomeui-devel BuildRequires for the patch.
* Tue Nov 25 2008 sbrabec@suse.cz
- Supplement gtk2-32bit/gtk2-64bit and qt3-32bit/qt3-64bit in
baselibs.conf (bnc#354164).
* Fri Oct 17 2008 mfabian@suse.de
- bnc#436245: Emacs cannot start flawlessly from within a directory
containing umlauts in it's name: fix by loading uim-leim
not immediately in suse-start-uim.el but rather load it in
'emacs-startup-hook.
(Fixed by Werner Fink <werner@suse.de>).
- fix build in Factory (add “intltoolize --force -c --automake”)
* Fri Jan 11 2008 mfabian@suse.de
- include missing headers to make it build on STABLE.
- use fdupes
* Mon May 07 2007 mfabian@suse.de
- Bugzilla #271696: fix bug in uim start script which made it
impossible to set uim as the default input method.
Thanks to Satoshi Niimi <sa2c@sa2c.net> for the report and the
fix.
* Sat Mar 31 2007 aj@suse.de
- Cleanup BuildRequires.
* Tue Feb 06 2007 ro@suse.de
- fix build
* Fri Feb 02 2007 sbrabec@suse.cz
- Removed references to /opt/gnome.
- Bi-arch libexecdir fix.
- Package each file only once.
- Use %%ghost for autogenerated files.
* Mon Dec 25 2006 schwab@suse.de
- Fix format string bugs.
- Make uim-el less chatty.
- Remove inappropriate advice.
- Don't clobber current-input-method-title.
* Fri Sep 15 2006 mfabian@suse.de
- make auto-autoloads.el for XEmacs really work.
- make vertical candidate list display the default.
* Thu Sep 14 2006 mfabian@suse.de
- add uim-el for XEmacs.
- byte-compile the .el files for Emacs and XEmacs.
- add suse-start-uim.el for Emacs and auto-autoloads.el for XEmacs
to be able to use uim-el without further setup.
* Mon Sep 11 2006 mfabian@suse.de
- update to 1.2.1.
- new subpackage uim-qt (used to be build from a different
tarball but it is now included in uim).
* Mon Jun 19 2006 schwab@suse.de
- Work around broken use of configure substitutions.
* Tue Feb 28 2006 mfabian@suse.de
- add "Provides: locale(...)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 18 2006 schwab@suse.de
- Fix garbage collector.
- Use RPM_OPT_FLAGS.
- Fix aliasing bugs.
* Fri Aug 26 2005 mfabian@suse.de
- Bugzilla #113081: uim should register the input modules in the
%%post script.
* Thu Aug 25 2005 mfabian@suse.de
- Bugzilla #112931: gtk2 specific stuff in %%post and %%postun should
be moved to the proper sub-package.
* Mon Aug 08 2005 mfabian@suse.de
- update to 0.4.8.
* Tue May 31 2005 mfabian@suse.de
- update to 0.4.6 svn revison 850.
remove ipa-x-sampa.patch (included).
* Mon Apr 25 2005 mfabian@suse.de
- update to 0.4.6 svn revision 828.
- fix a small problem in ipa-x-sampa: mnenonic for U+02D0 and
U+02D1 is ':' and ':\' respectively (not ';' and ';\').
* Thu Feb 24 2005 mfabian@suse.de
- Bugzilla #66448: update to 0.4.6 svn revision 714
to fix a security problem (CAN-2005-0503).
* Tue Feb 22 2005 mfabian@suse.de
- fix typo in /etc/X11/xim.d/uim.
* Tue Feb 22 2005 mfabian@suse.de
- create start script /etc/X11/xim.d/uim and symlink in ja
subdirectory.
* Sat Jan 08 2005 mfabian@suse.de
- update to 0.4.5.20050108.165 (fixes crashes and moves the plugins
to the correct directory).
- add anthy, anthy-devel to "# neededforbuild". Previously anthy
was not needed at buildtime but now it is.
- remove dont-use-uim-default-by-default-for-all-languages.patch,
it's not necessary anymore and setting the wildcard for the
direct input method to the empty string instead of "*" makes
uim crash.
* Fri Jan 07 2005 mfabian@suse.de
- update to 0.4.5.20050107.
- remove uim-toolbar-gtk.patch (now included in tarball).
* Wed Jan 05 2005 mfabian@suse.de
- update prime.scm to prime_2004-12-13.scm.
* Wed Dec 22 2004 mfabian@suse.de
- apply uim-toolbar-gtk.patch received from
TOKUNAGA Hiroyuki <tkng@xem.jp> to make uim-toolbar-gtk work
with gtk+ >= 2.5.
* Fri Dec 17 2004 mfabian@suse.de
- fix version number in configure.ac.
* Wed Dec 15 2004 mfabian@suse.de
- update to 0.4.5svn1650.
dont-use-uim-default-by-default-for-all-languages.patch is
apparently not necessary anymore.
* Fri Sep 17 2004 ro@suse.de
- remove xfce from neededforbuild (unused anyway)
* Sat Sep 04 2004 mfabian@suse.de
- update to 0.4.3.
* Tue Aug 24 2004 mfabian@suse.de
- Bugzilla #44155: add /usr/bin/touch to PreReq:.
* Fri Aug 20 2004 mfabian@suse.de
- update to svn trunk (0.4.2.1.20040820) to fix the switching
between the romaji and kana input mode, see also:
http://freedesktop.org/pipermail/uim/2004-August/000603.html
* Fri Aug 13 2004 mfabian@suse.de
- update to 0.4.2.1
- add control-reaches-end-of-non-void-function.patch.
- move uim-helper-candwin-gtk, uim-helper-toolbar-gtk, and
uim-helper-applet to uim-applet sub-package.
* Wed Mar 17 2004 mfabian@suse.de
- update to 0.3.2.
* Wed Mar 17 2004 mfabian@suse.de
- make only uim-anthy a default gtk-input-module for Japanese.
- don't use the uim-default input module for any language by
default (This module was used for *all* languages by default,
that means even when running in de_DE.UTF-8 locale,
uim-helper-server would start, which is quite useless).
- add canna canna-devel canna-libs to # neededforbuild in order
to build the uim-canna module as well.
* Fri Mar 05 2004 mfabian@suse.de
- update to 0.3.1
- remove uim.patch and warnings.patch (included upstream).
* Thu Feb 26 2004 mfabian@suse.de
- new package, version 0.3.0.1.