File monitoring-plugins-ssl_cert.spec of Package monitoring-plugins-ssl_cert
#
# spec file for package monitoring-plugins-ssl_cert
#
# Copyright (c) 2019-2025, 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: 2.94.0
Release: 0
Summary: An Icinga/Nagios plugin to check X.509 certificates
License: GPL-3.0-or-later
Group: System/Monitoring
URL: https://github.com/matteocorti/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: bc
Requires: perl(Date::Parse)
Recommends: bind-utils
Recommends: nmap
Recommends: java-openjdk-headless
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.md COPYRIGHT.md
%doc AUTHORS.md ChangeLog NEWS.md README.md SECURITY.md RELEASE_NOTES.md
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_ssl_cert
%{_mandir}/man1/check_ssl_cert.1%{?ext_man}
%changelog