Nagios-plugins-2.0.3 spec file issues
Posted: Wed Aug 06, 2014 9:31 am
I had to make the following changes to the spec file to get it to create an rpm:
Added to Install section:
for i in $(comm -13 %{npdir}/ls-plugins-root-before %{npdir}/ls-plugins-root-after | egrep -v "\.o$|^\.")
do cp %{npdir}/plugins-root/$i $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
done
rm -rf $RPM_BUILD_ROOT/usr/share/locale
Changed files section to look like this:
%files -f %{name}.lang
%doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT THANKS
%doc ChangeLog
Added to Install section:
for i in $(comm -13 %{npdir}/ls-plugins-root-before %{npdir}/ls-plugins-root-after | egrep -v "\.o$|^\.")
do cp %{npdir}/plugins-root/$i $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
done
rm -rf $RPM_BUILD_ROOT/usr/share/locale
Changed files section to look like this:
%files -f %{name}.lang
%doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT THANKS
%doc ChangeLog