]>
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 | |
4 | %include /usr/lib/rpm/macros.php | |
5 | Summary: - | |
6 | Name: cacti-plugin-%{plugin} | |
7 | Version: 0.1 | |
8 | Release: 0.1 | |
9 | License: GPL v2 | |
10 | Group: Applications/WWW | |
11 | Source0: http://docs.cacti.net/_media/plugin:%{plugin}-v%{version}-1.tgz | |
12 | # Source0-md5: a114638444967822e498ca28a81119e9 | |
13 | URL: http://docs.cacti.net/plugin:PLUGIN_NAME | |
14 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
15 | BuildRequires: rpmbuild(macros) >= 1.554 | |
16 | # for %%undos macro | |
17 | BuildRequires: rpmbuild(macros) >= 1.553 | |
80d95dc9 | 18 | Requires: cacti |
55c2eab6 ER |
19 | Requires: cacti(pia) >= 2.0 |
20 | Requires: php-common >= 4:%{php_min_version} | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %define cactidir /usr/share/cacti | |
25 | %define plugindir %{cactidir}/plugins/%{plugin} | |
26 | ||
27 | %description | |
28 | ||
29 | %prep | |
30 | %setup -qc | |
31 | mv %{plugin}/{LICENSE,README} . | |
32 | ||
33 | #%undos -f php,inc | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | install -d $RPM_BUILD_ROOT%{plugindir} | |
38 | cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir} | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %doc README | |
46 | %{plugindir} |