2 # - bundles jquery v1.6.3
3 # - bundles jquery-autocomplete 1.1
5 %define php_min_version 5.2.0
6 %include /usr/lib/rpm/macros.php
7 Summary: Automatically cycle through cacti graphs
8 Name: cacti-plugin-%{plugin}
12 Group: Applications/WWW
13 Source0: http://docs.cacti.net/_media/plugin:%{plugin}-v%{version}-1.tgz
14 # Source0-md5: 0ced9905198288b142ed27bb83251264
15 URL: http://docs.cacti.net/plugin:cycle
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.554
18 Requires: cacti >= 0.8.7e-8
19 Requires: cacti(pia) >= 2.0
20 Requires: php-common >= 4:%{php_min_version}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define cactidir /usr/share/cacti
28 %define plugindir %{cactidir}/plugins/%{plugin}
31 This plugin allows you to automatically view the Cacti graphs one by
32 one after a specified time delay.
36 mv %{plugin}/{LICENSE,README} .
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{plugindir}
41 cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)