%define name x-unikey %define version 0.9.2 %define release 2mdk Name: %{name} Summary: A Vietnamese keyboard input for X-Window Version: %{version} Release: %{release} Group: System/Internationalization URL: http://unikey.sf.net/linux.php Source: http://prdownloads.sourceforge.net/unikey/%{name}-%{version}.tar.bz2 Patch0: x-unikey-0.9.2-fix-install.patch.bz2 Buildroot: %{_tmppath}/%{name}-buildroot License: GPL Requires: locales-vi BuildRequires: XFree86-devel %description X-Unikey is Unikey ported to Linux and FreeBSD. X-Unikey lets you type Vietnamese in X Window environment. It has been tested with many popular programs, such as OpenOffice, emacs, vim, QT applications, GTK applications... X-Unikey has all the features of the Windows version, except that its GUI is still too simplified. All options are set through configuration file or keyboard shortcuts. %prep %setup -q %patch0 -p0 %build #configure --with-unikey-gtk (default: excluded) CFLAGS="$RPM_OPT_FLAGS -fPIC" %configure %make %install rm -rf $RPM_BUILD_ROOT [[ -d doc/CVS ]] && rm -fr doc/CVS %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,0755) %{_bindir}/unikey %{_bindir}/ukxim %doc AUTHORS CREDITS ChangeLog README* COPYING NEWS INSTALL doc/* %changelog * Fri Aug 06 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.9.2-2mdk - stop updating /etc/profile in %%post (Larry Nguyen) * Wed Aug 04 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.9.2-1mdk - patch 0: fix installing - fix CVS files in %%doc - Initial build for Mandrakelinux 10.1 (Larry Nguyen <larry@vnlinux.org>)