2020-01-24 11:01:15 +01:00
|
|
|
#
|
|
|
|
# spec file for package testssl.sh
|
|
|
|
#
|
2021-05-12 17:05:05 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2020-01-24 11:01:15 +01:00
|
|
|
# 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.
|
|
|
|
|
2020-04-03 22:15:49 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-01-24 11:01:15 +01:00
|
|
|
#
|
|
|
|
|
2020-04-03 22:15:49 +02:00
|
|
|
|
2020-01-24 11:01:15 +01:00
|
|
|
%define _data_dir_name testssl-sh
|
|
|
|
|
|
|
|
Name: testssl.sh
|
2021-10-07 10:00:16 +02:00
|
|
|
Version: 3.0.6
|
2020-01-24 11:01:15 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Testing TLS/SSL Encryption Anywhere On Any Port
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Productivity/Networking/Security
|
2020-04-03 22:15:49 +02:00
|
|
|
URL: https://testssl.sh
|
2021-10-07 10:00:16 +02:00
|
|
|
Source0: https://github.com/drwetter/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2020-01-24 13:36:16 +01:00
|
|
|
Source1: %{name}-rpmlintrc
|
2020-01-24 11:01:15 +01:00
|
|
|
Patch0: testssl.sh-2.9.95-set-install-dir.patch
|
|
|
|
Requires: bash >= 3.2
|
2020-04-03 22:15:49 +02:00
|
|
|
Requires: openssl
|
2020-01-24 11:01:15 +01:00
|
|
|
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
|
2020-07-24 20:54:13 +02:00
|
|
|
%setup -q
|
2020-01-24 11:01:15 +01:00
|
|
|
%patch0 -p1
|
2020-04-03 22:15:49 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
2020-01-24 11:01:15 +01:00
|
|
|
sed -i 's|#!/usr/bin/env bash|#!/usr/bin/bash|g' testssl.sh
|
2020-04-03 22:15:49 +02:00
|
|
|
%else
|
|
|
|
# in Leap 15.x, it's still /bin/bash
|
|
|
|
sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' testssl.sh
|
|
|
|
%endif
|
2020-01-24 11:01:15 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -D -m 0644 -t %{buildroot}/%{_datadir}/%{_data_dir_name}/etc etc/*
|
|
|
|
install -D -m 0755 -t %{buildroot}/%{_bindir} %{name}
|
|
|
|
install -D -m 0644 -T doc/testssl.1 %{buildroot}/%{_mandir}/man1/%{name}.1
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGELOG.md CREDITS.md Readme.md
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/%{_data_dir_name}
|
|
|
|
%{_mandir}/man1/%{name}.1%{ext_man}
|
|
|
|
|
|
|
|
%changelog
|