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