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

#
# spec file for package monitoring-plugins-nextcloud_security
#
# Copyright (c) 2022, 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-nextcloud-security
Name:           monitoring-plugins-nextcloud_security
Version:        1.0
Release:        0
Summary:        This plugin checks the security level of your Nextcloud instance
License:        Apache-2.0
Group:          System/Monitoring
URL:            https://github.com/sowoi/check-nextcloud-security
#Git-Clone:     https://github.com/sowoi/check-nextcloud-security.git
Source:         https://github.com/sowoi/check-nextcloud-security/archive/refs/tags/v%{version}.tar.gz
BuildRequires:  nagios-rpm-macros
Requires:       python3
Requires:       python3-requests
BuildArch:      noarch

%description
This plugin checks the security level of your Nextcloud instance
with the Nextcloud Security API.

It check uses Nextcloud's own security scan at scan.nextcloud.com to
check if your Nextcloud instance has any known vulnerabilities/risks.

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

%build

%install
install -Dm 0755 src/check_nextcloud_security.py %{buildroot}%{nagios_plugindir}/check_nextcloud_security

%files
%license LICENSE
%doc README.md
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_nextcloud_security

%changelog
openSUSE Build Service is sponsored by