# $XTermId: xterm.spec,v 1.160 2023/05/28 08:34:22 tom Exp $ Summary: X terminal emulator (development version) %global my_middle xterm %global my_suffix -dev %global fullname %{my_middle}%{my_suffix} %global my_class XTermDev Name: %{fullname} Version: 382 Release: 1 License: X11 Group: User Interface/X Source: https://invisible-island.net/archives/xterm/xterm-%{version}.tgz URL: https://invisible-island.net/xterm/ Provides: x-terminal-emulator >= %{version} # 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} # missing in Fedora 37: ## BuildRequires: xorg-x11-docs BuildRequires: ncurses-devel %else %if %{is_suse} BuildRequires: xorg-docs %endif %endif %endif %endif %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: 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}. A complete list of control sequences supported by the X terminal emulator is provided in /usr/share/doc/%{fullname}. The %{fullname} program uses bitmap images provided by the xbitmaps package. Those interested in using koi8r%{fullname} will likely want to install the xfonts-cyrillic package as well. This package is configured to use "%{fullname}" and "%{my_class}" for the program and its resource class, to avoid conflict with other packages. %prep %global target_appdata %{fullname}.appdata.xml %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) %define apps_x11r6 %(test -d /usr/X11R6/lib/X11/app-defaults && echo 1 || echo 0) %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) %if %{apps_x11r6} %define _xresdir %{_prefix}/X11R6/lib/X11/app-defaults %else %if %{apps_shared} %define _xresdir %{_datadir}/X11/app-defaults %else %define _xresdir %{_sysconfdir}/X11/app-defaults %endif %endif %define _iconsdir %{_datadir}/icons %define _pixmapsdir %{_datadir}/pixmaps %define my_docdir %{_datadir}/doc/%{fullname} # no need for debugging symbols... %define debug_package %{nil} %setup -q -n xterm-%{version} %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 \ %endif %if "%{icon_theme}" --with-icon-symlink=%{fullname} \ --with-icon-theme \ --with-icondir=%{_iconsdir} \ %endif --with-app-class=%{my_class} \ --disable-imake \ --enable-dabbrev \ --enable-dec-locator \ --enable-exec-xterm \ --enable-hp-fkeys \ --enable-load-vt-fonts \ --enable-logfile-exec \ --enable-logging \ --enable-mini-luit \ --enable-regis-graphics \ --enable-sco-fkeys \ --enable-toolbar \ --enable-xmc-glitch \ --with-app-defaults=%{_xresdir} \ --with-pixmapdir=%{_pixmapsdir} \ --with-own-terminfo=%{_datadir}/terminfo \ --with-terminal-type=xterm-new \ --with-utempter \ --with-icon-name=mini.xterm \ --with-xpm make chmod u+w XTerm.ad cat >>XTerm.ad <xterm\.desktop%{fullname}.desktopXTerm%{my_class}