File monitoring-plugins-saml-entity.spec of Package monitoring-plugins-saml-entity

#
# spec file for monitoring-plugins-saml-entity
#
# Copyright (c) 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/
#


Name:           monitoring-plugins-saml-entity
Version:        1.1.1
Release:        0
Summary:        Monitoring plugin to check various properties of a SAML entity
License:        MIT
Group:          System/Monitoring
URL:            https://github.com/dnmvisser/nagios-check-saml-entity
Source0:        https://github.com/dnmvisser/nagios-check-saml-entity/archive/refs/tags/v%{version}.tar.gz#/nagios-check-saml-entity-%{version}.tar.gz
BuildRequires:  nagios-rpm-macros
Requires:       python3-pysaml2 >= 7.1
Requires:       python3-cryptography >= 43
Requires:       xmlsec1
BuildArch:      noarch

%description
Monitoring plugin to check various properties of a SAML entity, either
from an MDQ, a regular URL, or a local file path.

Currently implemented checks:

* The validity of the TLS certificate of the Assertion Consumer URL.
* The validity of the SAML signing/encryption certificate(s).

%prep
%autosetup -n nagios-check-saml-entity-%{version}
sed -e 's|#!/usr/bin/env python3|#!/usr/bin/python3|g' -i nagios-check-saml-entity.py

%build

%install
install -D -m 0755 nagios-check-saml-entity.py %{buildroot}/%{nagios_plugindir}/check-saml-entity

%files
%license LICENSE
%doc README.md
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check-saml-entity

%changelog
openSUSE Build Service is sponsored by