2015-09-05 08:11:45 -06:00
|
|
|
# $XTermId: xterm.spec,v 1.85 2015/08/26 21:52:20 tom Exp $
|
2013-01-04 09:40:18 -07:00
|
|
|
Summary: X terminal emulator (development version)
|
2013-06-02 13:55:50 -06:00
|
|
|
%global my_middle xterm
|
|
|
|
%global my_suffix -dev
|
|
|
|
%global fullname %{my_middle}%{my_suffix}
|
|
|
|
%global my_class XTermDev
|
|
|
|
Name: %{fullname}
|
2015-09-05 08:11:45 -06:00
|
|
|
Version: 320
|
2011-08-18 13:47:42 -06:00
|
|
|
Release: 1
|
2010-11-29 13:10:09 -07:00
|
|
|
License: X11
|
2013-01-04 09:40:18 -07:00
|
|
|
Group: User Interface/X
|
2011-08-18 13:47:42 -06:00
|
|
|
Source: xterm-%{version}.tgz
|
2014-05-09 13:56:40 -06:00
|
|
|
URL: ftp://invisible-island.net/xterm/
|
2010-11-29 13:10:09 -07:00
|
|
|
Provides: x-terminal-emulator
|
|
|
|
|
2014-05-09 13:56:40 -06:00
|
|
|
# This part (the build-requires) would be useful if the various distributions
|
|
|
|
# had provided stable package-naming, or virtual packages to cover transitions.
|
|
|
|
# However, they have not done this in the past.
|
|
|
|
%define use_x_manpage %(test "x$_use_x_manpage" = xyes && echo 1 || echo 0)
|
|
|
|
%if "%{use_x_manpage}"
|
|
|
|
|
|
|
|
%global is_mandriva %(test -f /etc/mandriva-release && echo %{use_x_manpage} || echo 0)
|
|
|
|
%global is_redhat %(test -f /etc/redhat-release && echo %{use_x_manpage} || echo 0)
|
|
|
|
%global is_suse %(test -f /etc/SuSE-release && echo %{use_x_manpage} || echo 0)
|
|
|
|
|
|
|
|
%if %{is_mandriva}
|
|
|
|
BuildRequires: x11-docs
|
|
|
|
%else
|
|
|
|
%if %{is_redhat}
|
|
|
|
BuildRequires: xorg-x11-docs
|
|
|
|
%else
|
|
|
|
%if %{is_suse}
|
|
|
|
BuildRequires: xorg-docs
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
2010-11-29 13:10:09 -07:00
|
|
|
%description
|
|
|
|
xterm is the standard terminal emulator for the X Window System.
|
|
|
|
It provides DEC VT102 and Tektronix 4014 compatible terminals for
|
|
|
|
programs that cannot use the window system directly. This version
|
|
|
|
implements ISO/ANSI colors, Unicode, and most of the control sequences
|
|
|
|
used by DEC VT220 terminals.
|
|
|
|
|
|
|
|
This package provides four commands:
|
2013-06-02 13:55:50 -06:00
|
|
|
a) %{fullname}, which is the actual terminal emulator
|
|
|
|
b) u%{fullname}, which is a wrapper around %{fullname}
|
|
|
|
which sets %{fullname} to use UTF-8 encoding when
|
|
|
|
the user's locale supports this,
|
|
|
|
c) koi8r%{fullname}, a wrapper similar to u%{fullname}
|
|
|
|
for locales that use the KOI8-R character set, and
|
|
|
|
d) resize%{my_suffix}.
|
2010-11-29 13:10:09 -07:00
|
|
|
|
|
|
|
A complete list of control sequences supported by the X terminal emulator
|
2013-06-02 13:55:50 -06:00
|
|
|
is provided in /usr/share/doc/%{fullname}.
|
2010-11-29 13:10:09 -07:00
|
|
|
|
2013-06-02 13:55:50 -06:00
|
|
|
The %{fullname} program uses bitmap images provided by the xbitmaps package.
|
2010-11-29 13:10:09 -07:00
|
|
|
|
2013-06-02 13:55:50 -06:00
|
|
|
Those interested in using koi8r%{fullname} will likely want to install the
|
2010-11-29 13:10:09 -07:00
|
|
|
xfonts-cyrillic package as well.
|
|
|
|
|
2013-06-02 13:55:50 -06:00
|
|
|
This package is configured to use "%{fullname}" and "%{my_class}"
|
|
|
|
for the program and its resource class, to avoid conflict with other packages.
|
2011-08-18 13:47:42 -06:00
|
|
|
|
2010-11-29 13:10:09 -07:00
|
|
|
%prep
|
|
|
|
|
2013-06-02 13:55:50 -06:00
|
|
|
%global desktop_vendor dickey
|
2010-11-29 13:10:09 -07:00
|
|
|
|
2013-01-04 09:40:18 -07:00
|
|
|
%define desktop_utils %(if which desktop-file-install 2>&1 >/dev/null ; then echo 1 || echo 0 ; fi)
|
|
|
|
%define icon_theme %(test -d /usr/share/icons/hicolor && echo 1 || echo 0)
|
2014-05-09 13:56:40 -06:00
|
|
|
%define apps_x11r6 %(test -d /usr/X11R6/lib/X11/app-defaults && echo 1 || echo 0)
|
2010-11-29 13:10:09 -07:00
|
|
|
%define apps_shared %(test -d /usr/share/X11/app-defaults && echo 1 || echo 0)
|
|
|
|
%define apps_syscnf %(test -d /etc/X11/app-defaults && echo 1 || echo 0)
|
|
|
|
|
2014-05-09 13:56:40 -06:00
|
|
|
%if %{apps_x11r6}
|
|
|
|
%define _xresdir %{_prefix}/X11R6/lib/X11/app-defaults
|
|
|
|
%else
|
2010-11-29 13:10:09 -07:00
|
|
|
%if %{apps_shared}
|
|
|
|
%define _xresdir %{_datadir}/X11/app-defaults
|
|
|
|
%else
|
|
|
|
%define _xresdir %{_sysconfdir}/X11/app-defaults
|
|
|
|
%endif
|
2014-05-09 13:56:40 -06:00
|
|
|
%endif
|
2010-11-29 13:10:09 -07:00
|
|
|
|
|
|
|
%define _iconsdir %{_datadir}/icons
|
|
|
|
%define _pixmapsdir %{_datadir}/pixmaps
|
2013-06-02 13:55:50 -06:00
|
|
|
%define my_docdir %{_datadir}/doc/%{fullname}
|
2010-11-29 13:10:09 -07:00
|
|
|
|
2013-01-04 09:40:18 -07:00
|
|
|
# no need for debugging symbols...
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
2011-08-18 13:47:42 -06:00
|
|
|
%setup -q -n xterm-%{version}
|
2010-11-29 13:10:09 -07:00
|
|
|
|
|
|
|
%build
|
|
|
|
CPPFLAGS="-DMISC_EXP -DEXP_HTTP_HEADERS" \
|
|
|
|
%configure \
|
|
|
|
--target %{_target_platform} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--datadir=%{_datadir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
%if "%{my_suffix}" != ""
|
|
|
|
--program-suffix=%{my_suffix} \
|
|
|
|
--without-xterm-symlink \
|
2013-01-04 09:40:18 -07:00
|
|
|
%endif
|
|
|
|
%if "%{icon_theme}"
|
2013-06-02 13:55:50 -06:00
|
|
|
--with-icon-symlink \
|
2013-01-04 09:40:18 -07:00
|
|
|
--with-icon-theme \
|
|
|
|
--with-icondir=%{_iconsdir} \
|
2010-11-29 13:10:09 -07:00
|
|
|
%endif
|
2011-08-18 13:47:42 -06:00
|
|
|
--with-app-class=%{my_class} \
|
2013-03-09 07:45:38 -07:00
|
|
|
--disable-imake \
|
2010-11-29 13:10:09 -07:00
|
|
|
--enable-256-color \
|
|
|
|
--enable-88-color \
|
|
|
|
--enable-dabbrev \
|
|
|
|
--enable-dec-locator \
|
|
|
|
--enable-exec-xterm \
|
|
|
|
--enable-hp-fkeys \
|
|
|
|
--enable-load-vt-fonts \
|
|
|
|
--enable-logfile-exec \
|
|
|
|
--enable-logging \
|
|
|
|
--enable-mini-luit \
|
|
|
|
--enable-paste64 \
|
2014-07-14 02:30:10 -06:00
|
|
|
--enable-regis-graphics \
|
2010-11-29 13:10:09 -07:00
|
|
|
--enable-sco-fkeys \
|
2013-08-26 14:06:09 -06:00
|
|
|
--enable-sixel-graphics \
|
2010-11-29 13:10:09 -07:00
|
|
|
--enable-tcap-fkeys \
|
|
|
|
--enable-tcap-query \
|
|
|
|
--enable-toolbar \
|
|
|
|
--enable-wide-chars \
|
|
|
|
--enable-xmc-glitch \
|
|
|
|
--with-app-defaults=%{_xresdir} \
|
2013-01-04 09:40:18 -07:00
|
|
|
--with-pixmapdir=%{_pixmapsdir} \
|
2010-11-29 13:10:09 -07:00
|
|
|
--with-own-terminfo=%{_datadir}/terminfo \
|
|
|
|
--with-terminal-type=xterm-new \
|
2013-01-04 09:40:18 -07:00
|
|
|
--with-utempter \
|
2013-06-02 13:55:50 -06:00
|
|
|
--with-icon-name=mini.xterm \
|
2013-01-04 09:40:18 -07:00
|
|
|
--with-xpm
|
2010-11-29 13:10:09 -07:00
|
|
|
make
|
|
|
|
|
|
|
|
chmod u+w XTerm.ad
|
|
|
|
cat >>XTerm.ad <<EOF
|
|
|
|
*backarrowKeyIsErase: true
|
|
|
|
*ptyInitialErase: true
|
|
|
|
EOF
|
|
|
|
ls -l *.ad
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
# Usually do not use install-ti, since that will conflict with ncurses.
|
|
|
|
make install-bin install-man install-app install-icon \
|
|
|
|
%if "%{install_ti}" == "yes"
|
|
|
|
install-ti \
|
|
|
|
%endif
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT \
|
|
|
|
TERMINFO=%{_datadir}/terminfo
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{my_docdir}
|
|
|
|
cp \
|
|
|
|
ctlseqs.txt \
|
|
|
|
README.i18n \
|
|
|
|
THANKS \
|
|
|
|
xterm.log.html \
|
|
|
|
$RPM_BUILD_ROOT%{my_docdir}/
|
|
|
|
|
|
|
|
cp -r vttests \
|
|
|
|
$RPM_BUILD_ROOT%{my_docdir}/
|
|
|
|
|
|
|
|
# The scripts are readable, but not executable, to let find-requires
|
|
|
|
# know that they do not depend on Perl packages.
|
2014-05-09 13:56:40 -06:00
|
|
|
chmod 644 $RPM_BUILD_ROOT%{my_docdir}/vttests/*.pl
|
2010-11-29 13:10:09 -07:00
|
|
|
|
2013-01-04 09:40:18 -07:00
|
|
|
%if "%{desktop_utils}"
|
2010-11-29 13:10:09 -07:00
|
|
|
make install-desktop \
|
|
|
|
DESKTOP_FLAGS="--vendor='%{desktop_vendor}' --dir $RPM_BUILD_ROOT%{_datadir}/applications"
|
|
|
|
|
|
|
|
test -n "%{my_suffix}" && \
|
|
|
|
( cd $RPM_BUILD_ROOT%{_datadir}/applications
|
|
|
|
for p in *.desktop
|
|
|
|
do
|
|
|
|
mv $p `basename $p .desktop`%{my_suffix}.desktop
|
|
|
|
done
|
|
|
|
)
|
|
|
|
%endif
|
|
|
|
|
2013-01-04 09:40:18 -07:00
|
|
|
%post
|
|
|
|
%if "%{icon_theme}"
|
|
|
|
touch --no-create %{_iconsdir}/hicolor
|
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
|
%{_bindir}/gtk-update-icon-cache %{_iconsdir}/hicolor || :
|
|
|
|
fi
|
|
|
|
%endif
|
2014-05-09 13:56:40 -06:00
|
|
|
# find-requires does not care about at this point
|
|
|
|
chmod +x %{my_docdir}/vttests/*.*
|
2013-01-04 09:40:18 -07:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%if "%{icon_theme}"
|
|
|
|
touch --no-create %{_iconsdir}/hicolor
|
|
|
|
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
|
%{_bindir}/gtk-update-icon-cache %{_iconsdir}/hicolor || :
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
2010-11-29 13:10:09 -07:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-06-02 13:55:50 -06:00
|
|
|
%{_bindir}/koi8r%{fullname}
|
|
|
|
%{_bindir}/%{fullname}
|
|
|
|
%{_bindir}/u%{fullname}
|
2010-11-29 13:10:09 -07:00
|
|
|
%{_bindir}/resize%{my_suffix}
|
|
|
|
%{_mandir}/*/*
|
|
|
|
%{my_docdir}/*
|
|
|
|
%{_xresdir}/*XTerm*
|
|
|
|
|
|
|
|
%if "%{install_ti}" == "yes"
|
|
|
|
%{_datadir}/terminfo/*
|
|
|
|
%endif
|
|
|
|
|
2013-01-04 09:40:18 -07:00
|
|
|
%if "%{desktop_utils}"
|
2013-06-02 13:55:50 -06:00
|
|
|
%config(missingok) %{_datadir}/applications/%{desktop_vendor}-%{fullname}.desktop
|
|
|
|
%config(missingok) %{_datadir}/applications/%{desktop_vendor}-u%{fullname}.desktop
|
2010-11-29 13:10:09 -07:00
|
|
|
%endif
|
|
|
|
|
2013-01-04 09:40:18 -07:00
|
|
|
%if "%{icon_theme}"
|
2013-06-02 13:55:50 -06:00
|
|
|
%{_iconsdir}/hicolor/48x48/apps/%{fullname}*.png
|
|
|
|
%{_iconsdir}/hicolor/scalable/apps/%{fullname}*.svg
|
2013-01-04 09:40:18 -07:00
|
|
|
%endif
|
2013-06-02 13:55:50 -06:00
|
|
|
%{_pixmapsdir}/*%{fullname}*.xpm
|
|
|
|
|
|
|
|
# files added by --with-icon-symlink
|
|
|
|
%if "%{icon_theme}"
|
|
|
|
%{_iconsdir}/hicolor/xterm.png
|
|
|
|
%{_iconsdir}/hicolor/xterm.svg
|
|
|
|
%endif
|
|
|
|
%{_pixmapsdir}/xterm.xpm
|
2013-01-04 09:40:18 -07:00
|
|
|
|
2010-11-29 13:10:09 -07:00
|
|
|
%changelog
|
|
|
|
|
2013-06-02 13:55:50 -06:00
|
|
|
* Mon May 27 2013 Thomas E. Dickey
|
|
|
|
- use --with-icon-symlink
|
|
|
|
|
2013-01-04 09:40:18 -07:00
|
|
|
* Mon Oct 08 2012 Thomas E. Dickey
|
|
|
|
- added to pixmapsdir
|
|
|
|
|
|
|
|
* Fri Jun 15 2012 Thomas E. Dickey
|
|
|
|
- modify to support icon theme
|
|
|
|
|
2010-11-29 13:10:09 -07:00
|
|
|
* Fri Oct 22 2010 Thomas E. Dickey
|
|
|
|
- initial version.
|