%define name zhcon %define version 0.2 %define pkgversion 0.2 %define release 1mdk Summary: Zhcon is a fast CJK console system Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{pkgversion}.tar.bz2 Source2: zhcon.cfg Patch0: zhcon-0.2.mdk.patch.bz2 License: GPL Url: http://zhcon.gnuchina.org Group: System/Internationalization BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} %description Zhcon is a fast Linux Console Chinese System which supports framebuffer device.It can display Chinese,Japanese or Korean double byte characters.Supported language encodings include: GB2312,GBK,BIG5,JIS and KSCM. It can also use input methods(table based) from M$pwin98 and UCDOS for M$-DOG. %prep %setup -n %{name}-%{pkgversion} %patch0 -p1 -b .mdk %build %configure %make # Uncompress the Html format documentation. (cd doc; gunzip -c html.tar.gz | tar xvf -) %install rm -rf $RPM_BUILD_ROOT %makeinstall DESTDIR=$RPM_BUILD_ROOT chmod +s $RPM_BUILD_ROOT%{_prefix}/bin/zhcon cp -f %{SOURCE2} $RPM_BUILD_ROOT%{_prefix}/etc %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING INSTALL README THANKS TODO doc/bpsf.txt doc/poem* doc/manual* %config(noreplace) %{_sysconfdir}/zhcon.conf %{_prefix}/bin/zhcon %{_mandir}/man1/* %{_prefix}/share/locale/*/LC_MESSAGES/zhcon.mo %_prefix/lib/zhcon %changelog * 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.