Репозитории ALT
Группа :: Терминалы
Пакет: xterm
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1
Name: xterm
Version: 250
Release: alt1
Summary: A standard terminal emulator for the X Window System
Summary(ru_RU.KOI8-R): Стандартный эмулятор терминала для X Window System
Url: http://invisible-island.net/xterm/
License: MIT
Group: Terminals
Packager: Slava Semushin <php-coder at altlinux.ru>
Source0: ftp://invisible-island.net/%name/%name-%version.tgz
Source1: uxterm
Patch0: xterm-alt-render.patch
Patch1: xterm-alt-utempter.patch
Patch2: xterm-alt-tinfo.patch
Patch3: xterm-alt-perms.patch
Patch4: xterm-alt-deffont.patch
Patch5: xterm-alt-makefile-install.patch
Patch6: xterm-alt-disable-report_win_label.patch
Patch7: xterm-alt-i18n.patch
Patch8: xterm-alt-colors.patch
Patch9: xterm-alt-class.patch
# Fix for bug #11002
Patch10: xterm-alt-back_old_behavior_for_modifyFunctionKeys.patch
# Fix for bug #595
Patch11: xterm-alt-metaSendsEscape.patch
# Fix for bug #12776
Patch12: xterm-alt-enable_utf8title.patch
Patch13: 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
BuildRequires: desktop-file-utils
Requires: /etc/X11/app-defaults
%description
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.
%prep
%setup
install -pm755 %_sourcedir/uxterm .
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p2
%patch13 -p2
sed -i 's|Exec=xterm|& -name XTerm|' %name.desktop
# Remove deprecated Encoding key
sed -i '/^Encoding=/d' {u,}xterm.desktop
%build
export ac_cv_path_XTERM_PATH=%_bindir/%name
export DESKTOP_FLAGS='--vendor="" --dir=%buildroot%_desktopdir --add-category="TerminalEmulator"'
%configure \
--with-app-defaults=%_sysconfdir/X11/app-defaults \
--with-utempter \
--enable-warnings \
--enable-wide-chars \
--enable-dec-locator \
--enable-narrowproto \
--disable-full-tgetent \
--disable-echo \
#
%make_build all ctlseqs.txt
bzip2 -9fk ctlseqs.txt
%install
%makeinstall_std install-desktop --silent --no-print-directory
mkdir -p %buildroot%_altdir
cat >%buildroot%_altdir/%name <<EOF
%_bindir/xvt %_bindir/xterm 40
EOF
%files
%doc README ctlseqs.txt.* %name.log.html
%attr(2711,root,utempter) %_bindir/%name
%_bindir/uxterm
%_bindir/koi8rxterm
%_bindir/resize
%_man1dir/resize.1.*
%_man1dir/%name.1.*
%_man1dir/uxterm.1.*
%_man1dir/koi8rxterm.1.*
%config(noreplace) %_sysconfdir/X11/app-defaults/*
%_altdir/%name
%_desktopdir/*.desktop
%_pixmapsdir/*.xpm
%changelog
…
Полный changelog можно просмотреть здесь
%define _unpackaged_files_terminate_build 1
Name: xterm
Version: 250
Release: alt1
Summary: A standard terminal emulator for the X Window System
Summary(ru_RU.KOI8-R): Стандартный эмулятор терминала для X Window System
Url: http://invisible-island.net/xterm/
License: MIT
Group: Terminals
Packager: Slava Semushin <php-coder at altlinux.ru>
Source0: ftp://invisible-island.net/%name/%name-%version.tgz
Source1: uxterm
Patch0: xterm-alt-render.patch
Patch1: xterm-alt-utempter.patch
Patch2: xterm-alt-tinfo.patch
Patch3: xterm-alt-perms.patch
Patch4: xterm-alt-deffont.patch
Patch5: xterm-alt-makefile-install.patch
Patch6: xterm-alt-disable-report_win_label.patch
Patch7: xterm-alt-i18n.patch
Patch8: xterm-alt-colors.patch
Patch9: xterm-alt-class.patch
# Fix for bug #11002
Patch10: xterm-alt-back_old_behavior_for_modifyFunctionKeys.patch
# Fix for bug #595
Patch11: xterm-alt-metaSendsEscape.patch
# Fix for bug #12776
Patch12: xterm-alt-enable_utf8title.patch
Patch13: 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
BuildRequires: desktop-file-utils
Requires: /etc/X11/app-defaults
%description
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.
%prep
%setup
install -pm755 %_sourcedir/uxterm .
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p2
%patch13 -p2
sed -i 's|Exec=xterm|& -name XTerm|' %name.desktop
# Remove deprecated Encoding key
sed -i '/^Encoding=/d' {u,}xterm.desktop
%build
export ac_cv_path_XTERM_PATH=%_bindir/%name
export DESKTOP_FLAGS='--vendor="" --dir=%buildroot%_desktopdir --add-category="TerminalEmulator"'
%configure \
--with-app-defaults=%_sysconfdir/X11/app-defaults \
--with-utempter \
--enable-warnings \
--enable-wide-chars \
--enable-dec-locator \
--enable-narrowproto \
--disable-full-tgetent \
--disable-echo \
#
%make_build all ctlseqs.txt
bzip2 -9fk ctlseqs.txt
%install
%makeinstall_std install-desktop --silent --no-print-directory
mkdir -p %buildroot%_altdir
cat >%buildroot%_altdir/%name <<EOF
%_bindir/xvt %_bindir/xterm 40
EOF
%files
%doc README ctlseqs.txt.* %name.log.html
%attr(2711,root,utempter) %_bindir/%name
%_bindir/uxterm
%_bindir/koi8rxterm
%_bindir/resize
%_man1dir/resize.1.*
%_man1dir/%name.1.*
%_man1dir/uxterm.1.*
%_man1dir/koi8rxterm.1.*
%config(noreplace) %_sysconfdir/X11/app-defaults/*
%_altdir/%name
%_desktopdir/*.desktop
%_pixmapsdir/*.xpm
%changelog
…
Полный changelog можно просмотреть здесь