294 lines
7.5 KiB
RPMSpec
294 lines
7.5 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.5.1
|
|
Release: 1
|
|
License: GPL/BSD
|
|
Group: System Environment/Libraries
|
|
URL: http://freedesktop.org/Software/uim
|
|
Source0: http://freedesktop.org/Software/UimDownload/%{name}-%{version}.tar.gz
|
|
Source1: xinput.d-uim
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: gnome-panel-devel
|
|
Requires(post,postun): %{_sbindir}/alternatives
|
|
|
|
%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,postun): gtk2
|
|
|
|
%package gnome
|
|
Summary: GNOME Applet for Uim
|
|
Group: User Interface/Desktops
|
|
Requires: uim = %{version}-%{release}
|
|
Requires(post,postun): %{_sbindir}/bonobo-activation-sysconf
|
|
|
|
%package anthy
|
|
Summary: Anthy support for Uim
|
|
Group: System Environment/Libraries
|
|
Requires: anthy
|
|
Requires: uim = %{version}-%{release}
|
|
Requires(post,postun): gtk2
|
|
|
|
%package canna
|
|
Summary: Canna support for Uim
|
|
Group: System Environment/Libraries
|
|
Requires: Canna Canna-devel
|
|
Requires: uim = %{version}-%{release}
|
|
Requires(post,postun): gtk2
|
|
|
|
%package skk
|
|
Summary: SKK support for Uim
|
|
Group: System Environment/Libraries
|
|
Requires: skkdic
|
|
Requires: uim = %{version}-%{release}
|
|
Requires(post,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 or 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. Currently, it can input to applications which
|
|
support Gtk+'s immodule or XIM.
|
|
|
|
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. Currently, it can input to applications which
|
|
support Gtk+'s immodule or XIM.
|
|
|
|
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. Currently, it can input to applications which
|
|
support Gtk+'s immodule or XIM.
|
|
|
|
This package provides the GNOME panel applet.
|
|
|
|
%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
|
|
|
|
%ifarch x86_64
|
|
# 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
|
|
%endif
|
|
|
|
%build
|
|
%configure
|
|
make
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%makeinstall
|
|
|
|
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
|
|
|
|
%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
|
|
|
|
%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-im-switcher
|
|
%{_bindir}/uim-input-pad-ja
|
|
%{_bindir}/uim-toolbar-gtk
|
|
%{_bindir}/uim-toolbar-gtk-systray
|
|
%{_libdir}/gtk-2.0/2.*/immodules
|
|
%exclude %{_libdir}/gtk-2.0/2.*/immodules/im-uim.*a
|
|
%dir %{_datadir}/uim
|
|
%{_datadir}/uim/icons
|
|
|
|
%files gnome
|
|
%defattr (-, root, root)
|
|
%{_libexecdir}/uim-toolbar-applet
|
|
%{_libdir}/bonobo/servers/GNOME_UimApplet.server
|
|
|
|
%files anthy
|
|
%defattr (-, root, root)
|
|
%dir %{_datadir}/uim
|
|
%{_datadir}/uim/anthy.scm
|
|
|
|
%files canna
|
|
%defattr (-, root, root)
|
|
%dir %{_datadir}/uim
|
|
%{_datadir}/uim/canna.scm
|
|
|
|
%files skk
|
|
%defattr (-, root, root)
|
|
%dir %{_datadir}/uim
|
|
%{_datadir}/uim/skk*.scm
|
|
|
|
%changelog
|
|
* 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.
|