]>
Commit | Line | Data |
---|---|---|
364bd9f4 | 1 | %define plugin ntop |
3c2435e7 | 2 | %define php_min_version 5.0.0 |
3c2435e7 | 3 | Summary: Plugin for Cacti - Provides an iFrame to point to your NTop Server |
31f38a8e | 4 | Summary(pl.UTF-8): Wtyczka do Cacti - Ntop |
5b60e5ee | 5 | Name: cacti-plugin-ntop |
3c2435e7 | 6 | Version: 0.2 |
a7654f87 | 7 | Release: 2 |
5b60e5ee MWP |
8 | License: GPL v2 |
9 | Group: Applications/WWW | |
3c2435e7 ER |
10 | Source0: http://docs.cacti.net/_media/plugin:%{plugin}-v%{version}-1.tgz |
11 | # Source0-md5: 29a192e1f935fbb30c7b9bd5384ff78f | |
fa629b25 | 12 | URL: http://docs.cacti.net/plugin:ntop |
5b60e5ee | 13 | BuildRequires: rpm-perlprov |
7df3e9e4 | 14 | BuildRequires: unzip |
3c2435e7 ER |
15 | Requires: cacti >= 0.8.7e |
16 | Requires: cacti(pia) >= 2.0 | |
a7654f87 | 17 | Requires: php(core) >= %{php_min_version} |
5b60e5ee MWP |
18 | BuildArch: noarch |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
364bd9f4 ER |
21 | %define cactidir /usr/share/cacti |
22 | %define plugindir %{cactidir}/plugins/%{plugin} | |
5b60e5ee MWP |
23 | |
24 | %description | |
3c2435e7 | 25 | Provide an iFrame to point to your NTop Server. |
5b60e5ee | 26 | |
e69fdb62 | 27 | %description -l pl.UTF-8 |
04b578de | 28 | Wtyczka do Cacti - Ntop. |
5b60e5ee MWP |
29 | |
30 | %prep | |
3c2435e7 ER |
31 | %setup -qc |
32 | mv %{plugin}/{LICENSE,README} . | |
5b60e5ee MWP |
33 | |
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
364bd9f4 | 36 | install -d $RPM_BUILD_ROOT%{plugindir} |
3c2435e7 | 37 | cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir} |
5b60e5ee MWP |
38 | |
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %files | |
43 | %defattr(644,root,root,755) | |
5bd38bd7 | 44 | %doc README |
364bd9f4 | 45 | %{plugindir} |