Репозиторий Sisyphus
Последнее обновление: 21 октября 2019 | Пакетов: 17508 | Посещений: 15340438
en ru br
Репозитории ALT
5.1: 250-alt1
4.1: 235-alt1
4.0: 231-alt1
3.0: 202-alt2

Группа :: Терминалы
Пакет: xterm

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1

%define xterm_stdfalgs \\\
--with-app-defaults=%_sysconfdir/X11/app-defaults \\\
--with-utempter \\\
--enable-warnings \\\
--enable-wide-chars \\\
--enable-dec-locator \\\
--enable-narrowproto \\\
--disable-full-tgetent \\\
--disable-echo \\\
--enable-256-color \\\
--enable-doublechars \\\

%define xterm_expflags \\\
 --with-neXtaw          \\\
 --enable-dabbrev       \\\
 --enable-double-buffer \\\
 --enable-exec-xterm    \\\
 --enable-load-vt-fonts \\\
 --enable-logfile-exec  \\\
 --enable-logging       \\\

Name: xterm
Version: 330
Release: alt1

Summary: A standard terminal emulator for the X Window System
Summary(ru_RU.UTF8): п║я┌п╟п╫п╢п╟я─я┌п╫я▀п╧ я█п╪я┐п╩я▐я┌п╬я─ я┌п╣я─п╪п╦п╫п╟п╩п╟ п╢п╩я▐ X Window System
Url: http://invisible-island.net/xterm/
License: MIT
Group: Terminals

Source0: ftp://invisible-island.net/%name/%name-%version.tgz
Source1: uxterm

Patch0001: 0001-xterm-alt-render.patch
Patch0002: 0002-xterm-alt-utempter.patch
Patch0003: 0003-xterm-alt-tinfo.patch
Patch0004: 0004-xterm-alt-perms.patch
Patch0005: 0005-xterm-alt-deffont.patch
Patch0006: 0006-xterm-alt-makefile-install.patch
Patch0007: 0007-xterm-alt-disable-report_win_label.patch
Patch0008: 0008-xterm-alt-i18n.patch
Patch0009: 0009-xterm-alt-colors.patch
Patch0010: 0010-xterm-alt-back_old_behavior_for_modifyFunctionKeys.patch
Patch0011: 0011-xterm-alt-appdef.patch
Patch0012: 0012-xterm-alt-enable_utf8title.patch
Patch0013: 0013-xterm-alt-man_suffix.patch

Provides: xvt, %_bindir/xvt
PreReq: libutempter >= 1.0.7, alternatives >= 0.3.5-alt1
BuildPreReq: alternatives groff-base imake libXaw-devel libXft-devel libncurses-devel libutempter-devel libxkbfile-devel xorg-cf-files
# Automatically added by buildreq on Wed Nov 14 2012
# optimized out: alternatives fontconfig fontconfig-devel gnu-config libICE-devel libSM-devel libX11-devel libXmu-devel libXrender-devel libXt-devel libfreetype-devel libtinfo-devel pkg-config xorg-kbproto-devel xorg-renderproto-devel xorg-xextproto-devel xorg-xproto-devel
BuildRequires: ctags desktop-file-utils groff-base imake libXaw-devel libXext-devel libXft-devel libncurses-devel libneXtaw-devel libutempter-devel libxkbfile-devel xorg-cf-files

BuildRequires: desktop-file-utils

Requires: /etc/X11/app-defaults

The XTerm program is the standard terminal emulator for the X Window System.
It provides DEC VT102/VT220 and Tektronix 4014 compatible terminals for
programs that can't use the window system directly.  If the underlying
operating system supports terminal resizing capabilities (for example,
the SIGWINCH signal in systems derived from 4.3bsd), xterm will use
the facilities to notify programs running in the window whenever it
is resized.

%package experimental
Group: Terminals
Summary: experimental version of xterm
%description experimental
XTerm build with some experimental/unsafe features:


install -pm755 %_sourcedir/uxterm .

%patch0001 -p2
%patch0002 -p2
%patch0003 -p2
%patch0004 -p2
%patch0005 -p2
%patch0006 -p2
%patch0007 -p2
%patch0008 -p2
%patch0009 -p2
%patch0010 -p2
%patch0011 -p2
%patch0012 -p2
%patch0013 -p2

sed -i 's|^Exec=xterm|& -name XTerm|' %name.desktop
sed -i 's|_48x48||' *.desktop
sed -i '/^Comment=/s/$/ (UTF8 forced)/' uxterm.desktop

## Do we need this?

## sed '/^Exec=xterm/s/-name XTerm/ -tn xterm-color -name XTerm-color/' %name.desktop > xterm-color.desktop

# Remove deprecated Encoding key

sed -i '/^Encoding=/d' *.desktop

export ac_cv_path_XTERM_PATH=%_bindir/%name
# Rebuild this
touch ctlseqs.ms

%configure %xterm_stdfalgs
%make_build all ctlseqs.txt
cp xterm xterm.std
bzip2 -9fk ctlseqs.txt

make distclean
%configure %xterm_stdfalgs %xterm_expflags
cp xterm xterm.extd
cp xterm.std xterm

install xterm.extd %buildroot%_bindir/XTerm
# TODO this getting strange (some "=auto" in desktop-file-install)
# but may be improved later (see icon theme configure option)
# install-desktop --silent --no-print-directory
install -D %name.desktop %buildroot/%_desktopdir/%name.desktop
## Do we need this?
## install -D %name-color.desktop %buildroot/%_desktopdir/%name-color.desktop

for n in xterm xterm-color; do
 for s in 48 32; do
   install -D icons/${n}_${s}x${s}.xpm %buildroot%_iconsdir/hicolor/${s}x${s}/apps/$n.xpm
 install -D icons/%name.svg %buildroot%_iconsdir/hicolor/scalable/apps/%name.svg
 ## install -D icons/terminal*.* %buildroot%_pixmapsdir/

mkdir -p %buildroot%_altdir
cat >%buildroot%_altdir/%name <<EOF
%_bindir/xvt %_bindir/xterm 40

%doc README ctlseqs.txt.* %name.log.html tektests vttests
%attr(2711,root,utempter) %_bindir/%name
%config(noreplace) %_sysconfdir/X11/app-defaults/*

%files experimental
%attr(2711,root,utempter) %_bindir/XTerm


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin