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

File testssl.sh.spec of Package testssl.sh

#
# spec file for package testssl.sh
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 Matthias Fehring <buschmann23@opensuse.org>
#
# 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/
#

%define _tar_version 3.0rc5
%define _data_dir_name testssl-sh

Name:           testssl.sh
Version:        2.9.95
Release:        0
Summary:        Testing TLS/SSL Encryption Anywhere On Any Port
License:        GPL-2.0-or-later
Group:          Productivity/Networking/Security
Url:            https://testssl.sh
Source0:        https://github.com/drwetter/%{name}/archive/%{_tar_version}.tar.gz#/%{name}-%{_tar_version}.tar.gz
Patch0:         testssl.sh-2.9.95-set-install-dir.patch
Requires:       openssl
Requires:       bash >= 3.2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
testssl.sh is a free command line tool which checks a server's service on
any port for the support of TLS/SSL ciphers, protocols as well as some
cryptographic flaws.

%prep
%setup -q -n %{name}-%{_tar_version}
%patch0 -p1

%build

%install
install -d -m 0755 %{buildroot}/%{_datadir}/%{_data_dir_name}/etc
install -m 0644 -t %{buildroot}/%{_datadir}/%{_data_dir_name}/etc etc/*
install -d -m 0755 %{buildroot}/%{_bindir}
install -m 0755 -t %{buildroot}/%{_bindir} %{name}
install -d -m 0755 %{buildroot}/%{_mandir}/man1
install -m 0644 -T doc/testssl.1 %{buildroot}/%{_mandir}/man1/%{name}.1


%files
%defattr(-,root,root)
%doc CREDITS.md Readme.md
%if 0%{?suse_version} < 1500
%doc LICENSE
%else
%license LICENSE
%endif
%{_bindir}/%{name}
%{_datadir}/%{_data_dir_name}
%{_mandir}/man1/%{name}.1%{ext_man}

%changelog