- Patch #290 - 2013/02/12 * revert of patch #282 change was incomplete (report by Jim Reisert). * fix typo in manpage (report by Vincent Lefevre). - Patch #289 - 2013/02/08 * revert the patch #282 change which restored "lost" text after shrinking/growing the screen size. If the screen was updated between the two resizing operations, unexpected text might be shown at the end (report/testcase by Joe Peterson). * reverse the arrow-keys sent for alternateScroll to match the usage in browsers (suggested by Dieter Roelants). * modify mouse reports to consistently indicate motion events whether or not a button is pressed. Old behavior (since patch #127 modified encoding for wheel mouse) showed only that the button was released if no button had been pressed (report by Andy Koppe). * correct and improve behavior for SGR 1006 mouse protocol on button release in any-event mode. Initial implementation in patch #277 left internal state showing the last button pressed when reporting motion events. It now keeps track of all buttons which have been pressed and released, showing the lowest remaining button by number in the response (reports by Hayaki Saito, Andy Koppe). * fix inconsistency between TermColors and OscTextColors enums which interchanged values for tektronix cursor color and highlight foreground in control sequences in patch #225 (report/patch by Peder Stray). * fix inconsistent use of noreturn-attribute in Exit function which interfered with analysis by clang. * remove incorrect free used in computation of XTERM_SHELL variable, from Coverity fixes in patch #288 (FreeBSD #175782). * add --with-valgrind option to configure script for consistency with my other programs. OBS-URL: https://build.opensuse.org/request/show/155738 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=62
204 lines
5.6 KiB
RPMSpec
204 lines
5.6 KiB
RPMSpec
#
|
|
# spec file for package xterm
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: xterm
|
|
%if 0%{?suse_version} > 1220
|
|
BuildRequires: fontpackages-devel
|
|
%endif
|
|
BuildRequires: freetype2-devel
|
|
%if 0%{?suse_version} > 1220
|
|
BuildRequires: gpg-offline
|
|
%endif
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: update-desktop-files
|
|
%if 0%{?suse_version} > 1130
|
|
BuildRequires: utempter-devel
|
|
%else
|
|
BuildRequires: utempter
|
|
%endif
|
|
%if 0%{?suse_version} >= 1000
|
|
BuildRequires: xorg-x11
|
|
BuildRequires: xorg-x11-devel
|
|
%if 0%{?suse_version} > 1210
|
|
# post xorg libs split
|
|
BuildRequires: libXaw-devel
|
|
%endif
|
|
%else
|
|
BuildRequires: XFree86-devel
|
|
BuildRequires: XFree86-libs
|
|
BuildRequires: xaw3d
|
|
%endif
|
|
Url: http://invisible-island.net/xterm/
|
|
Provides: XFree86:/usr/X11R6/bin/xterm
|
|
Provides: xorg-x11:/usr/X11R6/bin/xterm
|
|
# post xorg apps split
|
|
%if 0%{?suse_version} > 1210
|
|
Requires: luit
|
|
%endif
|
|
Version: 290
|
|
Release: 0
|
|
Summary: The basic X terminal program
|
|
License: MIT
|
|
Group: System/X11/Utilities
|
|
Source: ftp://invisible-island.net/xterm/%name-%version.tgz
|
|
Source2: ftp://invisible-island.net/xterm/%name-%version.tgz.asc
|
|
Source1: luitx
|
|
Source3: Backarrow2Delete
|
|
Source4: Backarrow2BackSpace
|
|
Source5: README.SuSE
|
|
Source6: terminal.png
|
|
%define vttest_version 20120506
|
|
Source7: ftp://invisible-island.net/vttest/vttest-%vttest_version.tgz
|
|
Source10: ftp://invisible-island.net/vttest/vttest-%vttest_version.tgz.asc
|
|
Source11: %name.keyring
|
|
Source8: 20x20ja.bdf.bz2
|
|
Source9: 20x20ko.bdf.bz2
|
|
# Snoop for the escape sequence assignment of the keypad
|
|
Source20: snooper.tar.bz2
|
|
Patch1: p_xterm-settings.diff
|
|
Patch2: p_xterm-sigwinch.diff
|
|
Patch3: bug-246573-tentative-patch.diff
|
|
Patch4: desktop.diff
|
|
Patch5: xterm-disallow-window-and-fonts-ops.patch
|
|
Patch6: libtinfo.diff
|
|
Patch293793: bugzilla-293793-do-not-insist-on-iso8859-fonts-for-the-menu.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%if 0%{?suse_version} > 1220
|
|
%reconfigure_fonts_prereq
|
|
%endif
|
|
|
|
%description
|
|
This package contains the basic X.Org terminal program.
|
|
|
|
%prep
|
|
%if 0%{?suse_version} > 1220
|
|
%gpg_verify %{S:2} %{S:10}
|
|
%endif
|
|
%setup -q -b7
|
|
%patch1 -p1 -b .xterm-settings
|
|
%patch2 -p0 -b .xterm-sigwinch
|
|
%patch3 -p1
|
|
%patch4 -p0
|
|
%patch5 -p0
|
|
%patch6 -p0
|
|
%patch293793 -p1
|
|
cp $RPM_SOURCE_DIR/*bdf.bz2 .
|
|
bunzip2 *.bdf.bz2
|
|
|
|
%build
|
|
# suse 10.x uses older X11 directory structure
|
|
%if 0%{?suse_version} < 1100
|
|
%define xappdefs /usr/X11R6/lib/X11/app-defaults
|
|
%define xfontsd /usr/X11R6/lib/X11/fonts
|
|
%define xterminfo /usr/X11R6/lib/X11/etc
|
|
%else
|
|
%define xappdefs /usr/share/X11/app-defaults
|
|
%define xfontsd /usr/share/fonts
|
|
%define xterminfo /usr/lib/X11/etc
|
|
%endif
|
|
|
|
%configure \
|
|
--enable-256-color \
|
|
--enable-dec-locator \
|
|
--enable-hp-fkeys \
|
|
--enable-luit \
|
|
--enable-mini-luit \
|
|
--enable-sco-fkeys \
|
|
--enable-wide-chars \
|
|
--with-utempter \
|
|
--with-tty-group=tty \
|
|
--with-app-defaults=%{xappdefs} \
|
|
%if 0%{?suse_version} < 1000
|
|
--x-includes=/usr/X11R6/include \
|
|
--x-libraries=/usr/X11R6/%{_lib} \
|
|
%endif
|
|
--enable-backarrow-is-erase \
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
pushd "../vttest-%vttest_version"
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
popd
|
|
|
|
if [ ! which bdftopcf ] ; then exit 1; fi
|
|
for i in *.bdf
|
|
do
|
|
bdftopcf "$i" | gzip -9 >"${i%.bdf}.pcf.gz"
|
|
done
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{xterminfo}
|
|
install -m 644 terminfo $RPM_BUILD_ROOT%{xterminfo}/xterm.terminfo
|
|
install -m 644 termcap $RPM_BUILD_ROOT%{xterminfo}/xterm.termcap
|
|
|
|
pushd "../vttest-%vttest_version"
|
|
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
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{xfontsd}/misc/
|
|
install -m 644 *.pcf.gz $RPM_BUILD_ROOT%{xfontsd}/misc/
|
|
%suse_update_desktop_file -i xterm TerminalEmulator
|
|
|
|
%if 0%{?suse_version} > 1220
|
|
%reconfigure_fonts_scriptlets
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README README.i18n README.SuSE
|
|
/usr/bin/vttest
|
|
/usr/bin/luitx
|
|
%attr(755,root,root) /usr/bin/xterm
|
|
/usr/bin/resize
|
|
/usr/bin/uxterm
|
|
/usr/bin/koi8rxterm
|
|
/usr/bin/Backarrow2Delete
|
|
/usr/bin/Backarrow2BackSpace
|
|
/usr/share/man/man1/xterm.1.gz
|
|
/usr/share/man/man1/resize.1.gz
|
|
%{_mandir}/man1/vttest.1.gz
|
|
%{_mandir}/man1/koi8rxterm.1.gz
|
|
%{_mandir}/man1/uxterm.1.gz
|
|
/usr/share/applications/xterm.desktop
|
|
/usr/share/pixmaps/*
|
|
%dir %{xterminfo}
|
|
%{xterminfo}/xterm.termcap
|
|
%{xterminfo}/xterm.terminfo
|
|
%dir %{xfontsd}/misc
|
|
%{xfontsd}/misc/20x20ja.pcf.gz
|
|
%{xfontsd}/misc/20x20ko.pcf.gz
|
|
%{xappdefs}/KOI8RXTerm
|
|
%{xappdefs}/KOI8RXTerm-color
|
|
%{xappdefs}/UXTerm
|
|
%{xappdefs}/UXTerm-color
|
|
%{xappdefs}/XTerm
|
|
%{xappdefs}/XTerm-color
|
|
|
|
%changelog
|