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