packages: nagios-plugin-check_tftp/nagios-plugin-check_tftp.spec - add --wi...
glen
glen at pld-linux.org
Wed Jul 28 08:05:19 CEST 2010
Author: glen Date: Wed Jul 28 06:05:19 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- add --with tests
---- Files affected:
packages/nagios-plugin-check_tftp:
nagios-plugin-check_tftp.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_tftp/nagios-plugin-check_tftp.spec
diff -u packages/nagios-plugin-check_tftp/nagios-plugin-check_tftp.spec:1.2 packages/nagios-plugin-check_tftp/nagios-plugin-check_tftp.spec:1.3
--- packages/nagios-plugin-check_tftp/nagios-plugin-check_tftp.spec:1.2 Tue Jul 27 22:18:55 2010
+++ packages/nagios-plugin-check_tftp/nagios-plugin-check_tftp.spec Wed Jul 28 08:05:10 2010
@@ -1,4 +1,8 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
%define plugin check_tftp
Summary: Nagios plugin to check TFTP server
Name: nagios-plugin-%{plugin}
@@ -31,6 +35,11 @@
# fix shebang
%{__sed} -i -e '1s,^#!.*python,#!%{__python},' %{plugin}.py
+%build
+%if %{with tests}
+%{__python} %{plugin}.py --version
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
@@ -52,6 +61,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2010/07/28 06:05:10 glen
+- add --with tests
+
Revision 1.2 2010/07/27 20:18:55 glen
- release 2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_tftp/nagios-plugin-check_tftp.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list