Marcus Meissner
3790157946
* correct a compiler-warning fix in patch #352 which allowed sign-extension of coordinate values (report by "CismonX"). * correct upper-limit for selection buffer, accounting for combining characters (report/testcase by Tavis Ormandy). (CVE-2021-27135 bsc#1182091) * with alwaysHighlight true, xterm does not properly track focus. The screen->select FOCUS flag remains always on, which prevents bellIsUrgent from working, as the urgent WM_HINT flag is only set in setXUrgency() when the window is not focused. Fix this by updating screen->select in unselectwindow() regardless of the value of always_highlight (patch by Jiri Bohac). * improve fix for interaction between SRM and ENQ (report by Grant Taylor). * build-fix for --with-Xaw3dxft, needed when --with-toolbar is omitted (report by Jimmy Olgeni, Emanuel Haupt). - Updated to Patch #365 - 2021/02/03 * amend fix for “word” selection in patch #364 to limit that to the insert-selectable action, which reads data from the screen. This restores the interactive behavior where double-clicking on a “word” would make subsequent selection extensions by words as well as suppressing some boundary-checks (report by David Wolfskill, FreeBSD #253225). - Updated to Patch #364 - 2021/02/02 * add -fc option. * correct/improve limit-checks for SRM versus ENQ from patch #344 (report by Tom Szilagyi). * enable XftFont resource in Xaw3dxft configuration (patch by Tavis Ormandy). * improve quoting/escaping in build-scripts per shellcheck. * add libpcre2-posix to the packages tested for --with-pcre2 option, needed with Fedora (report by Tomas Korbar). * correct a typo in manual page, and note that KeepClipboard may not be compiled-in (report/patch by Sean C Farley). OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=193
178 lines
5.1 KiB
RPMSpec
178 lines
5.1 KiB
RPMSpec
#
|
|
# spec file for package xterm
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define splitbin 0%{?suse_version} >= 1300
|
|
|
|
Name: xterm
|
|
Version: 366
|
|
Release: 0
|
|
Summary: The basic X terminal program
|
|
License: MIT
|
|
Group: System/X11/Utilities
|
|
URL: https://invisible-island.net/xterm/xterm.html
|
|
Source: https://invisible-mirror.net/archives/xterm/xterm-%{version}.tgz
|
|
Source1: https://invisible-mirror.net/archives/xterm/xterm-%{version}.tgz.asc
|
|
Source2: luitx
|
|
Source3: Backarrow2Delete
|
|
Source4: Backarrow2BackSpace
|
|
Source5: README.SUSE
|
|
Source6: terminal.png
|
|
Source8: 20x20ja.bdf.bz2
|
|
Source9: 20x20ko.bdf.bz2
|
|
Source11: xterm.keyring
|
|
# Snoop for the escape sequence assignment of the keypad
|
|
Source20: snooper.tar.bz2
|
|
Patch1: xterm-suse.patch
|
|
Patch2: xterm-sigwinch.patch
|
|
Patch3: xterm-double_width_fonts.patch
|
|
Patch4: xterm-desktop_file_icon.patch
|
|
Patch5: xterm-forbid_window_and_font_ops.patch
|
|
Patch6: xterm-enable_libtinfo.patch
|
|
Patch7: xterm-allow_iso-utf_fonts_in_menu.patch
|
|
Patch8: xterm-decomposed_bitmaps.patch
|
|
Patch9: xterm-desktop-item-in-gnome-utilities-appfolder.patch
|
|
BuildRequires: groff
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: update-desktop-files
|
|
BuildRequires: pkgconfig(freetype2)
|
|
Provides: XFree86:%{_prefix}/X11R6/bin/xterm
|
|
Provides: xorg-x11:%{_prefix}/X11R6/bin/xterm
|
|
%if %{splitbin}
|
|
Requires: %{name}-bin
|
|
%endif
|
|
%if 0%{?suse_version} > 1220
|
|
BuildRequires: fontpackages-devel
|
|
%endif
|
|
BuildRequires: bdftopcf
|
|
BuildRequires: utempter-devel
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(x11-xcb)
|
|
BuildRequires: pkgconfig(xaw7)
|
|
BuildRequires: pkgconfig(xft)
|
|
Requires: luit
|
|
Recommends: xorg-x11-fonts-legacy
|
|
%if 0%{?suse_version} > 1220
|
|
%reconfigure_fonts_prereq
|
|
%endif
|
|
|
|
%description
|
|
%if %{splitbin}
|
|
This package contains the basic X.Org terminal program desktop launcher.
|
|
|
|
%package bin
|
|
Summary: The basic X terminal program
|
|
Group: System/X11/Utilities
|
|
|
|
%description bin
|
|
%endif
|
|
This package contains the basic X.Org terminal program.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
cp -t . %{SOURCE8} %{SOURCE9}
|
|
bunzip2 %{basename:%{SOURCE8}} %{basename:%{SOURCE9}}
|
|
|
|
%build
|
|
%define xappdefs %{_datadir}/X11/app-defaults
|
|
%define xfontsd %{_datadir}/fonts
|
|
%define xterminfo /usr/lib/X11%{_sysconfdir}
|
|
|
|
%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} \
|
|
--enable-backarrow-is-erase \
|
|
--enable-sixel-graphics \
|
|
|
|
#ensure we do not lose FreeType support (boo#911683)
|
|
grep "#define XRENDERFONT 1" xtermcfg.h
|
|
%make_build
|
|
|
|
if ! which bdftopcf &> /dev/null; then exit 1; fi
|
|
for i in *.bdf
|
|
do
|
|
bdftopcf "$i" | gzip -n -9 >"${i%.bdf}.pcf.gz"
|
|
done
|
|
|
|
%install
|
|
%make_install
|
|
|
|
mkdir -p %{buildroot}%{xterminfo}
|
|
install -m 644 terminfo %{buildroot}%{xterminfo}/xterm.terminfo
|
|
install -m 644 termcap %{buildroot}%{xterminfo}/xterm.termcap
|
|
|
|
install -m 755 $RPM_SOURCE_DIR/luitx %{buildroot}%{_bindir}
|
|
install -m 755 $RPM_SOURCE_DIR/Backarrow2Delete %{buildroot}%{_bindir}
|
|
install -m 755 $RPM_SOURCE_DIR/Backarrow2BackSpace %{buildroot}%{_bindir}
|
|
install -m 644 $RPM_SOURCE_DIR/README.SUSE .
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
install -m 644 $RPM_SOURCE_DIR/terminal.png \
|
|
%{buildroot}%{_datadir}/pixmaps
|
|
|
|
mkdir -p %{buildroot}%{xfontsd}/misc/
|
|
install -m 644 *.pcf.gz %{buildroot}%{xfontsd}/misc/
|
|
%suse_update_desktop_file -i xterm TerminalEmulator
|
|
|
|
%if 0%{?suse_version} > 1220
|
|
%reconfigure_fonts_scriptlets
|
|
%endif
|
|
|
|
%files
|
|
%{_datadir}/applications/xterm.desktop
|
|
%{_datadir}/pixmaps/*
|
|
|
|
%if %{splitbin}
|
|
%files bin
|
|
%endif
|
|
%doc README README.i18n README.SUSE
|
|
%{_bindir}/luitx
|
|
%attr(755,root,root) %{_bindir}/xterm
|
|
%{_bindir}/resize
|
|
%{_bindir}/uxterm
|
|
%{_bindir}/koi8rxterm
|
|
%{_bindir}/Backarrow2Delete
|
|
%{_bindir}/Backarrow2BackSpace
|
|
%{_mandir}/man1/xterm.1.gz
|
|
%{_mandir}/man1/resize.1.gz
|
|
%{_mandir}/man1/koi8rxterm.1.gz
|
|
%{_mandir}/man1/uxterm.1.gz
|
|
%dir %{xterminfo}
|
|
%{xterminfo}/xterm.termcap
|
|
%{xterminfo}/xterm.terminfo
|
|
%dir %{xfontsd}/misc
|
|
%{xfontsd}/misc/20x20ja.pcf.gz
|
|
%{xfontsd}/misc/20x20ko.pcf.gz
|
|
%dir %{xappdefs}
|
|
%{xappdefs}/KOI8RXTerm
|
|
%{xappdefs}/KOI8RXTerm-color
|
|
%{xappdefs}/UXTerm
|
|
%{xappdefs}/UXTerm-color
|
|
%{xappdefs}/XTerm
|
|
%{xappdefs}/XTerm-color
|
|
|
|
%changelog
|