zhcon/zhcon.spec

153 lines
5.3 KiB
RPMSpec
Raw Normal View History

2007-03-27 07:25:40 +00:00
Name: zhcon
Summary: A Fast Console CJK System Using FrameBuffer
Version: 0.2.6
Release: 18%{?dist}
2007-03-27 07:25:40 +00:00
Group: Applications/System
2008-07-15 04:31:25 +00:00
License: GPLv2+
2008-11-25 02:14:18 +00:00
URL: http://zhcon.sourceforge.net/
2008-07-15 04:31:25 +00:00
Source0: http://ftp.debian.org/debian/pool/main/z/zhcon/%{name}_%{version}.orig.tar.gz
Patch0: http://ftp.debian.org/debian/pool/main/z/zhcon/%{name}_%{version}-6.1.diff.gz
2008-07-15 04:31:25 +00:00
Patch1: %{name}-%{version}-flags.patch
Patch2: %{name}-%{version}-path-define.patch
Patch3: %{name}-%{version}-gcc43.patch
Patch4: %{name}-%{version}-locale.patch
Patch5: %{name}-%{version}-keyswitch.patch
2008-11-25 02:14:18 +00:00
Patch6: %{name}-%{version}-xf86int10.patch
2008-07-15 04:31:25 +00:00
Summary: A fast Linux Console Chinese System that supports framebuffer
Summary(zh_CN): Zhcon 是一个支持 Framebuffer Linux 中日韩文控制台
Summary(zh_TW): Zhcon 是一個支援 Framebuffer 及多內碼 Linux 中日韓文主控台
2007-03-27 07:25:40 +00:00
2008-07-28 05:25:56 +00:00
%if 0%{?fedora} >= 9
%define ncurse_libs_postfix -libs
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: autoconf automake
BuildRequires: gettext-devel ncurses-devel gpm-devel
Requires: gpm ncurses%{!?ncurse_libs_postfix: }
2008-07-15 04:31:25 +00:00
2007-03-27 07:25:40 +00:00
%description
Zhcon is a fast Linux Console Chinese System which supports
framebuffer device.It can display Chinese, Japanese or Korean
2008-07-15 04:31:25 +00:00
double byte characters. Supported language encodings include:
UTF8, GB2312, GBK, BIG5, JIS and KSC.
2007-03-27 07:25:40 +00:00
%description -l zh_CN
2008-07-15 04:31:25 +00:00
zhcon 是一个支持 Framebuffer Linux 中日韩文控制台。
2007-03-27 07:25:40 +00:00
它能够控制台上显示简体中文、繁体中文、日文、韩文
等双字节字符。支持多种输入法。
2008-07-15 04:31:25 +00:00
现支持的有: UTF8, GB2312, GBK, BIG5, JIS KSC。
2007-03-27 07:25:40 +00:00
2008-07-15 04:31:25 +00:00
%description -l zh_TW
zhcon 是一個支援 Framebuffer 與多内碼的 Linux 中日韓文主控台。
它能够在控制台上顯示簡體中文、繁體中文、日文、韓文
等雙位元組字元。支援多种输入法。
現支援的內碼有: UTF8, GB2312, GBK, BIG5, JIS KSC。
2007-03-27 07:25:40 +00:00
%prep
2008-07-15 04:31:25 +00:00
%setup -q
%patch0 -p1 -b .6-diff
2008-07-15 04:31:25 +00:00
%patch1 -p1 -b .flags
%patch2 -p0 -b .path-define
%patch3 -p0 -b .gcc43
%patch4 -p0 -b .locale
%patch5 -p0 -b .keyswitch
2008-11-25 02:14:18 +00:00
%patch6 -p0 -b .xf86int10
2007-03-27 07:25:40 +00:00
iconv -f GB2312 -t UTF-8 ChangeLog -o ChangeLog.utf && mv -f ChangeLog.utf ChangeLog
( cd doc; tar -zxf html.tar.gz; chmod 755 manual)
# liu5 is a non-free input method
rm -f input/big5-liu5.mb
2007-03-27 07:25:40 +00:00
%build
# exit if bootstrap fails
# missing config.rpath causes automake failure
sed -i -e 's|set -x|set -e -x|' bootstrap
touch config.rpath
./bootstrap
%configure
make %{?_smp_mflags}
%install
rm -rf ${RPM_BUILD_ROOT}
make DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -c -p" install
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README README.utf8 THANKS TODO doc/bpsf.txt doc/README.html
%lang(zh_CN) %doc doc/manual* doc/poem.gb doc/poem.gb.utf8
%lang(zh_TW) %doc doc/poem.big5
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(4755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}/
%changelog
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Nov 19 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.2.6-16
- Applied Debian's zhcon_0.2.6-6-1.diff.gz patch.
- Remove input/big5-liu5.mb, as it may cause license issue.
* Mon Jan 04 2010 Ding-Yi Chen <dchen at redhat dot com> - 0.2.6-15
- Applied Debian's zhcon_0.2.6-6.diff.gz patch.
- Fixed Bug 539125 - FTBFS zhcon-0.2.6-14.fc12
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-11-25 03:51:39 +00:00
* Tue Nov 25 2008 Ding-Yi Chen <dchen at redhat dot com> - 0.2.6-12
2008-11-25 02:14:18 +00:00
- Debian provide patch of zhcon_0.2.6-5.2.diff.gz
2008-07-28 05:25:56 +00:00
* Mon Jul 15 2008 Ding-Yi Chen <dchen at redhat dot com> - 0.2.6-10
- Address the dependence in RHEL5 and Fedora <= 8 which do not have ncurses-libs.
- Add gpm as Required
2008-07-15 04:31:25 +00:00
* Tue Jul 15 2008 Ding-Yi Chen <dchen at redhat dot com> - 0.2.6-9
- [Bug 454228] [zhcon] Cannot start input method for x86_64 user
- [Bug 449625] FTBFS zhcon-0.2.6-8.fc9
- [Bug 441203] [zhcon] The input methods other than the default one were not changable for use
2008-03-03 06:13:52 +00:00
* Mon Mar 03 2008 Hu Zheng <zhu@redhat.com> - 0.2.6-8
- i386 build fix.
2008-02-26 09:13:06 +00:00
* Tue Feb 26 2008 Hu Zheng <zhu@redhat.com> - 0.2.6-7
- Gcc-4.3 compile fix.
2008-02-20 08:43:57 +00:00
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2.6-6
- Autorebuild for GCC 4.3
2007-03-29 04:06:29 +00:00
* Thu Mar 29 2007 Hu Zheng <zhu@redhat.com> - 0.2.6-5
2007-03-29 03:43:22 +00:00
- Fix x86_64 compile error.
2007-03-27 07:25:40 +00:00
* Tue Feb 27 2007 Hu Zheng <zhu@redhat.com> - 0.2.6-3
- Update for review.
* Thu Feb 15 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.2.6-2.1
- Add source URL
- Check if bootstrap exited with success
- Change the directory of %%{name}.conf
- Move all files in %%{_libdir} to %%{_datadir} (no libraries is
found)
- Add BR gpm-devel
- Pass optflags correctly
- Keep timestamps
* Thu Feb 15 2007 Hu Zheng <zhu@redhat.com> - 0.2.6-2
- Fix spec file.
* Mon Feb 12 2007 Hu Zheng <zhu@redhat.com> - 0.2.6-1
- Initial build for Fedora Extra