%define version 0.2.3 %define release 7mdk Summary: Zhcon is a fast CJK console system Name: zhcon Version: %{version} Release: %{release} License: GPL URL: http://zhcon.sf.net/ Group: System/Internationalization BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot # http://download.sourceforge.net/zhcon/ Source0: %{name}-%{version}.tar.bz2 # 0.2.3-1mdk (Abel) various config files tuned for each locale Source1: %{name}-0.2.3-config.tar.bz2 # 0.2.3-1mdk (Abel) small script to check for appropriate config file Source2: zhcon-config.sh # 0.2.3-1mdk (Abel) http://www.okpos.com/wiki/pos/ZhconKoreanPatch Patch0: %{name}-0.2.2-korean-input-0.2.patch.bz2 # 0.2.3-2mdk (Abel) GCC 3.x fix Patch1: %{name}-0.2.3-gcc3.patch.bz2 # 0.2.3-1mdk (Abel) Fix debug flag in configure.in Patch2: %{name}-0.2.3-configure-fix.patch.bz2 # 0.2.3-1mdk (Abel) Allow non-root install Patch3: %{name}-0.2.3-nonroot.patch.bz2 # 0.2.3-1mdk (Abel) Avoid unicon dependency altogether Patch4: %{name}-0.2.3-no-unicon.patch.bz2 # 0.2.3-1mdk (Abel) Move config to /etc/zhcon/zhcon.conf Patch5: %{name}-0.2.3-config-location.patch.bz2 # 0.2.3-2mdk (Abel) Ugly hack for allowing big5 input methods Patch6: %{name}-0.2.3-big5.patch.bz2 Patch7: zhcon-0.2.3-build-fix.patch.bz2 Patch8: zhcon-fix-gcc-3.4.patch.bz2 Patch9: zhcon-0.2.3-CAN-2005-0072.patch BuildRequires: automake1.7 BuildRequires: gettext-devel BuildRequires: libggi-devel BuildRequires: ncurses-devel BuildRequires: bison Prereq: bootsplash >= 1.3.4 %description Zhcon is a fast Linux Console which supports framebuffer device. It can display Chinese, Japanese or Korean (CJK) double byte characters. Supported language encodings include: GB2312, GBK, BIG5, JIS and KSCM. It can also use input methods (table based) from unicon. %prep %setup -q %patch0 -p1 -b .korean %patch1 -p1 -b .gcc3 %patch2 -p1 -b .debugflag %patch3 -p1 -b .nonroot %patch4 -p1 -b .no-unicon %patch5 -p1 -b .configfile %patch6 -p1 -b .big5 %patch7 -p0 -b .build %patch8 -p1 -b .fix_gcc_3_4 %patch9 -p1 -b .can-2005-0072 # needed by patch0,3,5 aclocal-1.7 automake-1.7 # needed by patch2,4 autoconf-2.5x # cleanup backup from patch, otherwise they will be dist'ed rm -f src/keyboard/*.korean %build %configure2_5x %make # Uncompress the Html format documentation. tar zxf doc/html.tar.gz %install [ -z "%buildroot" -o "%buildroot" = "/" ] || rm -rf %buildroot %makeinstall_std # don't include duplicate locale files pushd %buildroot%{_datadir}/locale mv zh_CN.GB2312 zh_CN mv zh_TW.Big5 zh_TW rm -rf ./zh_CN.GBK ./zh_CN.EUC popd # custom config/scripts tar --bzip2 -xf %{SOURCE1} -C %{buildroot}%{_sysconfdir}/%{name}/ install -m 0755 %{SOURCE2} %{buildroot}%{_libdir}/%{name}/zhcon-config.sh %{find_lang} %{name} %clean [ -z "%buildroot" -o "%buildroot" = "/" ] || rm -rf %buildroot %post # FIXME: Should have a clean way to do all these if [ $1 = 1 ]; then %{_libdir}/%{name}/zhcon-config.sh fi %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING INSTALL README THANKS TODO doc/bpsf.txt doc/poem* manual/ %dir %{_sysconfdir}/%{name} %ghost %{_sysconfdir}/%{name}/zhcon.conf %config(noreplace) %{_sysconfdir}/%{name}/zhcon.conf.* %attr(4755, root, root) %{_bindir}/zhcon %{_mandir}/man?/* %{_libdir}/%{name} %changelog * Tue Jan 25 2005 Pablo Saratxaga <pablo@mandrakesoft.com> 0.2.3-7mdk - rebuild the security fix update from 10.1 * Thu Jan 20 2005 Vincent Danen <vdanen@mandrakesoft.com> 0.2.3-6.2.101mdk - updated patch for CAN-2005-0072 * Mon Jan 17 2005 Vincent Danen <vdanen@mandrakesoft.com> 0.2.3-6.1.101mdk - security fix for CAN-2005-0072 * Mon Jun 14 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.2.3-6mdk - Rebuild * Sun Feb 08 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.2.3-5mdk - rebuild for libnewt-0.51 - patch 7: fix build * Fri Oct 24 2003 Stefan van der Eijk <stefan@eijk.nu> 0.2.3-4mdk - BuildRequires * Thu Sep 11 2003 Abel Cheung <deaddog@deaddog.org> 0.2.3-3mdk - rebuild * Mon Aug 25 2003 Abel Cheung <deaddog@deaddog.org> 0.2.3-2mdk - Better patch1 (taken from freebsd port) - Patch6: Ugly hack to allow inputing big5 characters (big5 input support in zhcon was broken) * Thu Aug 7 2003 Abel Cheung <deaddog@deaddog.org> 0.2.3-1mdk - 0.2.3 - Remove patch0 (patch0 just eliminates DESTDIR support, nothing more) - Spec fixes - New Patch0: better korean support from (no trailing slash!) http://www.okpos.com/wiki/pos/ZhconKoreanPatch - Patch1: Fix building for gcc 3.x - Patch2: Fix --enable-debug - Patch3: avoid setuid and use DESTDIR when installing - Patch4: Avoid unicon dependency (unicon should really die) - Patch5: Move config file from /etc to /etc/zhcon/ (avoid cluttering /etc) - Source1: Various config files for each locale * Fri Mar 15 2002 DU Xiaoming <dxiaoming@mandrakesoft.com> 0.2-1mdk - Upgraded to 0.2 based on the work of Andrew Lee <andrew@linux.org.tw> * Sun Jan 06 2002 DU Xiaoming <dxiaoming@mandrakesoft.com> 0.2-b2-1mdk - First version for Mandrake Linux.