]> git.pld-linux.org Git - packages/cacti-template-lighttpd.git/blob - cacti-template-lighttpd.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cacti-template-lighttpd.git] / cacti-template-lighttpd.spec
1 %define         plugin lighttpd
2 %define         php_min_version 5.0.0
3 Summary:        Template for Cacti - Lighttpd stats
4 Name:           cacti-template-%{plugin}
5 Version:        1.0
6 Release:        9
7 License:        GPL v2
8 Group:          Applications/WWW
9 # http://forums.cacti.net/download.php?id=8273
10 Source0:        lighttpd_stats_%{version}.tar.gz
11 # Source0-md5:  09aa6716901e08301517004de099d240
12 Patch0:         fixes.patch
13 URL:            http://forums.cacti.net/viewtopic.php?t=19676
14 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
15 BuildRequires:  rpmbuild(macros) >= 1.554
16 Requires:       cacti >= 0.8.7e-8
17 Requires:       php(core) >= %{php_min_version}
18 Requires:       php(pcre)
19 Obsoletes:      cacti-plugin-lighttpd
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         cactidir                /usr/share/cacti
24 %define         resourcedir             %{cactidir}/resource
25 %define         scriptsdir              %{cactidir}/scripts
26
27 %description
28 This package provides a script server script and cacti templates for
29 graphing statistics for a lighttpd webserver.
30
31 %prep
32 %setup -q -n lighttpd_stats_%{version}
33 %patch0 -p1
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
38 cp -p *.xml $RPM_BUILD_ROOT%{resourcedir}
39 install -p *.php $RPM_BUILD_ROOT%{scriptsdir}
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %post
45 %cacti_import_template %{resourcedir}/cacti_host_template_webserver_lighttpd.xml
46
47 %files
48 %defattr(644,root,root,755)
49 %doc README INSTALL CHANGELOG
50 %attr(755,root,root) %{scriptsdir}/ss_lighttpd_stats.php
51 %{resourcedir}/cacti_host_template_webserver_lighttpd.xml
This page took 0.290447 seconds and 3 git commands to generate.