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

#
# spec file for package monitoring-plugins-gpg
#
# Copyright (c) 2024 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
#


Name:           monitoring-plugins-gpg
Summary:        Check The Validity Of A Given GPG Key
Version:        1.0
Release:        1
Url:            https://github.com/lelutin/nagios-plugins
License:        GPL-3.0-or-later
Group:          System/Monitoring
Source0:        check_gpg
Source1:        LICENSE
BuildRequires:  nagios-rpm-macros
BuildArch:      noarch

%description
This Nagios check program checks the validity of a given GPG key.

Usage: ./check_gpg [--no-refresh] [-w <num_days>] [--gnupg-homedir <path>] <key_id>

%prep
%setup -T -c
cp %{S:0} .
cp %{S:1} .

%build

%install
install -D -m755 check_gpg %buildroot/%{nagios_plugindir}/check_gpg

%files 
%license LICENSE
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_gpg

%changelog
openSUSE Build Service is sponsored by