File mosh.spec of Package mosh

#
# spec file for package mosh
#
# Copyright (c) 2015 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.2.5
Release:        0
Summary:        The mobile shell
License:        GPL-3.0+
Group:          Productivity/Networking/SSH
Url:            http://mosh.mit.edu/
Source:         http://mosh.mit.edu/%{name}-%{version}.tar.gz
Source1:        %{name}.SuSEfirewall
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  ncurses-devel
BuildRequires:  openssl-devel
BuildRequires:  pkg-config
BuildRequires:  protobuf-devel
BuildRequires:  utempter-devel
BuildRequires:  zlib-devel
Requires:       openssh
Requires:       perl-IO-Socket-INET6
Requires:       perl-IO-Tty
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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
autoreconf -fi
%configure \
  --enable-completion \
  --enable-client     \
  --enable-server     \
  --disable-examples  \
  --enable-hardening  \
  --enable-ufw
make %{?_smp_mflags}

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

%files
%defattr(-,root,root)
%config %{_sysconfdir}/bash_completion.d/mosh
%config(noreplace) %{_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
%{_mandir}/man1/mosh.1%{?ext_man}
%{_mandir}/man1/mosh-client.1%{?ext_man}
%{_mandir}/man1/mosh-server.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by