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