354 lines
9.4 KiB
RPMSpec
354 lines
9.4 KiB
RPMSpec
%define uim_locale ja_JP ko_KR vi_VN zh_CN zh_TW
|
|
%define inst_xinput for llcc in %{uim_locale}; do alternatives --install %{_sysconfdir}/X11/xinit/xinput.d/$llcc xinput-$llcc %{_sysconfdir}/X11/xinit/xinput.d/uim 50 ; done
|
|
%define uninst_xinput for llcc in %{uim_locale}; do alternatives --remove xinput-$llcc %{_sysconfdir}/X11/xinit/xinput.d/uim ; done
|
|
|
|
Summary: A multilingual input method library
|
|
Name: uim
|
|
Version: 0.4.6
|
|
Release: 3
|
|
License: GPL/BSD
|
|
Group: System Environment/Libraries
|
|
URL: http://uim.freedesktop.org/
|
|
Source0: http://uim.freedesktop.org/release/%{name}-%{version}.tar.gz
|
|
Source1: xinput.d-uim
|
|
Patch0: uim-0.4.6-multilib.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: gtk2-devel gnome-panel-devel qt-devel ncurses-devel
|
|
BuildRequires: anthy-devel Canna-devel
|
|
Requires(post): %{_sbindir}/alternatives /sbin/ldconfig
|
|
Requires(postun): %{_sbindir}/alternatives /sbin/ldconfig
|
|
|
|
%package devel
|
|
Summary: Development files for the Uim library
|
|
Group: Development/Libraries
|
|
Requires: uim = %{version}-%{release}
|
|
|
|
%package gtk2
|
|
Summary: GTK+2 support for Uim
|
|
Group: User Interface/Desktops
|
|
Requires: uim = %{version}-%{release}
|
|
Requires(post): gtk2
|
|
Requires(postun): gtk2
|
|
|
|
%package gnome
|
|
Summary: GNOME Applet for Uim
|
|
Group: User Interface/Desktops
|
|
Requires: uim = %{version}-%{release}
|
|
Requires(post): %{_sbindir}/bonobo-activation-sysconf
|
|
Requires(postun): %{_sbindir}/bonobo-activation-sysconf
|
|
|
|
%package qt
|
|
Summary: Qt support for Uim
|
|
Group: User Interface/Desktops
|
|
Requires: uim = %{version}-%{release}
|
|
|
|
%package anthy
|
|
Summary: Anthy support for Uim
|
|
Group: System Environment/Libraries
|
|
Requires: anthy
|
|
Requires: uim = %{version}-%{release}
|
|
Requires(post): gtk2
|
|
Requires(postun): gtk2
|
|
|
|
%package canna
|
|
Summary: Canna support for Uim
|
|
Group: System Environment/Libraries
|
|
Requires: Canna Canna-devel
|
|
Requires: uim = %{version}-%{release}
|
|
Requires(post): gtk2
|
|
Requires(postun): gtk2
|
|
|
|
%package skk
|
|
Summary: SKK support for Uim
|
|
Group: System Environment/Libraries
|
|
Requires: skkdic
|
|
Requires: uim = %{version}-%{release}
|
|
Requires(post): gtk2
|
|
Requires(postun): gtk2
|
|
|
|
%description
|
|
Uim is a multilingual input method library. Uim aims to
|
|
provide secure and useful input methods for all
|
|
languages. Currently, it can input to applications which
|
|
support Gtk+'s immodule, Qt's immodule and XIM.
|
|
|
|
This package provides the input method library, the XIM
|
|
bridge and most of the input methods.
|
|
|
|
For the Japanese input methods you need to install
|
|
- uim-anthy for Anthy
|
|
- uim-canna for Canna
|
|
- uim-skk for SKK.
|
|
|
|
%description devel
|
|
Uim is a multilingual input method library. Uim aims to
|
|
provide secure and useful input methods for all
|
|
languages.
|
|
|
|
This package contains the header files and the libraries which is
|
|
needed for developing Uim applications.
|
|
|
|
%description gtk2
|
|
Uim is a multilingual input method library. Uim aims to
|
|
provide secure and useful input methods for all
|
|
languages.
|
|
|
|
This package provides the Gtk IM module and helper program.
|
|
|
|
%description gnome
|
|
Uim is a multilingual input method library. Uim aims to
|
|
provide secure and useful input methods for all
|
|
languages.
|
|
|
|
This package provides the GNOME panel applet.
|
|
|
|
%description qt
|
|
Uim is a multilingual input method library. Uim aims to
|
|
provide secure and useful input methods for all
|
|
|
|
This package provides the Qt IM module and helper programs.
|
|
|
|
%description anthy
|
|
This package provides support for Anthy, a Japanese input method.
|
|
|
|
%description canna
|
|
This package provides support for Canna, a Japanese input method.
|
|
|
|
%description skk
|
|
This package provides support for SKK, a Japanese input method.
|
|
|
|
%define gtk_im_update ( [ -x "%{_bindir}/update-gtk-immodules" ] && %{_bindir}/update-gtk-immodules %{_arch}-%{_host_vendor}-%{_host_os} ) || ( [ -x "%{_bindir}/gtk-query-immodules-2.0" ] && %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules )
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1 -b .multilib
|
|
|
|
# patch creation:
|
|
libtoolize --force && aclocal-1.9 -I m4 && autoheader && automake-1.9 --foreign && autoconf
|
|
# touch uim/config.h.in, otherwise autoheader will run again
|
|
touch uim/config.h.in
|
|
|
|
%build
|
|
%configure --with-canna --with-anthy --with-gtk2 --with-gnome2 --with-qt --with-qt-immodule
|
|
make
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d
|
|
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinput.d/uim
|
|
|
|
%find_lang %{name}
|
|
|
|
find $RPM_BUILD_ROOT -name "*.scm" -type f | egrep -v "(anthy|canna|skk|uim-sh)" > scm.list
|
|
cat scm.list | sed -e s,$RPM_BUILD_ROOT,,g >> %{name}.lang
|
|
|
|
# compress large doc
|
|
bzip2 ChangeLog
|
|
|
|
# remove the unnecessary files
|
|
rm $RPM_BUILD_ROOT%{_libdir}/uim/plugin/*.{a,la}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
%{inst_xinput}
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
%{uninst_xinput}
|
|
|
|
%post gtk2
|
|
umask 022
|
|
%{gtk_im_update}
|
|
|
|
%postun gtk2
|
|
umask 022
|
|
if [ $1 = 0 ]; then
|
|
%{gtk_im_update}
|
|
fi
|
|
|
|
%post gnome
|
|
bonobo-activation-sysconf --add-directory=%{_libdir}/bonobo/servers > /dev/null
|
|
|
|
%postun gnome
|
|
bonobo-activation-sysconf --remove-directory=%{_libdir}/bonobo/servers
|
|
|
|
%post anthy
|
|
umask 022
|
|
%{gtk_im_update}
|
|
|
|
%postun anthy
|
|
umask 022
|
|
if [ $1 = 0 ]; then
|
|
%{gtk_im_update}
|
|
fi
|
|
|
|
%post canna
|
|
umask 022
|
|
%{gtk_im_update}
|
|
|
|
%postun canna
|
|
umask 022
|
|
if [ $1 = 0 ]; then
|
|
%{gtk_im_update}
|
|
fi
|
|
|
|
%post skk
|
|
umask 022
|
|
%{gtk_im_update}
|
|
|
|
%postun skk
|
|
umask 022
|
|
if [ $1 = 0 ]; then
|
|
%{gtk_im_update}
|
|
fi
|
|
|
|
%files -f %{name}.lang
|
|
%defattr (-, root, root)
|
|
%doc AUTHORS COPYING ChangeLog* NEWS README
|
|
%lang(ja) %doc README.ja
|
|
%{_bindir}/uim-fep*
|
|
%{_bindir}/uim-helper-server
|
|
%{_bindir}/uim-xim
|
|
%{_libdir}/lib*.so.*
|
|
%dir %{_datadir}/uim
|
|
%{_datadir}/uim/tables
|
|
%{_sysconfdir}/X11/xinit/xinput.d
|
|
%dir %{_libdir}/uim
|
|
%{_libdir}/uim/plugin/libuim-custom-enabler.so
|
|
%{_datadir}/uim/pixmaps
|
|
%{_datadir}/uim/helperdata
|
|
|
|
%files devel
|
|
%defattr (-, root, root)
|
|
%dir %{_datadir}/uim
|
|
%{_bindir}/uim-sh
|
|
%{_includedir}/uim/
|
|
%{_libdir}/gtk-2.0/2.*/immodules/im-uim.*a
|
|
%{_libdir}/lib*.a
|
|
%{_libdir}/lib*.la
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/pkgconfig/*
|
|
%{_datadir}/uim/uim-sh.scm
|
|
|
|
%files gtk2
|
|
%defattr (-, root, root)
|
|
%{_bindir}/uim-candwin-gtk
|
|
%{_bindir}/uim-helper-candwin-gtk
|
|
%{_bindir}/uim-helper-toolbar-gtk
|
|
%{_bindir}/uim-helper-toolbar-gtk-systray
|
|
%{_bindir}/uim-toolbar-gtk
|
|
%{_bindir}/uim-toolbar-gtk-systray
|
|
%{_bindir}/uim-im-switcher-gtk
|
|
%{_bindir}/uim-input-pad-ja
|
|
%{_libdir}/gtk-2.0/2.*/immodules
|
|
%exclude %{_libdir}/gtk-2.0/2.*/immodules/im-uim.*a
|
|
%dir %{_datadir}/uim
|
|
%{_datadir}/applications/uim.desktop
|
|
|
|
%files gnome
|
|
%defattr (-, root, root)
|
|
%{_libexecdir}/uim-helper-applet
|
|
%{_libexecdir}/uim-toolbar-applet
|
|
%{_libdir}/bonobo/servers/GNOME_UimApplet.server
|
|
|
|
%files qt
|
|
%defattr (-, root, root)
|
|
%{_bindir}/uim-candwin-qt
|
|
%{_bindir}/uim-chardict-qt
|
|
%{_bindir}/uim-im-switcher-qt
|
|
%{_bindir}/uim-pref-qt
|
|
%{_bindir}/uim-toolbar-qt
|
|
%{_libdir}/qt-3.*/plugins/inputmethods
|
|
%exclude %{_libdir}/qt-3.*/plugins/inputmethods/lib*.*a
|
|
|
|
%files anthy
|
|
%defattr (-, root, root)
|
|
%{_libdir}/uim/plugin/libuim-anthy.so
|
|
%dir %{_datadir}/uim
|
|
%{_datadir}/uim/anthy*.scm
|
|
|
|
%files canna
|
|
%defattr (-, root, root)
|
|
%{_libdir}/uim/plugin/libuim-canna.so
|
|
%dir %{_datadir}/uim
|
|
%{_datadir}/uim/canna*.scm
|
|
|
|
%files skk
|
|
%defattr (-, root, root)
|
|
%{_libdir}/uim/plugin/libuim-skk.so
|
|
%dir %{_datadir}/uim
|
|
%{_datadir}/uim/skk*.scm
|
|
|
|
%changelog
|
|
* Mon May 16 2005 Akira TAGOH <tagoh@redhat.com> - 0.4.6-3
|
|
- uim-0.4.6-multilib.patch: applied to fix a build issue for
|
|
libquiminputcontextplugin.so. (John Thacker, #156880)
|
|
|
|
* Fri May 6 2005 Akira TAGOH <tagoh@redhat.com> - 0.4.6-2
|
|
- added BuildRequires: ncurses-devel. (#156880)
|
|
|
|
* Mon Apr 18 2005 Akira TAGOH <tagoh@redhat.com> - 0.4.6-1
|
|
- New upstream release. (#155173)
|
|
- fixed missing return statement issue. (#150304)
|
|
- Updated upstream URL.
|
|
- ensure to build with Canna and anthy.
|
|
- enabled Qt immodule.
|
|
- added QT_IM_MODULE=uim to xinput.d-uim
|
|
|
|
* Fri Apr 1 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.4.5.1-2
|
|
- Include headers directory in -devel package.
|
|
|
|
* Fri Mar 4 2005 Ville Skyttä <ville.skytta at iki.fi>
|
|
- Split context marked dependency syntax to work around #118773.
|
|
- Add ldconfig scriptlet dependencies.
|
|
|
|
* Thu Feb 24 2005 Akira TAGOH <tagoh@redhat.com> - 0.4.5.1-1
|
|
- New upstream release.
|
|
- security fix.
|
|
- support xinput script.
|
|
|
|
* Sun Feb 20 2005 Thorsten Leemhuis <fedora[AT]leemhuis[dot]info> 0.4.5-2
|
|
- Added autoreconf-patch; fixes build on x86_64
|
|
|
|
* Wed Jan 12 2005 Akira TAGOH <tagoh@redhat.com> 0.4.5-1
|
|
- New upstream release.
|
|
|
|
* Wed Sep 08 2004 Akira TAGOH <tagoh@redhat.com> 0.4.3-1
|
|
- New upstream release.
|
|
- moved out gtk2 related files to uim-gtk2 package.
|
|
|
|
* Mon Jul 12 2004 Jens Petersen <petersen@redhat.com> - 0.4.0-1
|
|
- no longer need to remove screen files
|
|
- include console fep programs
|
|
|
|
* Fri Jul 2 2004 Jens Petersen <petersen@redhat.com> - 0.3.9-3
|
|
- support both update-gtk-immodules of newer gtk2 and older
|
|
gtk-query-immodules-2.0 with new %%gtk_im_update added
|
|
|
|
* Wed Jun 30 2004 Jens Petersen <petersen@redhat.com> - 0.3.9-2
|
|
- add uim-applet-category-cjk.patch to put applet in right submenu
|
|
- improve the summaries and descriptions
|
|
- make the Requires(postun) be Requires(post,postun)
|
|
- file ownership and other minor cleanup
|
|
|
|
* Wed Jun 23 2004 Akira TAGOH <tagoh@redhat.com> 0.3.9-1
|
|
- New upstream release.
|
|
|
|
* Fri Jun 04 2004 Akira TAGOH <tagoh@redhat.com> 0.3.8-4
|
|
- wrote the descriptions.
|
|
- uim-skk: fixed the dependency.
|
|
|
|
* Fri Jun 04 2004 Nils Philippsen <nphilipp@redhat.com> 0.3.8-3
|
|
- more spec cleanups
|
|
|
|
* Fri Jun 04 2004 Warren Togami <wtogami@redhat.com> 0.3.8-2
|
|
- many spec cleanups
|
|
|
|
* Thu Jun 03 2004 Akira TAGOH <tagoh@redhat.com> 0.3.8-1
|
|
- Initial package.
|