File hanterm-xf.spec of Package hanterm-xf
#
# spec file for package hanterm-xf (Version 2.0.5_173)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: hanterm-xf
BuildRequires: ncurses-devel update-desktop-files utempter xorg-x11-devel
%if "%(xft-config --prefix)" == "/usr"
%define appdefdir /usr/share/X11
%else
%define appdefdir /usr/X11R6/lib/X11
%endif
License: X11/MIT
Group: System/X11/Terminals
Obsoletes: htermxf
Provides: htermxf
Requires: xfntkr
Autoreqprov: on
Summary: Hangul Terminal for the X Window System
URL: http://kldp.net/project/showfiles.php?group_id=34
Version: 2.0.5_173
Release: 250
# http://download.kldp.net/hanterm-xf/hanterm-xf-2.0.5-173.tar.gz
Source0: http://download.kldp.net/hanterm-xf/hanterm-xf-2.0.5-173.tar.bz2
Source5: hanterm.desktop.kde3x
Source7: hanterm-32x32.png
Patch1: hanterm-xf-64bit.patch
Patch2: hanterm-xf-powerpc.patch
Patch3: hanterm-xf-utempter.patch
Patch4: hanterm-can-2003-0078.patch
Patch5: hanterm-xf-nonvoid.patch
Patch6: sentinel.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Hanterm is a replacement for XTerm that supports Hangul input and
output; it is a modified version of the XTerm program from the X Window
System. Hanterm uses its own native input system and does not require
an X Window System input method server. For Hanterm to work properly, a
Hangul-encoded font must be available.
Authors:
--------
ChiDeok Hwang <hwang@mizi.co.kr>
%prep
%setup -q -n hanterm-xf-2.0.5-173
%patch1 -p 1 -b .64bit
%patch2 -p 1 -b .powerpc
%patch3 -p 1 -b .utempter
%patch4 -p 1 -b .can-2003-0078
%patch5 -p 0 -b .nonvoid
%patch6 -p 1
%build
# update config.{guess,sub}
%{?suse_update_config}
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
./configure --prefix=%{_prefix} \
--bindir=%{_bindir} \
--mandir=%{_mandir} \
--libdir=%{_libdir} \
--datadir=%{_datadir} \
%{_target_cpu}-suse-linux-gnu \
--with-utempter \
--enable-256-color \
--enable-dec-locator \
--enable-hp-fkeys \
--enable-sco-fkeys \
--enable-boxchar \
--enable-ansi-color \
--enable-wide-chars \
--disable-imake
# --enable-luit \ # doesn't seem to work currently
make
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -c -m 555 hanterm $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m444 hanterm.man $RPM_BUILD_ROOT%{_mandir}/man1/hanterm.1
mkdir -p $RPM_BUILD_ROOT%{appdefdir}/{ko,ko_KR.UTF-8,}/app-defaults
install -m644 Hanterm.ad \
$RPM_BUILD_ROOT%{appdefdir}/ko/app-defaults/Hanterm
install -m644 Hanterm-col.ad \
$RPM_BUILD_ROOT%{appdefdir}/ko/app-defaults/Hanterm-color
# may be shared with Ami!:
mkdir -p $RPM_BUILD_ROOT%{_datadir}/hangul_keyboard
install -m444 keyboard/*.kbd $RPM_BUILD_ROOT%{_datadir}/hangul_keyboard
install -m444 keyboard/*.map $RPM_BUILD_ROOT%{_datadir}/hangul_keyboard
# Icons and desktop stuff:
mkdir -p %{buildroot}/usr/share/pixmaps/
install -c -m 644 $RPM_SOURCE_DIR/hanterm-32x32.png \
%{buildroot}/usr/share/pixmaps/hanterm.png
mkdir -p %{buildroot}/usr/share/applications/
install -c -m 644 $RPM_SOURCE_DIR/hanterm.desktop.kde3x \
%{buildroot}/usr/share/applications/hanterm.desktop
%suse_update_desktop_file hanterm TerminalEmulator
%clean
rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-,root,root)
%doc README* INSTALL* docs/
%attr(555,root,root) %{_bindir}/hanterm
%{_mandir}/man1/*
%dir %{appdefdir}/ko/
%dir %{appdefdir}/ko/app-defaults/
%{appdefdir}/*/app-defaults/*
%config(noreplace) %{_datadir}/hangul_keyboard
/usr/share/pixmaps/hanterm.png
/usr/share/applications/hanterm.desktop
%changelog
* Fri Mar 30 2007 - ro@suse.de
- added ncurses-devel to buildreq
* Tue Jan 23 2007 - aj@suse.de
- Cleanup BuildRequires.
* Mon Aug 14 2006 - mfabian@suse.de
- move app-defaults to /usr/share/X11 for X11R7.
* Fri May 26 2006 - schwab@suse.de
- Don't strip binaries.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Apr 13 2005 - mfabian@suse.de
- don't use only 0 as the last argument of execlp, cast it to a
pointer (to make it build in STABLE again).
* Sun Oct 10 2004 - schwab@suse.de
- Fix requires.
* Mon May 24 2004 - ro@suse.de
- added -fno-strict-aliasing
- addeded missing return value to non-void function
- disable use of imake in configure (broke with XVENDORNAME)
* Sat Jan 10 2004 - adrian@suse.de
- add %%defattr
* Sun Sep 07 2003 - adrian@suse.de
- install only one desktop file and icon at the standard place
- fix Categories
* Thu Jun 12 2003 - mfabian@suse.de
- add security patch: hanterm-can-2003-0078.patch:
Hangul Terminal provided an escape sequence for reporting the
current on the command line. An attacker could have crafted an
escape sequence that sets the window title of a victim
to an arbitrary command and then report it to the command line.
Since it is not possible to embed a carriage return into the
window title the attacker would then have to convince the victim
to press Enter for it to process the title as a command.
This feature is disabled now.
* Thu Jun 12 2003 - mfabian@suse.de
- update to 2.0.5-173
- add hanterm-xf-utempter.patch to avoid creating two utmp
entries when running as root, one via utempter and one
via the old mechanism.
* Sat Feb 15 2003 - mfabian@suse.de
- update to 2.0.4-172
- remove obsolete patches: hanterm-xf-p15-font.patch,
hanterm-xf-charproc.patch, hanterm-xf-p18-tempfile.patch
- fix crash on 64bit platforms ("int *" was used instead of
"size_t *" when calling iconv.
* Fri Aug 16 2002 - mfabian@suse.de
- remove KDE 1 stuff
- move stuff from /opt/kde2 to /opt/kde3
- .spec-file cleanup
- xf86 -> x-devel-packages in # neededforbuild
* Tue Jan 29 2002 - okir@suse.de
- enable utempter support and zap the s bit
* Thu Jan 24 2002 - okir@suse.de
- applied tempfile patch
* Tue Oct 09 2001 - mfabian@suse.de
- change default English font:
use "-*-fixed-medium-r-normal-*-16-*-75-75-c-*-iso8859-1"
instead of
"-schumacher-clean-bold-r-normal--16-160-75-75-c-80-iso8859-1"
The last one doesn't exist anymore on SuSE 7.3, therefore
one gets an error message and hanterm doesn't start unless
one explicitly specifies a different font.
* Tue May 29 2001 - mfabian@suse.de
- Fix to make it work on PowerPC
* Sun Feb 04 2001 - violiet@suse.de
- fixed KDE1 pixmap.
- htermxf renamed to hanterm-xf.
* Wed Jan 03 2001 - violiet@susekorea.net
- NEW HANTERM PIXMAPS.
- added KDE-1.x, KDE-2.x desktop file.
- added requires: xfntkr.
* Thu Nov 30 2000 - violiet@susekorea.net
- modified All hanterm resources.
* Mon Sep 04 2000 - mfabian@suse.de
- added improved app-defaults received from susekorea.net
(these app-defaults choose nicer fonts and use Korean in the
status line of hanterm.)
- replaced pixmap /usr/share/pixmaps/hanterm.png by a new version
* Thu Aug 24 2000 - mfabian@suse.de
- adapted to SuSE autobuild
* Sun May 07 2000 - Jaegul Jang <jjack@linuxone.co.kr>
- rebuild hanterm-xf-p18 version
* Fri Feb 18 2000 - Jaegul Jang <jjack@linuxone.co.kr>
- setting standard colors for 8bit X-window
* Thu Feb 10 2000 - HwaSeop Kum <mungge@lycos.co.kr>
- import ManYong's patch openpty
* Fri Oct 08 1999 - Hwa-Seop, Kum <mungge@alzzalinux.com>
- use hanterm-xf-p17
- imparte patches
* Sun Jun 20 1999 - Byeong-Chan Kim <redhands@linux.sarang.net>
- [3.3.1_p16-4]
- added nosuid patch (is have pty patch)
- [3.3.1_p16-3]
- opsoletes font patch, use X resource file
- update hanterm icon
* Thu Jun 03 1999 - Byeong-Chan Kim <redhands@linux.sarang.net>
- GNOME Desktop support
* Tue Jun 01 1999 - Byeong-Chan Kim <redhands@linux.sarang.net>
- support utmp98
* Mon Feb 22 1999 - Byeong-Chan Kim <redhands@linux.sarang.net>
- updated to p16
* Sun Oct 25 1998 - Byeong-Chan Kim <redhands@linux.sarang.net>
- added hangul, hanja key map
* Thu Aug 06 1998 - Byeong-Chan Kim <redhands@linux.sarang.net>
- rename hanterm-xf86 -> hanterm-xf
- updated to p15
* Mon Jun 15 1998 - Byeong-Chan Kim <redhands@linux.sarang.net>
- change default font to iyagi
* Sat May 30 1998 - Byeong-Chan Kim <redhands@linux.sarang.net>
- spec file updated
* Thu Apr 30 1998 - Byeong-Chan Kim <redhands@linux.sarang.net>
- updated pre 13
- some edited add-defaults file
* Sat Dec 27 1997 - Byeong-Chan Kim <redhands@linux.sarang.net>
- built again glibc
- some edited Hanterm add-defaults file