2 %define php_min_version 5.2.0
3 Summary: Plugin for Cacti - Send Graphs and Text to given mail address(es)
4 Name: cacti-plugin-%{plugin}
8 Group: Applications/WWW
9 Source0: http://docs.cacti.net/_media/plugin:%{plugin}-v%{version}.tgz
10 # Source0-md5: f9e9e706141ac0965574a1ebab4f3d07
11 URL: http://docs.cacti.net/plugin:nectar
12 BuildRequires: rpm-php-pearprov >= 4.4.2-11
13 BuildRequires: rpmbuild(macros) >= 1.554
15 Requires: cacti(pia) >= 2.9
16 Requires: php(core) >= %{php_min_version}
21 Requires: php(session)
22 Obsoletes: cacti-plugin-reports
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define cactidir /usr/share/cacti
27 %define plugindir %{cactidir}/plugins/%{plugin}
30 This plugin allows you to email graphs on a given and selectable
34 - allow both users and admins to create reports
35 - include tree's, text, horizontal rules, and graphs into reports
36 - allows filtering of tree and host content on trees by regular
38 - allow basic formmatting
39 - allow custom css and html to be integrated into the reports
40 - specify different timespans for graphs
41 - schedule reports using different scheduling intervals
42 - basic png2jpeg conversion using php-gd, verified with Linux only
46 mv %{plugin}/{LICENSE,README} .
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{plugindir}
51 cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)