File xvt.spec of Package xvt

# vim: set sw=4 ts=4 et nu:
#
# spec file for package xvt
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           xvt
Version:        3.0.6
Release:        0
Summary:        X terminal-emulator similar to xterm, but smaller
License:        BSD
Group:          System/X11/Terminals
URL:            https://codeberg.org/BSDforge/xvt#about
Source0:        https://codeberg.org/BSDforge/xvt/archive/%{name}-%{version}.tar.gz
Source2:        xvt.desktop
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  libXt-devel
BuildRequires:  libtool
BuildRequires:  make
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
%if 0%{?suse_version} >= 1000
BuildRequires:  pkgconfig(x11)
%else
BuildRequires:  XFree86-devel
%endif

%description
xvt is an X terminal-emulator that is designed to be more or less compatible
with xterm while using much less swap space. It is mainly intended for use at
sites which use large numbers of X terminals but may also be useful on single
workstations that are short of memory. The main way that xvt achieves its small
size is by avoiding the use of the X toolkit.

If you are looking for a more featureful terminal-emulator than xvt, but one
which still uses less swap space than xterm, consider rxvt-unicode.

Features of xterm which xvt does not support include:
- Tektronix 4014 emulation
- Session logging
- Pop-up menus.  The only one of xterm's popup menu commands that
  is provided in xvt is displaying and hiding of the scrollbar
  and this is done simply by pressing any mouse key in the window
  with the CONTROL key held down.
- Toolkit style configurability.  In particular, xvt does not
  allow the user to remap the mouse or keyboard keys.

Features which are supported include:
- VT100 emulation.  Most of the main escape sequences are supported --
  certainly all those used by the standard screen based UNIX
  applications.
- Lines that scroll off the top of the window are saved and can be
  scrolled back with a scrollbar.
- Text selection and insertion including double and triple click for
  words and lines.

%prep
%autosetup -n %{name}

%build
export SUSE_ASNEEDED=0
%configure

%make_build \
    CFLAGS="%{optflags} -DLINUX" \
    LDFLAGS="-lutil -L/usr/X11R6/%{_lib}"

%install
%make_install

install -D -m0644 "%{SOURCE2}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" System TerminalEmulator

rm %{buildroot}%{_bindir}/xvt-%{version}

%files
%{_bindir}/xvt
%{_mandir}/man1/xvt.1%{?ext_man}
%{_datadir}/applications/%{name}.desktop
%{_bindir}/rclock
%{_mandir}/man1/rclock.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by