]>
Commit | Line | Data |
---|---|---|
26231119 | 1 | %define plugin pollperf |
f4810707 ER |
2 | %define php_min_version 5.0.0 |
3 | %include /usr/lib/rpm/macros.php | |
782941c0 | 4 | Summary: Plugin for Cacti - pollperf |
523d8257 | 5 | Summary(pl.UTF-8): Wtyczka do Cacti - pollperf |
f4810707 | 6 | Name: cacti-plugin-%{plugin} |
782941c0 | 7 | Version: 0.1 |
f4810707 | 8 | Release: 1 |
782941c0 MWP |
9 | License: GPL v2 |
10 | Group: Applications/WWW | |
f4810707 ER |
11 | Source0: http://forums.cacti.net/download/file.php?id=4956#/%{plugin}.zip |
12 | # Source0-md5: 50aff104fa7b232dfa9ac62bdacbdb83 | |
13 | URL: http://forums.cacti.net/viewtopic.php?t=12369 | |
14 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
782941c0 | 15 | Requires: cacti |
f4810707 ER |
16 | Requires: php-common >= 4:%{php_min_version} |
17 | Requires: php-date | |
18 | Requires: php-pcre | |
782941c0 MWP |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
26231119 ER |
22 | %define cactidir /usr/share/cacti |
23 | %define plugindir %{cactidir}/plugins/%{plugin} | |
782941c0 MWP |
24 | |
25 | %description | |
f4810707 | 26 | Analyzing Poller Performance from DEBUG Log. |
782941c0 | 27 | |
bd489e2e JR |
28 | %description -l pl.UTF-8 |
29 | Wtyczka do Cacti - wtyczka sprawdzająca wydajność pobierania | |
35ad8e08 | 30 | informacji. |
782941c0 MWP |
31 | |
32 | %prep | |
f4810707 | 33 | %setup -qc |
782941c0 MWP |
34 | |
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
26231119 | 37 | install -d $RPM_BUILD_ROOT%{plugindir} |
f4810707 | 38 | cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir} |
782941c0 MWP |
39 | |
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
26231119 | 45 | %{plugindir} |