Summary: Nagios plugin check_generic %define name nagios-plugins-generic Name: %{name} %define version 1.0.0 %define release 0.el4.rf Version: %{version} Release: %{release} License: GPL Group: Applications/System URL: http://www.my-plugin.de/wiki/doku.php Source: %{name}-%{version}.tar.gz Packager: Michael Weinberger BuildRoot: /var/tmp/%{name}-buildroot/ BuildArch: noarch Requires: nagios AutoReq: no %changelog * Thu Nov 1 2007 Michael Weinberger - Initial release %description http://www.my-plugin.de/wiki/doku.php/projects:check_generic:start %prep %setup -q -n %{name}-%{version} %build %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-filelist find $RPM_BUILD_ROOT -depth -type f -print |\ sed -e "s@^$RPM_BUILD_ROOT@@g" \ -e "s@^/usr/lib/nagios/plugins/@%attr(0550,nagios,root) &@"\ >> %{name}-%{version}-filelist find $RPM_BUILD_ROOT -depth -type l -print |\ sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist %clean rm -rf $RPM_BUILD_ROOT %pre %post %preun %postun %files -f %{name}-%{version}-filelist %defattr(-,root,root)