xterm/xterm.spec

538 lines
19 KiB
RPMSpec

#
# spec file for package xterm (Version 223)
#
# Copyright (c) 2006 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: xterm
BuildRequires: freetype2-devel update-desktop-files utempter xorg-x11-devel
URL: http://invisible-island.net/xterm/
License: X11/MIT
Group: System/X11/Utilities
Provides: xorg-x11:/usr/X11R6/bin/xterm XFree86:/usr/X11R6/bin/xterm
Autoreqprov: on
Version: 223
Release: 1
Summary: The basic X terminal program
Source: %name.tar.gz
Source1: luitx
Source2: TODO
Source3: Backarrow2Delete
Source4: Backarrow2BackSpace
Source5: README.SuSE
Source6: terminal.png
Source7: vttest.tar.gz
Source8: 20x20ja.bdf.bz2
Source9: 20x20ko.bdf.bz2
Patch: p_xterm-config.diff
Patch1: p_xterm-settings.diff
Patch2: p_xterm-sigwinch.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains the basic X.Org terminal program.
Authors:
--------
Thomas E Dickey
Adam Sulmicki
Alan Hourihane
Alexander Pohoyda
Alexander V Lukyanov
Andrew Sumner
Andrew Tipton
Anton Kovalenko
Ben Yoshino
Bernhard Rosenkraenzer
Bill Nottingham
Bob Maynard
Bradd W. Szonye
Bram Moolenaar
Bruno Haible
Christian Biere
Christian Weisgerber
Chuck Blake
D Roland Walker
David Dawes
David Madore
David Martinez Moreno
David Mathog
David Yeo
Dennis Schneider
Derek Foreman
Dr Werner Fink
Eddy De Greef
Egbert Eich
Emanuele Giaquinta
Eugene Konev
Fabrice Bellard
Frank Giessler
Frank Guangxin Liu
Frank Liu
Gael Roualland
George Peter Staplin
Greg Klanderman
Greg Smith
H Merijn Brand
Harold Hunt
Holger Veit
Ilya Zakharevich
Jason Vas Dias
Jeff Uphoff
Jens Schweikhardt
Jeremy Buhler
Jeroen Ruigrok
Jess Thrysoee
Joe Allen
Juergen Keil
Juliusz Chroboczek
Jungshik Shin
Kean Johnston
Keith Packard
Ken Martin
Kevin Buhr
Kiyokazu Suto
Larry Riedel
Lee Olsen
Marc La France
Mark Waggoner
Markus Kuhn
Matthias Scheler
Matthieu Herrb
Michael Rohleder
Michael Schroeder
Mike Fabian
Mike Hopkirk
Min Sik Kim
Nam SungHyun
Nelson Beebe
Nicolas George
Paul Gilmartin
Paul Giordano
Paul Szabo
Paul Vojta
Paul Williams
Pavel Roskin
Peter Berg Larsen
Peter Chubb
Phil Sidler
Ray Neuman
Richard Griswold
Robert Brady
Robert Earl
Robin Cutshaw
Ross Paterson
Sam Stephenson
Scott Sewall
Semen A Ustimenko
Sergei Laskavy
Steve Wall
Stuart Lissaman
Suhaib Siddiqi
Sven Verdoolaege
Taneli Huuskonen
Tim Adye
Todd Larason
Todd Miller
Tomasz Cholewo
Tomohiro Kubota
Tor Lillqvist
Torrey T. Lyons
Yong Li
Zarick Lau
%prep
%setup -n xterm-%version -b7
%patch -p2 -b .xterm-config
%patch1 -p0 -b .xterm-settings
%patch2 -p0 -b .xterm-sigwinch
cp $RPM_SOURCE_DIR/*bdf.bz2 .
bunzip2 *.bdf.bz2
%build
xmkmf -a
make CCOPTIONS="$RPM_OPT_FLAGS -fno-strict-aliasing"
pushd ../vttest-20050107
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
./configure --prefix=/usr --mandir=%{_mandir}
make
popd
for i in *.bdf
do
/usr/bin/bdftopcf $i | gzip -9 > `basename $i .bdf`.pcf.gz
done
%install
make install DESTDIR=$RPM_BUILD_ROOT BINDIR=/usr/bin
make install.man DESTDIR=$RPM_BUILD_ROOT MANDIR=%_mandir/man1
pushd ../vttest-20050107
make install DESTDIR=$RPM_BUILD_ROOT
popd
install -m 755 $RPM_SOURCE_DIR/luitx $RPM_BUILD_ROOT/usr/bin
install -m 755 $RPM_SOURCE_DIR/Backarrow2Delete $RPM_BUILD_ROOT/usr/bin
install -m 755 $RPM_SOURCE_DIR/Backarrow2BackSpace $RPM_BUILD_ROOT/usr/bin
install -m 644 $RPM_SOURCE_DIR/README.SuSE .
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
install -m 644 $RPM_SOURCE_DIR/terminal.png \
$RPM_BUILD_ROOT/usr/share/pixmaps
if [ -d /usr/X11R6/lib/X11/fonts/misc ]; then
mkdir -p $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc
install -m 644 *.pcf.gz $RPM_BUILD_ROOT/usr/X11R6/lib/X11/fonts/misc
else
mkdir -p $RPM_BUILD_ROOT/usr/share/fonts/misc/
install -m 644 *.pcf.gz $RPM_BUILD_ROOT/usr/share/fonts/misc/
fi
%suse_update_desktop_file -i xterm TerminalEmulator
if [ -d $RPM_BUILD_ROOT/usr/lib/X11/etc ]; then
cat > files.xterm << EOF
%dir /usr/lib/X11/etc
%dir /usr/share/fonts/misc/
/usr/lib/X11/etc/xterm.termcap
/usr/lib/X11/etc/xterm.terminfo
/usr/share/X11/app-defaults/XTerm
/usr/share/X11/app-defaults/UXTerm
/usr/share/X11/app-defaults/XTerm-color
/usr/share/fonts/misc/20x20ja.pcf.gz
/usr/share/fonts/misc/20x20ko.pcf.gz
EOF
else
cat > files.xterm << EOF
%dir /usr/X11R6/lib/X11/etc
/usr/X11R6/lib/X11/app-defaults/UXTerm
/usr/X11R6/lib/X11/app-defaults/XTerm
/usr/X11R6/lib/X11/app-defaults/XTerm-color
/usr/X11R6/lib/X11/etc/xterm.termcap
/usr/X11R6/lib/X11/etc/xterm.terminfo
/usr/X11R6/lib/X11/fonts/misc/20x20ja.pcf.gz
/usr/X11R6/lib/X11/fonts/misc/20x20ko.pcf.gz
EOF
fi
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%clean
rm -rf $RPM_BUILD_ROOT
%files -f files.xterm
%defattr(-,root,root)
%doc README README.i18n README.SuSE
/usr/bin/xterm
/usr/bin/vttest
/usr/bin/luitx
%attr(755,root,root) /usr/bin/xterm
/usr/bin/resize
/usr/bin/uxterm
/usr/bin/Backarrow2Delete
/usr/bin/Backarrow2BackSpace
/usr/share/man/man1/xterm.1x.gz
/usr/share/man/man1/resize.1x.gz
%{_mandir}/man1/vttest.1.gz
/usr/share/applications/xterm.desktop
/usr/share/pixmaps/terminal.png
%changelog -n xterm
* Fri Dec 01 2006 - sndirsch@suse.de
- updated to xterm-223 (2006/11/30)
* add --enable-rectangles configure option (request by Martin
Pirker).
* correct default value for --with-symlink configure option.
* fixes configure script macros that use $X_EXTRA_LIBS.
* modify configure script to provide support for pre-package config
versions of Xft (FreeType).
* add the Xaw scrollbar translations resource to the xterm manpage,
add an example showing how to change the mouse button assignments
(Debian #382225).
* amend a change from [227]patch #216, which omitted modifiers for
control, meta, etc., if they were mixed with any other modifiers.
The intent of the change was to avoid confusion with
XK_Mode_switch and XK_ISO_Level3_Shift; the check is now done
explicitly (report by Daniel Jacobowitz).
* interpret a negative value for modifyCursorKeys or
modifyFunctionKeys resources to disable the respective features
(prompted by Novell #220728).
* amend cell-width computation for FreeType from [228]patch #217,
which did not work for VT100 line-drawing characters (Debian
[#399638], GenToo #147111).
* amend a change from [229]patch #216, which made alt-modifier on a
cursor-key send a modifier parameter (Novell #220728).
* correct an off-by-one that made DECCRA not work (report/patch by
Martin Pirker).
* revert an optimization in SGR_Foreground() and SGR_Background from
[230]patch #209 (Debian #347722, analysis by Pierre Lombard).
* fix for boldMode (Debian #347790, patch by Tim Pope).
* amend fix for -iconic in [231]patch #208, which broke the
positioning part of -geom with toolbar configuration.
* fix to prevent indexing error in regular expressions (patch by
Dennis Schneider).
* fixes to make the internalBorder area not change color due to
reverseVideo and/or related exposure events. The latter was a very
old bug exposed in [232]patch #196 (report by Neil Hoggarth, also
Debian #397624).
- obsoletes bug220728.diff
* Tue Nov 28 2006 - sndirsch@suse.de
- bug220728.diff:
* Essentially the problem reported is that xterm #216 does a more
complete job of applying modifier parameters to cursor-,
function- and other keys. Some users would like to disable the
feature. Patch to allow modifyCursorKeys to be disabled.
Currently the resource accepts values 0 to 3. This adds a -1 to
disable the feature. Most users won't want to do this.
(Bug #220728)
* Wed Oct 18 2006 - sndirsch@suse.de
- updated to xterm-222
* minor optimization for recoloring cursor via dynamic colors.
* fix a bug caused by restructuring of tek4014 widget
(report by Paul Schenkeveld)
* Mon Oct 09 2006 - sndirsch@suse.de
- updated to xterm-221
* fix for regular expressions: the code which converted the column
offset within a line did not check properly for the end of a line,
and if allowed to match the whole line, would select the beginning
of the following line. If the following line were empty, in turn
it would select from the next, etc. (report by Sean
Reifschneider).
* minor optimization of color allocation to avoid repainting the
screen if the corresponding color had not been allocated.
* fixes for vttests/256colors.pl (report by Egmont Koblinger).
* add terminfo building block entries for modifiers of the 6-key
editing keypad.
* fix for initialization of tek4014 which broke on QNX 6.1
* Mon Sep 11 2006 - sndirsch@suse.de
- fixed luit/luitx path (Bug #204861)
* Mon Sep 11 2006 - sndirsch@suse.de
- updated to xterm-220
* make "xterm -t -iconic" work as expected, i.e., start in
tek4014 mode, but iconified.
* Tue Sep 05 2006 - sndirsch@suse.de
- updated to xterm-219
* some internal restructuring to separate data for vt100 and tek4014
widgets.
* fix a few cases where form-events would be seen by the vt100
widget when built with the toolbar configuration.
* Tue Aug 29 2006 - sndirsch@suse.de
- updated to xterm-218
* change behavior when encountering an illegal character in a
title string. Rather than reject the string, translate
illegal characters into "?" and use the string (requested by
Thomas Wolff).
* improve checks for nonprinting characters in title strings
(report by Samuel Thibault).
* correct typo in menu labels, changing print-redirect to
print-redir, making it follow the manpage and match the
usage for the actions table (report by Samuel Thibault).
* correct a typo that prevents building with some older systems
such as Solaris 2.6 (report by Julian Bridle).
* Tue Aug 22 2006 - sndirsch@suse.de
- updated to xterm-217
* minor improvements to FreeType font layout and drawing.
* add a check in the ptyInitialErase logic to ensure that
the termcap was read (Redhat Bugzilla #201246).
* limit changes for reverse-video from patch #216 to cases
where the reverse-video command-line option is used (report
by Zdenek Sekera).
* correct bitmap-derived pointsizes for TrueType fonts; they
should be proportional to the square root of the area of
the bitmap fonts.
* add resources to specify pointsize of TrueType fonts (request
by Reuben Thomas).
* improve install of terminfo by filtering out harmless
messages related to extended capabilities. At the same time,
use ncurses tic to compile the extended capabilities if
possible (report by Zdenek Sekera).
* update "xterm+pcfkeys" terminfo entry to correspond to patch
[#216].
* Wed Aug 16 2006 - aj@suse.de
- Remove unneeded BuildRequire on xorg-x11.
* Wed Aug 09 2006 - sndirsch@suse.de
- fixed /usr/share/fonts directory conflict with filesystem
* Fri Aug 04 2006 - sndirsch@suse.de
- updated to xterm-216
* improve handling of ConfigureNotify events by checking if there are
further events in the queue which obsolete the current one (adapted
from rxvt 2.7.5). Only the normal normal (non-toolbar)
configuration is addressed in this patch.
* several changes to terminfo:
+ incorporate some minor changes from ncurses to help keep these
synchronized:
2005-02-26
modify sgr/sgr0 in xterm-new to improve tgetent's
derived "me".
2006-02-18
remove ncv flag from xterm-16color
2006-06-24
improve xterm-256color by combining the 16-color
setaf/setab strings with SGR 48, and cancelling the
setf/setb strings.
+ use extended function-key definitions for xterm-sun, xterm-sco
entries.
+ add terminfo building-blocks corresponding to the
modifyFunctionKeys and modifyCursorKeys resources.
* ifdef'd Sun function-key feature to make it optional, like HP and
SCO.
* extend table for termcap-query feature through F63, and updated
tcapquery.pl to match.
* modify logic for function-key input processing to allow function
key numbers which are constructed by control- and shift-modifiers
to extend beyond X's hardcoded limit of 35.
* add control sequence to set or reset the eightBitInput resource.
* change default resource modifyFunctionKeys to 2 to avoid sending
SS3 with parameters (report by Kalle Olavi Niemitalo).
* add control sequences for setting and resetting the values of the
modifyCursorKeys, modifyFunctionKeys and modifyOtherKeys resources.
* add modifyFunctionKeys resource like modifyCursorKeys. Setting this
to zero allows one to use the control- and shift-modifiers to
construct function key strings, for terminals using many function
keys, e.g., for xterm-sun or xterm-sco.
* modify screen responses and function-key logic to reduce the number
of writes made, to make it less likely that an application would
read only part of a function-key in a read operation (suggested by
John E Urbanczyk).
* add combiningChars resource, which allows the user to specify the
maximum number of combining characters that xterm will store for
each cell in wide-character mode (prompted by request by Markus
Kuhn to increase the limit from 2).
* improve logic in metaSendsEscape in case the Alt- and Meta-keys are
mapped to different modifiers. That allows one to use the Alt-key
for shifting in the eightBitInput and use a Meta-key modifier to
prefix the result with an <ESC>.
* improve modifyCursorKeys logic to prevent it from modifying codes
where eightBitInput or metaSendsEscape are set (request by Dan
Nicolaescu).
* improve modifyCursorKeys logic to prevent it from changing the user
input when other modifiers such as AltGr are used (report by Thomas
Wolff).
* extend modifyCursorKeys to include the numeric keypad when in
application mode.
* improve -reverse (-rv) option (patch by Jason Vas Dias, Redhat
[#189161]).
* workaround for color resources on Fedora-5 which made the toolbar
colors inconsistent.
* corrected calls used for --disable-setuid option, add debugging
traces to help diagnose this area.
* modify configure script to ensure that USE_UTMP_SETGID is defined
only if the check for POSIX saved-ids succeeds, or corresponds to
one of the BSD systems known to have a workable setegid function.
* extend configure check for POSIX saved-ids to include BSD systems
* modify CF_SYSV configure macro to work with gcc on HPUX 10.20,
whose broken <term.h> relies on including <termios.h>.
* change order of setuid/setgid ifdef checks in Imakefile to make it
simpler to produce a setgid install, allowing the latter to
override the former (prompted by an XFree86 commit).
* adapt a fix for setgid support from subsequent XFree86 changes
(patch by Emanuele Giaquinta).
* further improve setgid support (patches by Emanuele Giaquinta).
* Fri Jul 28 2006 - sndirsch@suse.de
- use "-fno-strict-aliasing"
* Mon Jul 24 2006 - sndirsch@suse.de
- fixed build for X.Org 7
* Tue Jun 20 2006 - sndirsch@suse.de
- updated to xterm-215
* various fixes
* Mon Jun 19 2006 - sndirsch@suse.de
- updated to xterm-214
* various fixes
* Mon May 01 2006 - sndirsch@suse.de
- updated to xterm-213
* obsoletes utf8-title-resource.patch
* Sat Apr 15 2006 - sndirsch@suse.de
- updated to xterm-212
* obsoletes p_xterm_dotext-loop.diff
- using new utf8Title resource (Bug #52655)
* Mon Feb 13 2006 - werner@suse.de
- Avouid possible endless loop fix in dotext() at wrapping wide
characters
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 04 2006 - sndirsch@suse.de
- updated to xterm-208
* Tue Nov 15 2005 - sndirsch@suse.de
- updated to xterm-207
- adjusted patches
* Thu Oct 06 2005 - mfabian@suse.de
- Bugzilla #49305: add 20x20{ja,ko} fonts generated from
18x18{ja,ko} with the script "bdf18to20" from the mined package.
This is a workaround to make the popular 10x20 font work with
CJK until xterm is improved to become able to pad fonts
on the fly.
* Mon Sep 19 2005 - sndirsch@suse.de
- updated to xterm-205
[...]
* modify computation of rows/columns on resize to avoid extending
beyond the given limits, e.g., if resizing in response to a
"maximize" in Gnome or KDE which do not use the window manager
hints for this case (Debian #289123, Novell #61153).
* fixes for Novell #113277:
- specify weight for wide font which may be derived from normal
fontname.
- cache the derived wide- and widebolt-fontnames.
- obsoletes bugzilla-99564.patch
* Sat Aug 27 2005 - sndirsch@suse.de
- added vttest; useful for testing terminals
* Fri Aug 26 2005 - sndirsch@suse.de
- back to xterm-203 + bugzilla-99564.patch (Bug #113277)
* Sun Aug 07 2005 - sndirsch@suse.de
- updated to xterm-204
[...]
* correct variable used to store temporary result from lookup of
bold font, when initializing the wide-bold-font data and no
immediate match is found by asking for a bold variant of the
wide-font. The result was to use overstriking rather than the
actual bold font (Debian #318162, patch by Eugene Konev).
--> obsoletes mfabian's patch mentioned below
* Mon Aug 01 2005 - mfabian@suse.de
- Bugzilla #99564: fix the problem that bold fonts were not
used unless the resource boldMode was set to "false".
* Wed Jul 27 2005 - werner@suse.de
- Re-enable SIGWINCH for linux even if struct winsize is used, due
to the fact that sometime a sleeping process in the process group
do not get the appropiate information by the ioctl TIOCSWINSZ.
* Wed Jul 13 2005 - sndirsch@suse.de
- updated to xterm-203
* Fri May 13 2005 - sndirsch@suse.de
- use norootforbuild
* Thu May 12 2005 - meissner@suse.de
- use RPM_OPT_FLAGS
* Tue May 03 2005 - sndirsch@suse.de
- updated to xterm-202
* Fri Apr 22 2005 - sndirsch@suse.de
- updated to xterm-201
- adjusted p_xterm-settings.diff
* Thu Mar 24 2005 - sndirsch@suse.de
- added missing xterm/resize manual pages (Bug #74467)
* Sun Feb 06 2005 - sndirsch@suse.de
- updated to xterm-200
* Fri Jan 28 2005 - sndirsch@suse.de
- updated to xterm-199
* Fri Jan 14 2005 - sndirsch@suse.de
- updated to xterm-198
* Thu Dec 02 2004 - sndirsch@suse.de
- p_xterm-config.diff:
* HAVE_LANGINFO_CODESET needs to be set in xtermcfg.h
* Wed Dec 01 2004 - sndirsch@suse.de
- updated to xterm-197:
* obsoletes p_xterm_iutf8.diff, p_xterm_noluit.diff
* adjusted p_xterm-config.diff: OPT_LUIT_PROG/OPT_MINI_LUIT needs
to be set in xtermcfg.h
* updated TODO
* Tue Nov 16 2004 - sndirsch@suse.de
- added missing xterm icon file (terminal.png, converted from
xterm_32x32.xpm included by icewm)
* Tue Oct 26 2004 - sndirsch@suse.de
- added Backarrow2Backspace, Backarrow2Delete, README.SuSE
* Sun Oct 24 2004 - sndirsch@suse.de
- added TODO
* Sat Oct 23 2004 - sndirsch@suse.de
- created package