A new user interface for you! Read more...

File mosh.spec of Package mosh

#
# spec file for package mosh
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Flavio Castelli.
#
# 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 http://bugs.opensuse.org/
#


Name:           mosh
Version:        1.3.2
Release:        0
Summary:        The mobile shell
License:        GPL-3.0+
Group:          Productivity/Networking/SSH
Url:            https://mosh.org/
Source:         https://mosh.org/%{name}-%{version}.tar.gz
Source1:        %{name}.SuSEfirewall
BuildRequires:  gcc-c++
BuildRequires:  ncurses-devel
BuildRequires:  openssl-devel
BuildRequires:  pkgconfig
BuildRequires:  utempter-devel
BuildRequires:  pkgconfig(bash-completion)
BuildRequires:  pkgconfig(protobuf)
BuildRequires:  pkgconfig(zlib)
Requires:       openssh
Requires:       perl-IO-Socket-INET6
Requires:       perl-IO-Tty

%description
Remote terminal application that allows roaming, supports
intermittent connectivity, and provides intelligent local echo and
line editing of user keystrokes.

Mosh is a replacement for SSH. It's more robust and responsive,
especially over Wi-Fi, cellular, and long-distance links.

%prep
%setup -q

%build
%configure \
  --enable-completion \
  --enable-client     \
  --enable-server     \
  --enable-hardening  \
  --enable-ufw        \
  --disable-examples
make %{?_smp_mflags} V=1

%install
%make_install
# Copy a SUSEfirewall config file.
install -Dpm 0644 %{SOURCE1} \
  %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/mosh

%check
make %{?_smp_mflags} check

%files
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/mosh
%dir %{_sysconfdir}/ufw/
%dir %{_sysconfdir}/ufw/applications.d/
%config %{_sysconfdir}/ufw/applications.d/mosh
%{_bindir}/mosh
%{_bindir}/mosh-client
%{_bindir}/mosh-server
%{_datadir}/bash-completion
%{_mandir}/man1/mosh.1%{?ext_man}
%{_mandir}/man1/mosh-client.1%{?ext_man}
%{_mandir}/man1/mosh-server.1%{?ext_man}

%changelog