xterm/xterm.spec

211 lines
5.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package xterm
#
Accepting request 214549 from home:pcerny:factory - Patch #301 - 2014/01/19 * OSC 104 and 105 did not accept parameter to reset a specific color (patch by Egmont Koblinger). * add configure check for initgroups, and use that function to complement its use of setgid (prompted by patch by Miroslav Lichvar). * improve manpage description of scrollbar translations versus the vt100 translations (Debian #723573). * add a few paragraphs to manpage explaining the implications of xterm's reliance on X Toolkit for command-line parsing. * modify cursor-theme logic to check if the environment variable XCURSOR_THEME is set to a nonempty value before constructing a dummy them (prompted by similar check added in OpenBSD CVS). * add check for a case where TrueType bold font is missing a glyph where the non-bold font has it. Temporarily switch to the non-bold font to draw the glyph (report by David Demelier). * minor documentation fixes for ctlseqs.ms * only set SHELL environment variable to programs found in /etc/shells (prompted by patch/report by Al Poole). * build-fix, when --disable-wide-chars --disable-boxchar is used (prompted by patch by Andrey Panov). - Patch #300 - 2013/12/03 * amend workaround for Xcursor library from patch #298; the suggested solution for Debian #466704 fell afoul of a bug in Xcursor which treated an empty value for Inherits= as a valid theme—and resulted in a stack overflow due to unbounded recursion. Certain environments such as XFCE4 exposed the OBS-URL: https://build.opensuse.org/request/show/214549 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=88
2014-01-21 11:02:04 +01:00
# Copyright (c) 2014 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
Accepting request 149920 from home:pcerny:factory - Patch #288 - 2013/01/09 * fix a special case in ShowCursor where the foreground and background colors of the current position are the same. In that case, choose the further of the window's foreground and background colors for the cursor color. * modify alternateScroll feature added in patch #282 to use either CSI or SS3 according to the cursor keys application mode setting, to simplify using it in vi, etc. (suggested by Dietar Roelants). * revise manpage for resize to clarify the changes which resize may make to the terminal settings as well as to the terminal itself. * remove code such as struct ttysize, used for SunOS 3 and 4. * modify configure script and makefile to check for groff and suppress groff-specific rules if groff is not found. * modify ctlseqs.ms and makefile to work around bugs in grohtml which cause ".png" files to be truncated when producing html documentation. * modify suffix rules for "make docs" to make the names of the generated ".png" files predictable, helping to work around longstanding problems with this feature of groff-none of its releases work for all of xterm's tables.. * correct typo in ctlseqs.ms for DECIC and DECDC; the character preceding the final "~" is an ASCII single-quote "'" rather than a space (report by Paul LeoNerd Evans). * update CF_GCC_VERSION macro, handling both Debian and Darwin. * improve configure script checks for the --with-desktop-category option. After patch #280 changes, if no value was given for this option, and no existing desktop files found for comparison, the incorrect "auto" value was OBS-URL: https://build.opensuse.org/request/show/149920 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=60
2013-01-25 16:10:08 +01:00
%if 0%{?suse_version} > 1220
BuildRequires: gpg-offline
Accepting request 149920 from home:pcerny:factory - Patch #288 - 2013/01/09 * fix a special case in ShowCursor where the foreground and background colors of the current position are the same. In that case, choose the further of the window's foreground and background colors for the cursor color. * modify alternateScroll feature added in patch #282 to use either CSI or SS3 according to the cursor keys application mode setting, to simplify using it in vi, etc. (suggested by Dietar Roelants). * revise manpage for resize to clarify the changes which resize may make to the terminal settings as well as to the terminal itself. * remove code such as struct ttysize, used for SunOS 3 and 4. * modify configure script and makefile to check for groff and suppress groff-specific rules if groff is not found. * modify ctlseqs.ms and makefile to work around bugs in grohtml which cause ".png" files to be truncated when producing html documentation. * modify suffix rules for "make docs" to make the names of the generated ".png" files predictable, helping to work around longstanding problems with this feature of groff-none of its releases work for all of xterm's tables.. * correct typo in ctlseqs.ms for DECIC and DECDC; the character preceding the final "~" is an ASCII single-quote "'" rather than a space (report by Paul LeoNerd Evans). * update CF_GCC_VERSION macro, handling both Debian and Darwin. * improve configure script checks for the --with-desktop-category option. After patch #280 changes, if no value was given for this option, and no existing desktop files found for comparison, the incorrect "auto" value was OBS-URL: https://build.opensuse.org/request/show/149920 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=60
2013-01-25 16:10:08 +01:00
%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
# separate package now
BuildRequires: bdftopcf
%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
Accepting request 232778 from home:pcerny:factory - Patch #304 - 2014/05/03 * add debugging check for parsing table entries, fixed a few inconsistencies. * handle utmp/utmpx strings consistently with new function that null-pads unused locations. * build-fix for imake configuration with FreeBSD 9 and later, to account for replacing utmp with utmpx. * improve handling of the fontsel (font-selection) menu item: + initialize the menu entry differently if the toolbar configuration is used, i.e., enabling it without attempting to use the current selection as a font name. Because of the way in which the toolbar is setup, this attempt usually failed, and would result in a warning. + if the menu action fails, e.g., no font can be loaded for the given selected name, then recover by resuming with the current font. Before, the recovery went to the default font. That was done to work around missing bitmap font in patch #276. * document OSC 119 in the control sequences listing (report by Egmont Koblinger). * modify special handling of XF86Paste or SunPaste keysyms (see patch #227) to use the standard shift/lock modifiers in case those are, for example, used in level 3 in an XKB file (patch by Matthieu Herrb). * configure macro updates: + drop the -no-gcc option from CF_INTEL_COMPILER + modify CF_XOPEN_SOURCE to suppress the check for defining _XOPEN_SOURCE on Solaris * reduce bss storage used for ReGIS/Sixel modules, as well as cleanup storage usage in other modules. OBS-URL: https://build.opensuse.org/request/show/232778 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=92
2014-05-06 00:05:44 +02:00
Version: 304
Release: 0
Summary: The basic X terminal program
License: MIT
Group: System/X11/Utilities
Source: ftp://invisible-island.net/xterm/%{name}-%{version}.tgz
Source1: ftp://invisible-island.net/xterm/%{name}-%{version}.tgz.asc
Source2: luitx
Source3: Backarrow2Delete
Source4: Backarrow2BackSpace
Source5: README.SuSE
Source6: terminal.png
Source11: xterm.keyring
Source8: 20x20ja.bdf.bz2
Source9: 20x20ko.bdf.bz2
# Snoop for the escape sequence assignment of the keypad
Source20: snooper.tar.bz2
%define vttest_version 20120506
Source100: ftp://invisible-island.net/vttest/vttest-%{vttest_version}.tgz
Source101: ftp://invisible-island.net/vttest/vttest-%{vttest_version}.tgz.asc
Patch1: xterm-settings.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
Patch101: vttest-config_update_aarch64.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
Accepting request 149920 from home:pcerny:factory - Patch #288 - 2013/01/09 * fix a special case in ShowCursor where the foreground and background colors of the current position are the same. In that case, choose the further of the window's foreground and background colors for the cursor color. * modify alternateScroll feature added in patch #282 to use either CSI or SS3 according to the cursor keys application mode setting, to simplify using it in vi, etc. (suggested by Dietar Roelants). * revise manpage for resize to clarify the changes which resize may make to the terminal settings as well as to the terminal itself. * remove code such as struct ttysize, used for SunOS 3 and 4. * modify configure script and makefile to check for groff and suppress groff-specific rules if groff is not found. * modify ctlseqs.ms and makefile to work around bugs in grohtml which cause ".png" files to be truncated when producing html documentation. * modify suffix rules for "make docs" to make the names of the generated ".png" files predictable, helping to work around longstanding problems with this feature of groff-none of its releases work for all of xterm's tables.. * correct typo in ctlseqs.ms for DECIC and DECDC; the character preceding the final "~" is an ASCII single-quote "'" rather than a space (report by Paul LeoNerd Evans). * update CF_GCC_VERSION macro, handling both Debian and Darwin. * improve configure script checks for the --with-desktop-category option. After patch #280 changes, if no value was given for this option, and no existing desktop files found for comparison, the incorrect "auto" value was OBS-URL: https://build.opensuse.org/request/show/149920 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=60
2013-01-25 16:10:08 +01:00
%if 0%{?suse_version} > 1220
%gpg_verify %{S:1}
%gpg_verify %{S:101}
Accepting request 149920 from home:pcerny:factory - Patch #288 - 2013/01/09 * fix a special case in ShowCursor where the foreground and background colors of the current position are the same. In that case, choose the further of the window's foreground and background colors for the cursor color. * modify alternateScroll feature added in patch #282 to use either CSI or SS3 according to the cursor keys application mode setting, to simplify using it in vi, etc. (suggested by Dietar Roelants). * revise manpage for resize to clarify the changes which resize may make to the terminal settings as well as to the terminal itself. * remove code such as struct ttysize, used for SunOS 3 and 4. * modify configure script and makefile to check for groff and suppress groff-specific rules if groff is not found. * modify ctlseqs.ms and makefile to work around bugs in grohtml which cause ".png" files to be truncated when producing html documentation. * modify suffix rules for "make docs" to make the names of the generated ".png" files predictable, helping to work around longstanding problems with this feature of groff-none of its releases work for all of xterm's tables.. * correct typo in ctlseqs.ms for DECIC and DECDC; the character preceding the final "~" is an ASCII single-quote "'" rather than a space (report by Paul LeoNerd Evans). * update CF_GCC_VERSION macro, handling both Debian and Darwin. * improve configure script checks for the --with-desktop-category option. After patch #280 changes, if no value was given for this option, and no existing desktop files found for comparison, the incorrect "auto" value was OBS-URL: https://build.opensuse.org/request/show/149920 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=60
2013-01-25 16:10:08 +01:00
%endif
%setup -q -b100
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
cp -t . %{S:8} %{S:9}
bunzip2 %{basename:%{S:8}} %{basename:%{S:9}}
cd ../vttest-%{vttest_version}
%patch101 -p1
%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 \
--enable-sixel-graphics
make %{?_smp_mflags}
pushd "../vttest-%{vttest_version}"
%configure
make %{?_smp_mflags}
popd
if ! which bdftopcf &> /dev/null; 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