]>
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 | |
58b78444 | 14 | BuildRequires: rpmbuild(macros) >= 1.745 |
80d95dc9 | 15 | Requires: cacti |
55c2eab6 ER |
16 | Requires: cacti(pia) >= 2.0 |
17 | Requires: php-common >= 4:%{php_min_version} | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %define cactidir /usr/share/cacti | |
22 | %define plugindir %{cactidir}/plugins/%{plugin} | |
23 | ||
24 | %description | |
25 | ||
26 | %prep | |
27 | %setup -qc | |
28 | mv %{plugin}/{LICENSE,README} . | |
29 | ||
30 | #%undos -f php,inc | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | install -d $RPM_BUILD_ROOT%{plugindir} | |
35 | cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir} | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %files | |
41 | %defattr(644,root,root,755) | |
42 | %doc README | |
43 | %{plugindir} |