2 # - system Doctrine: phpdoctrine.spec
3 # - forum thread: http://forums.cacti.net/viewtopic.php?t=26540
5 %define php_min_version 5.2.1
6 %include /usr/lib/rpm/macros.php
7 Summary: Nagios Plugin for Cacti (NPC)
8 Summary(pl.UTF-8): Wtyczka do Cacti - NPC
13 Group: Applications/WWW
14 #Source0: http://downloads.sourceforge.net/gibtmirdas/npc-%{version}.tar.gz
15 Source0: npc-%{version}.tar.gz
16 # Source0-md5: 7b30302c544f10ed73cff406fda14499
17 URL: https://trac.assembla.com/npc/
18 BuildRequires: rpmbuild(macros) >= 1.553
19 Requires: cacti >= 0.8.7b
20 Requires: cacti(pia) >= 2.0
21 Requires: nagios >= 3.0
22 Requires: php-common >= 4:%{php_min_version}
24 Requires: nagios-ndoutils >= 1.4b7
28 Requires: php-mbstring
33 Requires: php-simplexml
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define cactidir /usr/share/cacti
39 %define plugindir %{cactidir}/plugins/%{plugin}
40 %define moduledir %{_libdir}/nagios/modules
42 %define _noautoreq pear
45 The purpose of NPC is to be a complete web based UI replacement to
46 Nagios while fully integrating into Cacti using the Cacti Plugin
47 Architecture. This integration will provide a single point of access
48 for trending and alert monitoring.
50 %description -l pl.UTF-8
51 Wtyczka do Cacti - zamiennik interfejsu użytkownika dla Nagiosa
56 mv %{plugin}/*.debug .
57 mv %{plugin}/build.xml .
58 mv %{plugin}/{README,LICENSE} .
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{plugindir}
64 cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)