SPECS: nagircbot.spec - should work with any nagios core (nagios, ...
glen
glen at pld-linux.org
Mon Nov 20 09:29:09 CET 2006
Author: glen Date: Mon Nov 20 08:29:09 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- should work with any nagios core (nagios, nrpe)
- fix initscript deps
- pass cc,cflags,ldflags
- move daemon to sbindir
---- Files affected:
SPECS:
nagircbot.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/nagircbot.spec
diff -u SPECS/nagircbot.spec:1.1 SPECS/nagircbot.spec:1.2
--- SPECS/nagircbot.spec:1.1 Mon Nov 20 00:32:26 2006
+++ SPECS/nagircbot.spec Mon Nov 20 09:29:04 2006
@@ -12,9 +12,10 @@
Source2: %{name}.sysconfig
URL: http://www.vanheusden.com/nagircbot/
BuildRequires: libstdc++-devel
-BuildRequires: rpmbuild(macros) >= 1.228
+BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
-Requires: nagios
+Requires: nagios-core
+Requires: rc-scripts
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -27,12 +28,17 @@
%setup -q
%build
-%{__make}
+%{__make} \
+ CC="%{__cc}" \
+ CXX="%{__cxx}" \
+ DEBUG="%{rpmcxxflags}" \
+ LDFLAGS="%{rpmldflags} -lstdc++"
+
%install
rm -rf $RPM_BUILD_ROOT
-install -D %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
+install -D %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
@@ -45,16 +51,16 @@
%preun
if [ "$1" = "0" ]; then
- %service %{name} stop
- /sbin/chkconfig --del %{name}
+ %service %{name} stop
+ /sbin/chkconfig --del %{name}
fi
%files
%defattr(644,root,root,755)
%doc readme.txt
-%attr(755,root,root) %{_bindir}/*
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
-%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nagircbot
+%attr(755,root,root) %{_sbindir}/nagircbot
+%attr(754,root,root) /etc/rc.d/init.d/nagircbot
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -62,6 +68,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2006/11/20 08:29:04 glen
+- should work with any nagios core (nagios, nrpe)
+- fix initscript deps
+- pass cc,cflags,ldflags
+- move daemon to sbindir
+
Revision 1.1 2006/11/19 23:32:26 undefine
- initial
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/nagircbot.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list