File monitoring-plugins-printer_details.spec of Package monitoring-plugins-printer_all

# spec file for package monitoring-plugins-printer_details
# 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

Name:           monitoring-plugins-printer_details
Version:        20121023
Release:        1
License:        GPL-2.0+
Summary:        All in one printer check suitable for most devices
Group:          System/Monitoring
Source0:        check_printer
Source1:        monitoring-plugins-printer_details-README
BuildRequires:  nagios-rpm-macros
Requires:       php-snmp
Provides:       nagios-plugins-printer_details = %{version}-%{release}
Obsoletes:      nagios-plugins-printer_details < %{version}-%{release}
Requires:       php-snmp 
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

This plugin can monitor printers of multiple vendors (HP, Kyocera, Ricoh, Nec,
Lexmark, NRG ...). It supports private mibs of Ricoh and Kyocera. Can read
papertray status, toner/ink status, hardware part status, internal counters and
alert status. For Kyocera it can read accounting/Kostenstellen too. Provides

mkdir -p %{buildroot}%{nagios_plugindir}
install -m755 %{SOURCE0} %{buildroot}%{nagios_plugindir}/check_printer_details
install -Dm644 %{SOURCE1} %{buildroot}%{_defaultdocdir}/%{name}/README.SUSE

rm -rf %{buildroot}

%doc %{_defaultdocdir}/%{name}/README.SUSE
%dir %{_defaultdocdir}/%{name}
%dir %{nagios_libdir}
%dir %{nagios_plugindir}