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
|
|
|
#
|
2012-01-19 22:04:27 +01:00
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-25 17:50:34 +01:00
|
|
|
|
2007-01-16 00:44:00 +01:00
|
|
|
Name: xterm
|
2012-01-19 22:04:27 +01:00
|
|
|
BuildRequires: freetype2-devel
|
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
|
|
|
|
%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/
|
2010-01-14 17:14:55 +01:00
|
|
|
License: MIT
|
2007-01-16 00:44:00 +01:00
|
|
|
Group: System/X11/Utilities
|
|
|
|
Provides: xorg-x11:/usr/X11R6/bin/xterm XFree86:/usr/X11R6/bin/xterm
|
2007-09-20 14:33:11 +02:00
|
|
|
AutoReqProv: on
|
2012-01-19 22:04:27 +01:00
|
|
|
Version: 278
|
2011-02-17 14:55:41 +01:00
|
|
|
Release: 1
|
2007-01-16 00:44:00 +01:00
|
|
|
Summary: The basic X terminal program
|
2009-01-09 02:11:33 +01:00
|
|
|
Source: ftp://invisible-island.net/xterm/%name-%version.tar.bz2
|
2007-01-16 00:44:00 +01:00
|
|
|
Source1: luitx
|
|
|
|
Source3: Backarrow2Delete
|
|
|
|
Source4: Backarrow2BackSpace
|
|
|
|
Source5: README.SuSE
|
|
|
|
Source6: terminal.png
|
2010-01-21 11:48:40 +01:00
|
|
|
Source7: vttest-20091231.tgz
|
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
|
2007-01-16 00:44:00 +01:00
|
|
|
Patch1: p_xterm-settings.diff
|
|
|
|
Patch2: p_xterm-sigwinch.diff
|
2007-02-26 19:06:02 +01:00
|
|
|
Patch3: bug-246573-tentative-patch.diff
|
2007-08-12 11:49:01 +02:00
|
|
|
Patch4: desktop.diff
|
2009-01-09 02:11:33 +01:00
|
|
|
Patch5: xterm-disallow-window-and-fonts-ops.patch
|
2011-11-21 16:11:55 +01:00
|
|
|
Patch6: libtinfo.diff
|
2007-07-27 02:15:11 +02:00
|
|
|
Patch293793: bugzilla-293793-do-not-insist-on-iso8859-fonts-for-the-menu.patch
|
2007-01-16 00:44:00 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the basic X.Org terminal program.
|
|
|
|
|
|
|
|
%prep
|
2009-01-09 02:11:33 +01:00
|
|
|
%setup -q -b7
|
2009-01-30 00:34:52 +01:00
|
|
|
%patch1 -p1 -b .xterm-settings
|
2007-01-16 00:44:00 +01:00
|
|
|
%patch2 -p0 -b .xterm-sigwinch
|
2007-02-26 19:06:02 +01:00
|
|
|
%patch3 -p1
|
2007-08-12 11:49:01 +02:00
|
|
|
%patch4 -p0
|
2009-01-09 02:11:33 +01:00
|
|
|
%patch5 -p0
|
2011-11-21 16:11:55 +01:00
|
|
|
%patch6 -p0
|
2007-07-27 02:15:11 +02:00
|
|
|
%patch293793 -p1
|
2007-01-16 00:44:00 +01:00
|
|
|
cp $RPM_SOURCE_DIR/*bdf.bz2 .
|
|
|
|
bunzip2 *.bdf.bz2
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
2010-01-14 17:14:55 +01:00
|
|
|
make %{?_smp_mflags}
|
2011-03-16 11:35:37 +01:00
|
|
|
|
2010-01-21 11:48:40 +01:00
|
|
|
pushd ../vttest-20091231
|
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
|
|
|
|
|
|
|
if [ ! which bdftopcf ] ; then exit 1; fi
|
2007-01-16 00:44:00 +01:00
|
|
|
for i in *.bdf
|
|
|
|
do
|
2011-03-16 11:35:37 +01:00
|
|
|
bdftopcf $i | gzip -9 > `basename $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
|
|
|
|
|
2010-01-21 11:48:40 +01:00
|
|
|
pushd ../vttest-20091231
|
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
|
|
|
|
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
|
|
|
|
|
|
|
|
%post
|
|
|
|
%run_suseconfig_fonts
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%run_suseconfig_fonts
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2011-03-16 11:35:37 +01:00
|
|
|
%files
|
2007-01-16 00:44:00 +01:00
|
|
|
%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
|
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
|