]>
Commit | Line | Data |
---|---|---|
16486a2c ER |
1 | %define plugin autom8 |
2 | %define php_min_version 5.2.0 | |
3 | %include /usr/lib/rpm/macros.php | |
4 | Summary: Automate Creation of Graphs and Tree Entries | |
5 | Name: cacti-plugin-%{plugin} | |
6 | Version: 0.35 | |
7d92c646 | 7 | Release: 5 |
16486a2c ER |
8 | License: GPL v2 |
9 | Group: Applications/WWW | |
10 | Source0: http://docs.cacti.net/_media/plugin:%{plugin}-v%{version}.tgz | |
11 | # Source0-md5: a79e33fd85aff9e7e415771d9331ed9a | |
12 | URL: http://docs.cacti.net/plugin:autom8 | |
13 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
14 | BuildRequires: rpmbuild(macros) >= 1.554 | |
15 | Requires: cacti | |
16 | Requires: cacti(pia) >= 2.4 | |
7d92c646 ER |
17 | Requires: php(mysql) |
18 | Requires: php(pcre) | |
16486a2c | 19 | Requires: php-common >= 4:%{php_min_version} |
16486a2c ER |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define cactidir /usr/share/cacti | |
24 | %define plugindir %{cactidir}/plugins/%{plugin} | |
25 | ||
26 | %description | |
27 | Maintaining a quite decent Cacti installation with lots of devices, | |
28 | graphs and tree items may result in quite a huge amount of | |
29 | administrative work. | |
30 | ||
31 | Using the CLI scripts allows you to write your own scripts to e.g. | |
32 | create Cacti device entries, graphs, tree items and more. This helps | |
33 | e.g. interfacing a CMDB or some other repository that holds | |
34 | information about devices that shall be monitored. | |
35 | ||
36 | %prep | |
37 | %setup -qc | |
38 | mv trunk %{plugin} | |
39 | mv %{plugin}/{LICENSE,README,automate_manual.pdf} . | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | install -d $RPM_BUILD_ROOT%{plugindir} | |
44 | cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir} | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc README automate_manual.pdf | |
52 | %{plugindir} |