1 # $XTermId: xterm.spec,v 1.7 2010/11/24 11:16:58 tom Exp $
2 Summary: A text-based Web browser
7 Group: Applications/Internet
8 Source: xterm-%{release}.tgz
9 # URL: http://invisible-island.net/xterm/
10 Provides: x-terminal-emulator
13 xterm is the standard terminal emulator for the X Window System.
14 It provides DEC VT102 and Tektronix 4014 compatible terminals for
15 programs that cannot use the window system directly. This version
16 implements ISO/ANSI colors, Unicode, and most of the control sequences
17 used by DEC VT220 terminals.
19 This package provides four commands:
20 a) xterm, which is the actual terminal emulator
21 b) uxterm, which is a wrapper around xterm which sets xterm to use UTF-8
22 encoding when the user's locale supports this,
23 c) koi8rxterm, a wrapper similar to uxterm for locales that use the
24 KOI8-R character set, and
27 A complete list of control sequences supported by the X terminal emulator
28 is provided in /usr/share/doc/xterm.
30 The xterm program uses bitmap images provided by the xbitmaps package.
32 Those interested in using koi8rxterm will likely want to install the
33 xfonts-cyrillic package as well.
37 %define my_suffix -dev
39 %define desktop_vendor dickey
40 %define desktop_utils %(if which desktop-file-install 2>&1 >/dev/null ; then echo "yes" ; fi)
42 %define apps_shared %(test -d /usr/share/X11/app-defaults && echo 1 || echo 0)
43 %define apps_syscnf %(test -d /etc/X11/app-defaults && echo 1 || echo 0)
46 %define _xresdir %{_datadir}/X11/app-defaults
48 %define _xresdir %{_sysconfdir}/X11/app-defaults
51 %define _iconsdir %{_datadir}/icons
52 %define _pixmapsdir %{_datadir}/pixmaps
53 %define my_docdir %{_datadir}/doc/xterm%{my_suffix}
55 %setup -q -n xterm-%{release}
58 CPPFLAGS="-DMISC_EXP -DEXP_HTTP_HEADERS" \
60 --target %{_target_platform} \
63 --datadir=%{_datadir} \
65 %if "%{my_suffix}" != ""
66 --program-suffix=%{my_suffix} \
67 --without-xterm-symlink \
72 --enable-dec-locator \
75 --enable-load-vt-fonts \
76 --enable-logfile-exec \
87 --with-app-defaults=%{_xresdir} \
88 --with-icondir=%{_pixmapsdir} \
89 --with-own-terminfo=%{_datadir}/terminfo \
90 --with-terminal-type=xterm-new \
96 *backarrowKeyIsErase: true
97 *ptyInitialErase: true
102 rm -rf $RPM_BUILD_ROOT
104 # Usually do not use install-ti, since that will conflict with ncurses.
105 make install-bin install-man install-app install-icon \
106 %if "%{install_ti}" == "yes"
109 DESTDIR=$RPM_BUILD_ROOT \
110 TERMINFO=%{_datadir}/terminfo
112 mkdir -p $RPM_BUILD_ROOT%{my_docdir}
118 $RPM_BUILD_ROOT%{my_docdir}/
121 $RPM_BUILD_ROOT%{my_docdir}/
123 # The scripts are readable, but not executable, to let find-requires
124 # know that they do not depend on Perl packages.
125 chmod 644 $RPM_BUILD_ROOT%{my_docdir}/vttests/*
127 %if "%{desktop_utils}" == "yes"
131 -e 's/Categories=System;/Categories=Application;Utility;/' \
132 -e 's/^\\(Name=.*\\)/\\1%{my_suffix}/' \
133 -e 's/^\\(Exec=.*\\)/\\1%{my_suffix}/' \
137 make install-desktop \
138 DESKTOP_FLAGS="--vendor='%{desktop_vendor}' --dir $RPM_BUILD_ROOT%{_datadir}/applications"
140 test -n "%{my_suffix}" && \
141 ( cd $RPM_BUILD_ROOT%{_datadir}/applications
144 mv $p `basename $p .desktop`%{my_suffix}.desktop
150 rm -rf $RPM_BUILD_ROOT
153 %defattr(-,root,root,-)
154 %{_bindir}/koi8rxterm%{my_suffix}
155 %{_bindir}/xterm%{my_suffix}
156 %{_bindir}/uxterm%{my_suffix}
157 %{_bindir}/resize%{my_suffix}
160 %{_pixmapsdir}/xterm*.xpm
163 %if "%{install_ti}" == "yes"
164 %{_datadir}/terminfo/*
167 %if "%{desktop_utils}" == "yes"
168 %config(missingok) %{_datadir}/applications/%{desktop_vendor}-xterm%{my_suffix}.desktop
169 %config(missingok) %{_datadir}/applications/%{desktop_vendor}-uxterm%{my_suffix}.desktop
174 * Fri Oct 22 2010 Thomas E. Dickey