Marcus Meissner
7fa80cc56a
- Patch #273 - 2011/08/25 * build-fix for out-of-tree "make docs" rule. * correct a typo in x_strdup, from patch #198 changes. * correct initialization for -e option, broken in patch #272 changes (report by Gabriele Balducci). * build-fix for out-of-tree builds to address minstall script changes in patch #272 (patch by Thierry Reding). - Patch #272 - 2011/08/24 * document limitation of Gtk in connection with xterm's -into option, in the manpage (Ubuntu #806969). * improve -into by checking for and using the size of the window within which xterm is embedded, overriding other clues. * modify logic for localeFilter resource to allow that to include command-line options of luit. * improve -into by checking for invalid window-id, and allowing hexadecimal/decimal/octal values. * improve keepSelection, adding the case where the highlighting is cleared, overlooked in patch #230 (patch by Marco Peereboom). * improve command-line parsing to make abbreviate options work consistently across xterm-specific versus standard X toolkit options, and report cases where an abbreviated option happens to be ambiguous. In particular, -d now works as an abbreviation for -display. * fix regression in command-line parsing introduced in patch #271 changes for Debian #629358, (Debian #637910). * split-out new termcap/terminfo building block xterm+kbs for configurability. * modify terminfo file to reflect changes in ncurses for xterm-16color and xterm-256color. * modify minstall.sh, etc., to reflect the default default class, $TERM and decTerminalID values. * reword resize manpage to reflect the fact that $TERMCAP is not set on all systems (patch by Alan Coopersmith). * work around combined Xaw6/Xaw7 package in DragonFlyBSD which omits the usual symbolic link to the preferred library name. * further improve build-fix for termcap systems by checking for some which are only partial implementations, e.g., termcap 2.08 in CentOS 5.2 OBS-URL: https://build.opensuse.org/request/show/80382 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=23
170 lines
4.7 KiB
RPMSpec
170 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package xterm
|
|
#
|
|
# Copyright (c) 2011 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: xterm
|
|
BuildRequires: freetype2-devel update-desktop-files xorg-x11 xorg-x11-devel
|
|
BuildRequires: ncurses-devel
|
|
%if 0%{?suse_version} > 1130
|
|
BuildRequires: utempter-devel
|
|
%else
|
|
BuildRequires: utempter
|
|
%endif
|
|
Url: http://invisible-island.net/xterm/
|
|
License: MIT
|
|
Group: System/X11/Utilities
|
|
Provides: xorg-x11:/usr/X11R6/bin/xterm XFree86:/usr/X11R6/bin/xterm
|
|
AutoReqProv: on
|
|
Version: 273
|
|
Release: 1
|
|
Summary: The basic X terminal program
|
|
Source: ftp://invisible-island.net/xterm/%name-%version.tar.bz2
|
|
Source1: luitx
|
|
Source3: Backarrow2Delete
|
|
Source4: Backarrow2BackSpace
|
|
Source5: README.SuSE
|
|
Source6: terminal.png
|
|
Source7: vttest-20091231.tgz
|
|
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
|
|
Patch293793: bugzilla-293793-do-not-insist-on-iso8859-fonts-for-the-menu.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
This package contains the basic X.Org terminal program.
|
|
|
|
%prep
|
|
%setup -q -b7
|
|
%patch1 -p1 -b .xterm-settings
|
|
%patch2 -p0 -b .xterm-sigwinch
|
|
%patch3 -p1
|
|
%patch4 -p0
|
|
%patch5 -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}
|
|
make %{?_smp_mflags}
|
|
|
|
pushd ../vttest-20091231
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
popd
|
|
|
|
if [ ! which bdftopcf ] ; then exit 1; fi
|
|
for i in *.bdf
|
|
do
|
|
bdftopcf $i | gzip -9 > `basename $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-20091231
|
|
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
|
|
|
|
%post
|
|
%run_suseconfig_fonts
|
|
|
|
%postun
|
|
%run_suseconfig_fonts
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%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
|