SPECS: nagios-plugin-check_memcached.spec - Module::AutoInstall accepts --s...

glen glen at pld-linux.org
Wed Feb 11 08:01:17 CET 2009


Author: glen                         Date: Wed Feb 11 07:01:17 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- Module::AutoInstall accepts --skipdeps. LP#327917

---- Files affected:
SPECS:
   nagios-plugin-check_memcached.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/nagios-plugin-check_memcached.spec
diff -u SPECS/nagios-plugin-check_memcached.spec:1.6 SPECS/nagios-plugin-check_memcached.spec:1.7
--- SPECS/nagios-plugin-check_memcached.spec:1.6	Wed Feb 11 07:43:57 2009
+++ SPECS/nagios-plugin-check_memcached.spec	Wed Feb 11 08:01:11 2009
@@ -1,4 +1,9 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	autodeps	# don't BR packages needed only for resolving deps
+%bcond_without	tests	# do not perform "make test"
+#
 %define		plugin	check_memcached
 %include	/usr/lib/rpm/macros.perl
 Summary:	Nagios plugin to observe memcached
@@ -12,14 +17,15 @@
 Source0:	http://www.cpan.org/modules/by-module/Nagios/Nagios-Plugins-Memcached-%{version}.tar.gz
 # Source0-md5:	99154aa60b099a2563f8773f95fd0646
 URL:		http://search.cpan.org/dist/Nagios-Plugins-Memcached/
-BuildRequires:	perl-Nagios-Plugin
+#BuildRequires:	perl-Nagios-Plugin
 Patch0:		%{name}.patch
-BuildRequires:	perl-Cache-Memcached
-BuildRequires:	perl-Carp-Clan
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+#BuildRequires:	perl-Cache-Memcached
+#BuildRequires:	perl-Carp-Clan
+%endif
 Requires:	nagios-core
-Requires:	perl-Cache-Memcached
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -58,6 +64,7 @@
 
 %build
 %{__perl} Makefile.PL \
+	--skipdeps \
 	INSTALLDIRS=vendor
 %{__make}
 
@@ -91,6 +98,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2009/02/11 07:01:11  glen
+- Module::AutoInstall accepts --skipdeps. LP#327917
+
 Revision 1.6  2009/02/11 06:43:57  glen
 - avoid searching and installing modules from CPAN; rel 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nagios-plugin-check_memcached.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list