]>
Commit | Line | Data |
---|---|---|
36b0730d ER |
1 | # TODO |
2 | # - bundles jquery v1.6.3 | |
3 | # - bundles jquery-autocomplete 1.1 | |
4 | %define plugin cycle | |
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} | |
14f5d140 | 9 | Version: 2.3 |
acd14c42 | 10 | Release: 2 |
36b0730d ER |
11 | License: GPL v2 |
12 | Group: Applications/WWW | |
13 | Source0: http://docs.cacti.net/_media/plugin:%{plugin}-v%{version}-1.tgz | |
14f5d140 | 14 | # Source0-md5: 0ced9905198288b142ed27bb83251264 |
36b0730d ER |
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 | |
acd14c42 ER |
20 | Requires: php(core) >= %{php_min_version} |
21 | Requires: php(date) | |
22 | Requires: php(json) | |
23 | Requires: php(pcre) | |
36b0730d ER |
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 automatically view the Cacti graphs one by | |
32 | one after a specified time delay. | |
33 | ||
34 | %prep | |
35 | %setup -qc | |
36 | mv %{plugin}/{LICENSE,README} . | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT%{plugindir} | |
41 | cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir} | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %doc README | |
49 | %{plugindir} |