]>
Commit | Line | Data |
---|---|---|
4b944e1a ER |
1 | %define plugin nectar |
2 | %define php_min_version 5.2.0 | |
3 | %include /usr/lib/rpm/macros.php | |
4 | Summary: Plugin for Cacti - Send Graphs and Text to given mail address(es) | |
5 | Name: cacti-plugin-%{plugin} | |
6 | Version: 0.35a | |
7 | Release: 1 | |
8 | License: GPL v2 | |
9 | Group: Applications/WWW | |
10 | Source0: http://docs.cacti.net/_media/plugin:%{plugin}-v%{version}.tgz | |
11 | # Source0-md5: f9e9e706141ac0965574a1ebab4f3d07 | |
12 | URL: http://docs.cacti.net/plugin:nectar | |
13 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
14 | BuildRequires: rpmbuild(macros) >= 1.554 | |
15 | Requires: cacti | |
16 | Requires: cacti(pia) >= 2.9 | |
e5c21efd ER |
17 | Requires: php(core) >= %{php_min_version} |
18 | Requires: php(date) | |
19 | Requires: php(gd) | |
20 | Requires: php(mysql) | |
21 | Requires: php(pcre) | |
22 | Requires: php(session) | |
4b944e1a ER |
23 | Obsoletes: cacti-plugin-reports |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %define cactidir /usr/share/cacti | |
28 | %define plugindir %{cactidir}/plugins/%{plugin} | |
29 | ||
30 | %description | |
31 | This plugin allows you to email graphs on a given and selectable | |
32 | interval | |
33 | ||
34 | Features: | |
35 | - allow both users and admins to create reports | |
36 | - include tree's, text, horizontal rules, and graphs into reports | |
37 | - allows filtering of tree and host content on trees by regular | |
38 | expression | |
39 | - allow basic formmatting | |
40 | - allow custom css and html to be integrated into the reports | |
41 | - specify different timespans for graphs | |
42 | - schedule reports using different scheduling intervals | |
43 | - basic png2jpeg conversion using php-gd, verified with Linux only | |
44 | ||
45 | %prep | |
46 | %setup -qc | |
47 | mv %{plugin}/{LICENSE,README} . | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | install -d $RPM_BUILD_ROOT%{plugindir} | |
52 | cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir} | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc LICENSE README | |
60 | %{plugindir} |