]> git.pld-linux.org Git - packages/cacti-plugin-discovery.git/blob - cacti-plugin-discovery.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cacti-plugin-discovery.git] / cacti-plugin-discovery.spec
1 %define         plugin discovery
2 %define         php_min_version 5.0.0
3 Summary:        Plugin for Cacti - Discovery
4 Summary(pl.UTF-8):      Wtyczka do Cacti - Discovery
5 Name:           cacti-plugin-%{plugin}
6 Version:        1.5
7 Release:        2
8 License:        GPL v2
9 Group:          Applications/WWW
10 Source0:        http://docs.cacti.net/_media/plugin:%{plugin}-v%{version}-1.tgz
11 # Source0-md5:  ed283c999d5c71a99f1e48d71d8f9913
12 URL:            http://docs.cacti.net/plugin:discovery
13 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
14 Requires:       cacti
15 Requires:       cacti(pia) >= 3.1
16 Requires:       php(core) >= %{php_min_version}
17 Requires:       php(date)
18 Requires:       php(mysql)
19 Requires:       php(pcre)
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 This plugin adds the ability to auto-discover devices on a subnet that
28 are not monitored by Cacti and and tells you if they are SNMP enabled.
29
30 %description -l pl.UTF-8
31 Wtyczka do Cacti dodająca możliwość automatycznego wykrywania urządzeń
32 w podsieci jeszcze nie monitorowanych przez Cacti i informująca, czy
33 urządzenia mają włączone SNMP.
34
35 %prep
36 %setup -qc
37 mv %{plugin}/{LICENSE,README} .
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{plugindir}
42 cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README
50 %{plugindir}
This page took 0.555599 seconds and 3 git commands to generate.