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
Nagios-plugins-2.0.3 spec file issues
Re: Nagios-plugins-2.0.3 spec file issues
Thanks for the report! I'll pass this along.
Former Nagios employee
-
- Posts: 1
- Joined: Thu Oct 23, 2014 5:57 pm
Re: Nagios-plugins-2.0.3 spec file issues
This is still broken as of today (10/23/2014). The spec file you're distributing with nagios-plugins 2.0.3 will not build.
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios-plugins-2.0.3 spec file issues
Thanks for the reminder, although it is extremely high on my personal list to do for 2.1, maybe I'll put it on the list for this weekend....
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.