]> git.pld-linux.org Git - packages/nagios.git/blobdiff - nagios.spec
- cve reference for 3.0.6
[packages/nagios.git] / nagios.spec
index 929e5c2462b6acee52d68e1f5e8cd079aa85efb3..8e9ba5c3f944ffc1fc76428abae9461441fbbdf2 100644 (file)
@@ -1,17 +1,19 @@
 #
 # Conditional build:
 %bcond_without gd      # without statusmap and trends, which require gd library
+# reeenable when http://tracker.nagios.org/view.php?id=51 is fixed
+%bcond_with    tests
 #
 Summary:       Host/service/network monitoring program
 Summary(pl.UTF-8):     Program do monitorowania serwerów/usług/sieci
 Summary(pt_BR.UTF-8):  Programa para monitoração de máquinas e serviços
 Name:          nagios
-Version:       3.0.5
-Release:       2
+Version:       3.1.2
+Release:       1
 License:       GPL v2
 Group:         Networking
 Source0:       http://dl.sourceforge.net/nagios/%{name}-%{version}.tar.gz
-# Source0-md5: c607ffd5f4574cbea345bdf2e02dc480
+# Source0-md5: f3c60428cba14264c709749182b8d93e
 Source1:       %{name}-apache.conf
 Source2:       %{name}.init
 Source3:       %{name}.sysconfig
@@ -140,6 +142,7 @@ Interfejs CGI dla Nagiosa.
 Summary:       Default Nagios theme
 Summary(pl.UTF-8):     Domyślny motyw Nagiosa
 Group:         Applications/WWW
+Requires:      webserver(php)
 Requires:      nagios-cgi = %{version}-%{release}
 Provides:      nagios-theme
 Obsoletes:     nagios-theme
@@ -190,17 +193,21 @@ cp -f /usr/share/automake/config.sub .
 %{__aclocal}
 %{__autoconf}
 %configure \
+       --datarootdir=%{_datadir} \
        --with-nagios-user=%{name} \
        --with-nagios-grp=%{name} \
        --with-command-user=%{name} \
        --with-command-grp=%{name} \
        --with-lockfile=%{_localstatedir}/%{name}.pid \
        --with-ping_command='/bin/ping -n %%s -c %%d' \
-       --enable-event-broker \
-       %{!?with_gd:--disable-statusmap --disable-trends}
+       %{!?with_gd:--disable-statusmap --disable-trends} \
+       %{?with_tests:--enable-libtap} \
+       --enable-event-broker
 
 %{__make} all
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{_webapps}/%{_webapp}} \
@@ -468,6 +475,7 @@ fi
 %attr(755,root,root) %{_sbindir}/*.cgi
 
 %dir %{_datadir}
+%dir %{_datadir}/includes
 %dir %{_datadir}/images
 %dir %{_datadir}/stylesheets
 %{_datadir}/favicon.ico
@@ -479,7 +487,8 @@ fi
 
 %files theme-default
 %defattr(644,root,root,755)
-%{_datadir}/*.html
+%{_datadir}/*.php
+%{_datadir}/includes/*
 %{_datadir}/images/*
 %{_datadir}/stylesheets/*
 
This page took 0.025069 seconds and 4 git commands to generate.