]> git.pld-linux.org Git - packages/cacti-plugin-hostinfo.git/blob - cacti-plugin-hostinfo.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cacti-plugin-hostinfo.git] / cacti-plugin-hostinfo.spec
1 %define         plugin hostinfo
2 %define         php_min_version 5.0.0
3 %include        /usr/lib/rpm/macros.php
4 Summary:        Plugin for Cacti -  Host info
5 Summary(pl.UTF-8):      Wtyczka do Cacti -  Host info
6 Name:           cacti-plugin-%{plugin}
7 Version:        0.2
8 Release:        7
9 License:        GPL v2
10 Group:          Applications/WWW
11 Source0:        http://mirror.cactiusers.org/downloads/plugins/%{plugin}-%{version}.zip
12 # Source0-md5:  e06cda8197ed5677d918737321528394
13 URL:            http://www.cactiusers.org/
14 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
15 BuildRequires:  unzip
16 Requires:       cacti
17 Requires:       php(core) >= %{php_min_version}
18 Requires:       php(mysql)
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         cactidir                /usr/share/cacti
23 %define         plugindir               %{cactidir}/plugins/%{plugin}
24
25 %description
26 Plugin for Cacti - This plugin will give you version information about
27 your Cacti server. It outputs everything from Web server information,
28 to PHP, MySQL, RRDtool, and SNMP versions. It will also give you the
29 information in BBCode format to easily allow you to post it to a
30 forum.
31
32 %description -l pl.UTF-8
33 Wtyczka do Cacti wyświetlająca informacje o serwerze na którym
34 uruchomiono cacti. Podaje wszystkie informacje począwszy od serwera
35 WWW, a kończąc na wersjach PHP, MySQL-a, RRDtoola i SNMP. Podaje także
36 informacje w formacie BBCode, umożliwiając łatwe wysłanie ich na
37 forum.
38
39 %prep
40 %setup -qc
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{plugindir}
45 cp -p *.php $RPM_BUILD_ROOT%{plugindir}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %{plugindir}
This page took 0.056907 seconds and 3 git commands to generate.