2007-01-16 00:44:00 +01:00
|
|
|
#
|
2011-02-18 12:39:16 +01:00
|
|
|
# spec file for package xterm
|
2007-01-16 00:44:00 +01:00
|
|
|
#
|
2014-01-21 11:02:04 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:44:00 +01:00
|
|
|
#
|
2009-01-09 02:11:33 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:44:00 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-02-25 17:50:34 +01:00
|
|
|
|
2007-01-16 00:44:00 +01:00
|
|
|
Name: xterm
|
2012-10-05 13:07:47 +02:00
|
|
|
%if 0%{?suse_version} > 1220
|
2012-08-06 14:07:58 +02:00
|
|
|
BuildRequires: fontpackages-devel
|
2012-10-05 13:07:47 +02:00
|
|
|
%endif
|
2012-01-19 22:04:27 +01:00
|
|
|
BuildRequires: freetype2-devel
|
2013-01-25 16:10:08 +01:00
|
|
|
%if 0%{?suse_version} > 1220
|
2012-12-03 15:40:38 +01:00
|
|
|
BuildRequires: gpg-offline
|
2013-01-25 16:10:08 +01:00
|
|
|
%endif
|
2007-03-29 18:32:37 +02:00
|
|
|
BuildRequires: ncurses-devel
|
2012-01-19 22:04:27 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2010-09-10 15:09:23 +02:00
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
BuildRequires: utempter-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: utempter
|
|
|
|
%endif
|
2012-01-19 22:04:27 +01:00
|
|
|
%if 0%{?suse_version} >= 1000
|
|
|
|
BuildRequires: xorg-x11
|
|
|
|
BuildRequires: xorg-x11-devel
|
2012-02-18 11:34:03 +01:00
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
# post xorg libs split
|
|
|
|
BuildRequires: libXaw-devel
|
2013-02-19 15:24:58 +01:00
|
|
|
# separate package now
|
|
|
|
BuildRequires: bdftopcf
|
2012-02-18 11:34:03 +01:00
|
|
|
%endif
|
2012-01-19 22:04:27 +01:00
|
|
|
%else
|
2012-01-22 12:41:31 +01:00
|
|
|
BuildRequires: XFree86-devel
|
2012-01-19 22:04:27 +01:00
|
|
|
BuildRequires: XFree86-libs
|
2012-01-22 12:41:31 +01:00
|
|
|
BuildRequires: xaw3d
|
2012-01-19 22:04:27 +01:00
|
|
|
%endif
|
2007-09-20 14:33:11 +02:00
|
|
|
Url: http://invisible-island.net/xterm/
|
2012-05-16 23:04:38 +02:00
|
|
|
Provides: XFree86:/usr/X11R6/bin/xterm
|
|
|
|
Provides: xorg-x11:/usr/X11R6/bin/xterm
|
2012-06-26 15:37:05 +02:00
|
|
|
# post xorg apps split
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
Requires: luit
|
|
|
|
%endif
|
2014-09-29 17:37:14 +02:00
|
|
|
Version: 312
|
2012-02-18 11:34:03 +01:00
|
|
|
Release: 0
|
2007-01-16 00:44:00 +01:00
|
|
|
Summary: The basic X terminal program
|
2012-02-18 11:34:03 +01:00
|
|
|
License: MIT
|
|
|
|
Group: System/X11/Utilities
|
2013-05-29 16:46:55 +02:00
|
|
|
Source: ftp://invisible-island.net/xterm/%{name}-%{version}.tgz
|
|
|
|
Source1: ftp://invisible-island.net/xterm/%{name}-%{version}.tgz.asc
|
|
|
|
Source2: luitx
|
2007-01-16 00:44:00 +01:00
|
|
|
Source3: Backarrow2Delete
|
|
|
|
Source4: Backarrow2BackSpace
|
2014-08-12 18:08:26 +02:00
|
|
|
Source5: README.SUSE
|
2007-01-16 00:44:00 +01:00
|
|
|
Source6: terminal.png
|
2013-09-27 15:48:16 +02:00
|
|
|
Source11: xterm.keyring
|
2007-01-16 00:44:00 +01:00
|
|
|
Source8: 20x20ja.bdf.bz2
|
|
|
|
Source9: 20x20ko.bdf.bz2
|
2007-07-13 19:24:44 +02:00
|
|
|
# Snoop for the escape sequence assignment of the keypad
|
|
|
|
Source20: snooper.tar.bz2
|
2013-05-29 16:46:55 +02:00
|
|
|
%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
|
2013-09-27 15:48:16 +02:00
|
|
|
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
|
2014-06-12 18:42:44 +02:00
|
|
|
Patch8: xterm-decomposed_bitmaps.patch
|
2013-05-29 16:46:55 +02:00
|
|
|
Patch101: vttest-config_update_aarch64.patch
|
2007-01-16 00:44:00 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-10-05 13:11:42 +02:00
|
|
|
%if 0%{?suse_version} > 1220
|
2013-04-29 15:29:44 +02:00
|
|
|
%reconfigure_fonts_prereq
|
2012-10-05 13:11:42 +02:00
|
|
|
%endif
|
2007-01-16 00:44:00 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the basic X.Org terminal program.
|
|
|
|
|
|
|
|
%prep
|
2013-01-25 16:10:08 +01:00
|
|
|
%if 0%{?suse_version} > 1220
|
2013-05-29 17:25:35 +02:00
|
|
|
%gpg_verify %{S:1}
|
2013-05-29 17:28:52 +02:00
|
|
|
%gpg_verify %{S:101}
|
2013-01-25 16:10:08 +01:00
|
|
|
%endif
|
2013-05-29 16:46:55 +02:00
|
|
|
%setup -q -b100
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2007-02-26 19:06:02 +01:00
|
|
|
%patch3 -p1
|
2013-05-29 16:46:55 +02:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2014-06-12 18:42:44 +02:00
|
|
|
%patch8 -p1
|
2013-05-29 16:46:55 +02:00
|
|
|
cp -t . %{S:8} %{S:9}
|
|
|
|
bunzip2 %{basename:%{S:8}} %{basename:%{S:9}}
|
|
|
|
cd ../vttest-%{vttest_version}
|
|
|
|
%patch101 -p1
|
2007-01-16 00:44:00 +01:00
|
|
|
|
|
|
|
%build
|
2011-03-16 11:35:37 +01:00
|
|
|
# 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
|
|
|
|
|
2011-02-17 14:55:41 +01:00
|
|
|
%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 \
|
2012-01-22 12:41:31 +01:00
|
|
|
--with-app-defaults=%{xappdefs} \
|
|
|
|
%if 0%{?suse_version} < 1000
|
|
|
|
--x-includes=/usr/X11R6/include \
|
|
|
|
--x-libraries=/usr/X11R6/%{_lib} \
|
|
|
|
%endif
|
2012-07-24 09:33:38 +02:00
|
|
|
--enable-backarrow-is-erase \
|
2014-06-10 15:29:44 +02:00
|
|
|
--enable-sixel-graphics \
|
2012-01-22 12:41:31 +01:00
|
|
|
|
2010-01-14 17:14:55 +01:00
|
|
|
make %{?_smp_mflags}
|
2011-03-16 11:35:37 +01:00
|
|
|
|
2013-05-29 16:46:55 +02:00
|
|
|
pushd "../vttest-%{vttest_version}"
|
2011-03-16 11:35:37 +01:00
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:44:00 +01:00
|
|
|
popd
|
2011-03-16 11:35:37 +01:00
|
|
|
|
2013-02-19 15:24:58 +01:00
|
|
|
if ! which bdftopcf &> /dev/null; then exit 1; fi
|
2007-01-16 00:44:00 +01:00
|
|
|
for i in *.bdf
|
|
|
|
do
|
2012-05-16 23:04:38 +02:00
|
|
|
bdftopcf "$i" | gzip -9 >"${i%.bdf}.pcf.gz"
|
2007-01-16 00:44:00 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
2007-02-19 23:29:31 +01:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2011-03-16 11:35:37 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2012-05-16 23:04:38 +02:00
|
|
|
pushd "../vttest-%vttest_version"
|
2011-03-16 11:35:37 +01:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2007-01-16 00:44:00 +01:00
|
|
|
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
|
2014-08-12 18:08:26 +02:00
|
|
|
install -m 644 $RPM_SOURCE_DIR/README.SUSE .
|
2011-03-16 11:35:37 +01:00
|
|
|
|
2007-01-16 00:44:00 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
|
|
|
|
install -m 644 $RPM_SOURCE_DIR/terminal.png \
|
2011-03-16 11:35:37 +01:00
|
|
|
$RPM_BUILD_ROOT/usr/share/pixmaps
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{xfontsd}/misc/
|
|
|
|
install -m 644 *.pcf.gz $RPM_BUILD_ROOT%{xfontsd}/misc/
|
2007-01-16 00:44:00 +01:00
|
|
|
%suse_update_desktop_file -i xterm TerminalEmulator
|
|
|
|
|
2012-10-11 16:17:23 +02:00
|
|
|
%if 0%{?suse_version} > 1220
|
2012-08-06 14:07:58 +02:00
|
|
|
%reconfigure_fonts_scriptlets
|
2012-10-11 16:17:23 +02:00
|
|
|
%endif
|
2007-01-16 00:44:00 +01:00
|
|
|
|
2011-03-16 11:35:37 +01:00
|
|
|
%files
|
2007-01-16 00:44:00 +01:00
|
|
|
%defattr(-,root,root)
|
2014-08-12 18:08:26 +02:00
|
|
|
%doc README README.i18n README.SUSE
|
2007-01-16 00:44:00 +01:00
|
|
|
/usr/bin/vttest
|
|
|
|
/usr/bin/luitx
|
|
|
|
%attr(755,root,root) /usr/bin/xterm
|
|
|
|
/usr/bin/resize
|
|
|
|
/usr/bin/uxterm
|
2008-01-03 18:03:24 +01:00
|
|
|
/usr/bin/koi8rxterm
|
2007-01-16 00:44:00 +01:00
|
|
|
/usr/bin/Backarrow2Delete
|
|
|
|
/usr/bin/Backarrow2BackSpace
|
2007-02-19 23:29:31 +01:00
|
|
|
/usr/share/man/man1/xterm.1.gz
|
|
|
|
/usr/share/man/man1/resize.1.gz
|
2007-01-16 00:44:00 +01:00
|
|
|
%{_mandir}/man1/vttest.1.gz
|
2008-01-03 18:03:24 +01:00
|
|
|
%{_mandir}/man1/koi8rxterm.1.gz
|
|
|
|
%{_mandir}/man1/uxterm.1.gz
|
2007-01-16 00:44:00 +01:00
|
|
|
/usr/share/applications/xterm.desktop
|
2007-07-10 19:19:14 +02:00
|
|
|
/usr/share/pixmaps/*
|
2011-03-16 11:35:37 +01:00
|
|
|
%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
|
2008-01-03 18:03:24 +01:00
|
|
|
|
2007-02-19 23:29:31 +01:00
|
|
|
%changelog
|