[pnp4nagios] conditional kohana

Ján ONDREJ ondrejj at fedoraproject.org
Mon Nov 21 10:57:33 UTC 2011


commit 0c38a91e3c1d650c2a3719231928a3c22a5ee0cf
Author: Jan ONDREJ (SAL) <ondrejj(at)salstar.sk>
Date:   Mon Nov 21 11:57:11 2011 +0100

    conditional kohana

 pnp4nagios.spec |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/pnp4nagios.spec b/pnp4nagios.spec
index 74b7915..9edcc57 100644
--- a/pnp4nagios.spec
+++ b/pnp4nagios.spec
@@ -20,7 +20,9 @@ Requires(post): chkconfig
 Requires(preun): chkconfig
 Requires(preun): initscripts
 Requires(postun): initscripts
-
+%if 0%{?fedora}
+Requires:       php-Kohana
+%endif
 
 %description
 PNP is an addon to nagios which analyzes performance data provided by plugins
@@ -125,8 +127,8 @@ fi
 %attr(755,nagios,nagios) %{_localstatedir}/spool/%{name}
 %{_datadir}/nagios/html/%{name}
 %{_mandir}/man8/*
-# kohana
-%{_libdir}/kohana/system
+# no not package Kohana
+%exclude %{_libdir}/kohana
 
 %changelog
 * Wed Nov 16 2011 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.6.15-1


More information about the scm-commits mailing list