]>
Commit | Line | Data |
---|---|---|
55c2eab6 ER |
1 | # NOTE: existing plugins http://forums.cacti.net/viewtopic.php?t=14985 |
2 | %define plugin PLUGIN_NAME | |
3 | %define php_min_version 5.0.0 | |
55c2eab6 ER |
4 | Summary: - |
5 | Name: cacti-plugin-%{plugin} | |
6 | Version: 0.1 | |
7 | Release: 0.1 | |
8 | License: GPL v2 | |
9 | Group: Applications/WWW | |
10 | Source0: http://docs.cacti.net/_media/plugin:%{plugin}-v%{version}-1.tgz | |
11 | # Source0-md5: a114638444967822e498ca28a81119e9 | |
12 | URL: http://docs.cacti.net/plugin:PLUGIN_NAME | |
13 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
14 | BuildRequires: rpmbuild(macros) >= 1.554 | |
15 | # for %%undos macro | |
16 | BuildRequires: rpmbuild(macros) >= 1.553 | |
80d95dc9 | 17 | Requires: cacti |
55c2eab6 ER |
18 | Requires: cacti(pia) >= 2.0 |
19 | Requires: php-common >= 4:%{php_min_version} | |
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 | ||
28 | %prep | |
29 | %setup -qc | |
30 | mv %{plugin}/{LICENSE,README} . | |
31 | ||
32 | #%undos -f php,inc | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | install -d $RPM_BUILD_ROOT%{plugindir} | |
37 | cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir} | |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %files | |
43 | %defattr(644,root,root,755) | |
44 | %doc README | |
45 | %{plugindir} |