File tinyssh.spec of Package tinyssh
#
# spec file for package tinyssh
#
# Copyright (c) 2022 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: tinyssh
Version: 20220801
Release: 0
Summary: A minimalistic SSH server which implements only a subset of SSHv2 features
License: CC0-1.0
Group: Productivity/Networking/SSH
URL: https://tinyssh.org/
Source: https://github.com/janmojzis/tinyssh/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
%description
tinyssh is a minimalistic SSH server which implements only a subset of SSHv2
features. It supports only secure cryptography (minimum 128-bit security,
protected against cache-timing attacks) and doesn't implement unnecessary
features (such as SSH1 protocol, compression, ...) or older crypto (such as
RSA, DSA, HMAC-MD5, HMAC-SHA1, 3DES, RC4, ...). tinysshd doesn't implement
unsafe features (such as password or hostbased authentication) or doesn't
use dynamic memory allocation (no allocation failures, etc.)
%prep
%setup -q
echo %{optflags} > conf-cflags
echo %{_sbindir} > conf-bin
echo %{_mandir} > conf-man
echo gcc > conf-cc
%build
%make_build
%install
%make_install
%files
%license LICENCE
%doc README*
%{_sbindir}/tinysshd
%{_sbindir}/tinysshd-makekey
%{_sbindir}/tinysshd-printkey
%{_mandir}/man8/tinysshd-makekey.8%{?ext_man}
%{_mandir}/man8/tinysshd-printkey.8%{?ext_man}
%{_mandir}/man8/tinysshd.8%{?ext_man}
%{_mandir}/man8/tinysshnoneauthd.8%{?ext_man}
%changelog