File monitoring-plugins-ssl_cert.spec of Package monitoring-plugins-ssl_cert

#
# spec file for package monitoring-plugins-ssl_cert
#
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
#
# 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 realname check_ssl_cert
Name:           monitoring-plugins-ssl_cert
Version:        1.106.0
Release:        0
Summary:        An Icinga/Nagios plugin to check X.509 certificates
License:        GPL-3.0-or-later
Group:          System/Monitoring
URL:            https://matteocorti.github.io/check_ssl_cert/
Source0:        https://github.com/matteocorti/check_ssl_cert/archive/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires:  nagios-rpm-macros
Requires:       curl
Requires:       expect
Requires:       openssl
Requires:       perl(Date::Parse)
Recommends:     bind-utils
BuildArch:      noarch

%description
Checks an X.509 certificate:
 - checks if the server is running and delivers a valid certificate
 - checks if the CA matches a given pattern
 - checks the validity
 - checks SSL Labs grade

%prep
%setup -q -n %{realname}-%{version}

%build

%install
make DESTDIR=%{buildroot}%{nagios_plugindir} MANDIR=%{buildroot}%{_mandir} install

%check
#make test

%files
%license COPYING COPYRIGHT
%doc AUTHORS ChangeLog NEWS README.md TODO
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_ssl_cert
%{_mandir}/man1/check_ssl_cert.1%{?ext_man}

%changelog