]>
Commit | Line | Data |
---|---|---|
4edcb3cf | 1 | # TODO |
9c63e9b7 ER |
2 | # - bundles Doctrine 1.0.7: use system phpdoctrine.spec |
3 | # - bundles Ext JS Library 2.2 | |
9e291d54 | 4 | # - forum thread: http://forums.cacti.net/viewtopic.php?t=26540 |
a2a637f1 | 5 | %define plugin npc |
9e291d54 ER |
6 | %define php_min_version 5.2.1 |
7 | %include /usr/lib/rpm/macros.php | |
8 | Summary: Nagios Plugin for Cacti (NPC) | |
fc68046f | 9 | Summary(pl.UTF-8): Wtyczka do Cacti - NPC |
d35f8256 | 10 | Name: cacti-plugin-npc |
9e291d54 | 11 | Version: 2.0.4 |
9c63e9b7 | 12 | Release: 0.4 |
9e291d54 | 13 | License: GPL v3 |
d35f8256 | 14 | Group: Applications/WWW |
9e291d54 ER |
15 | #Source0: http://downloads.sourceforge.net/gibtmirdas/npc-%{version}.tar.gz |
16 | Source0: npc-%{version}.tar.gz | |
17 | # Source0-md5: 7b30302c544f10ed73cff406fda14499 | |
18 | URL: https://trac.assembla.com/npc/ | |
19 | BuildRequires: rpmbuild(macros) >= 1.553 | |
20 | Requires: cacti >= 0.8.7b | |
21 | Requires: cacti(pia) >= 2.0 | |
22 | Requires: nagios >= 3.0 | |
9e291d54 | 23 | Requires: nagios-ndoutils >= 1.4b7 |
4b58f0b0 ER |
24 | Requires: php(core) >= %{php_min_version} |
25 | Requires: php(ctype) | |
26 | Requires: php(date) | |
27 | Requires: php(iconv) | |
28 | Requires: php(json) | |
29 | Requires: php(mbstring) | |
30 | Requires: php(mysql) | |
31 | Requires: php(mysqli) | |
32 | Requires: php(pcre) | |
33 | Requires: php(session) | |
34 | Requires: php(simplexml) | |
35 | Requires: php(spl) | |
9e291d54 | 36 | BuildArch: noarch |
d35f8256 MWP |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
a2a637f1 ER |
39 | %define cactidir /usr/share/cacti |
40 | %define plugindir %{cactidir}/plugins/%{plugin} | |
41 | %define moduledir %{_libdir}/nagios/modules | |
d35f8256 | 42 | |
9e291d54 ER |
43 | %define _noautoreq pear |
44 | ||
d35f8256 | 45 | %description |
9e291d54 ER |
46 | The purpose of NPC is to be a complete web based UI replacement to |
47 | Nagios while fully integrating into Cacti using the Cacti Plugin | |
48 | Architecture. This integration will provide a single point of access | |
49 | for trending and alert monitoring. | |
d35f8256 | 50 | |
4e927f40 JR |
51 | %description -l pl.UTF-8 |
52 | Wtyczka do Cacti - zamiennik interfejsu użytkownika dla Nagiosa | |
7954e233 | 53 | zintegrowany z Cacti. |
d35f8256 MWP |
54 | |
55 | %prep | |
9e291d54 ER |
56 | %setup -qc |
57 | mv %{plugin}/*.debug . | |
58 | mv %{plugin}/build.xml . | |
59 | mv %{plugin}/{README,LICENSE} . | |
60 | %undos -f php README | |
e5f34786 | 61 | |
9c63e9b7 ER |
62 | # dev code, not needed for production functionality |
63 | cd %{plugin} | |
64 | %{__rm} controllers/layoutDev.php | |
65 | %{__rm} -r js/src | |
66 | %{__rm} js/ext/*-debug.js | |
67 | %{__rm} js/ext/resources/resources.jsb | |
68 | ||
d35f8256 MWP |
69 | %install |
70 | rm -rf $RPM_BUILD_ROOT | |
9e291d54 ER |
71 | install -d $RPM_BUILD_ROOT%{plugindir} |
72 | cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir} | |
e5f34786 | 73 | |
d35f8256 MWP |
74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
9e291d54 | 79 | %doc README |
e41da878 ER |
80 | %dir %{plugindir} |
81 | %attr(755,root,root) %{plugindir}/cli.php | |
82 | %attr(755,root,root) %{plugindir}/perfdata.php | |
83 | %{plugindir}/config.php | |
84 | %{plugindir}/index.php | |
85 | %{plugindir}/nagioscmd.php | |
86 | %{plugindir}/npc.php | |
87 | %{plugindir}/setup.php | |
88 | %{plugindir}/top_graph_header.php | |
89 | %{plugindir}/upgrade_schema.sql | |
90 | %{plugindir}/controllers | |
91 | %{plugindir}/css | |
92 | %{plugindir}/images | |
93 | %{plugindir}/js | |
94 | %{plugindir}/lib | |
95 | %{plugindir}/models | |
96 | %{plugindir}/queries |