Changes of Revision 3
[-] | Added | nagios-plugins-zypper.spec |
x 1
2 +# 3 +# spec file for package nagios-plugins-zypper 4 +# 5 +# This file and all modifications and additions to the pristine 6 +# package are under the same license as the package itself. 7 +# 8 + 9 +# norootforbuild 10 + 11 +Name: nagios-plugins-zypper 12 +Summary: Nagios plugin for checking software updates 13 +Version: 0.1 14 +Release: 1 15 +Url: http://en.opensuse.org/nagios-plugins-zypper 16 +License: GPL v2 only 17 +Group: System/Monitoring 18 +Source0: check_zypper.pl 19 +%if 0%{?suse_version} > 1010 20 +# nagios can execute the script with embedded perl 21 +Recommends: perl 22 +%endif 23 +Requires: zypper 24 +BuildArch: noarch 25 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 26 +%define libexecdir %_prefix/lib/nagios/plugins 27 + 28 +%description 29 +This plugin checks for software updates on systems that use 30 +package management systems based on the libzypp command 31 +found in openSUSE 32 + 33 +Authors: 34 +-------- 35 + Lars Vogdt 36 + 37 + 38 +%prep 39 + 40 +%build 41 + 42 +%install 43 +install -D -m755 %{SOURCE0} %buildroot/%libexecdir/check_zypper.pl 44 + 45 +%clean 46 +rm -rf %buildroot 47 + 48 +%files 49 +%defattr(-,root,root) 50 +# avoid build dependecy of nagios - own the dirs 51 +%dir %_prefix/lib/nagios 52 +%dir %libexecdir 53 +%libexecdir/check_zypper.pl 54 + 55 +%changelog 56 |