Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37696109
en ru br
ALT Linux repositórios
S:379-alt2
5.0: 241-alt1
4.1: 235-alt1
4.0: 231-alt1
3.0: 202-alt2

Group :: Terminais
RPM: xterm

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

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

Name: xterm
Version: 235
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

Provides: xvt, %_bindir/xvt
PreReq: libutempter >= 1.0.7, alternatives >= 0:0.2.0-alt0.12
BuildPreReq: alternatives groff-base imake libXaw-devel libXft-devel libncurses-devel libutempter-devel libxkbfile-devel xorg-cf-files
BuildRequires: desktop-file-utils

%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

sed -i 's|Exec=xterm|& -name XTerm|' %name.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
%make_install DESTDIR=%buildroot install install-desktop --silent --no-print-directory

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

%post
%register_alternatives %name -- xvt
%update_menus

%postun
%unregister_alternatives %name
%clean_menus

%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

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009