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

#
# spec file for package monitoring-plugins-yum
#
# Copyright (c) 2014 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           monitoring-plugins-yum
Summary:        Reporting the Update Status via yum
Version:        0.2
Release:        1
Url:            https://github.com/harisekhon/nagios-plugins
License:        BSD-4-Clause
Group:          System/Monitoring
Source0:        check_yum.pl
Source1:        LICENSE
Source2:        HariSekhonUtils.pm
Source3:        tlds-alpha-by-domain.txt
Source4:        custom_tlds.txt
BuildRequires:  nagios-rpm-macros
Requires:       perl(JSON) perl(Term::ReadKey) perl(Sys::Syslog)
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
check_lsi_raid reports the raidstatus of lsi raids based on the results of
storcli. 

%prep
%setup -q -T -c %{name}
install -m644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .

%build

%install
install -D -m755 check_yum.pl %{buildroot}/%{nagios_plugindir}/check_yum
install -d %{buildroot}/%{nagios_plugindir}/lib
install -d %{buildroot}/%{nagios_plugindir}/lib/resources
install -m644 HariSekhonUtils.pm %{buildroot}/%{nagios_plugindir}/lib
install -m644 tlds-alpha-by-domain.txt custom_tlds.txt %{buildroot}/%{nagios_plugindir}/lib/resources


%files 
%defattr(-,root,root)
%doc LICENSE
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_yum
%{nagios_plugindir}/lib

%changelog
openSUSE Build Service is sponsored by