]> git.pld-linux.org Git - packages/cacti-template-php-fpm.git/blob - cacti-template-php-fpm.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/cacti-template-php-fpm.git] / cacti-template-php-fpm.spec
1 %define         template        php-fpm
2 Summary:        PHP-FPM Pool Status template for Cacti
3 Name:           cacti-template-%{template}
4 Version:        0.6.0
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/WWW
8 Source0:        https://github.com/glensc/cacti-template-php-fpm/archive/%{version}/%{template}-%{version}.tar.gz
9 # Source0-md5:  d3f32f5e2fccb4169901a73f54ba20cc
10 URL:            https://github.com/glensc/cacti-template-php-fpm
11 BuildRequires:  rpm-perlprov >= 4.1-13
12 BuildRequires:  rpmbuild(macros) >= 1.654
13 Requires:       cacti >= 0.8.8a
14 Suggests:       perl-FCGI-Client
15 Suggests:       perl-Moose
16 Suggests:       perl-libwww
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         cactidir                /usr/share/cacti
21 %define         resourcedir             %{cactidir}/resource
22 %define         scriptsdir              %{cactidir}/scripts
23
24 %description
25 PHP-FPM Pool Status template for Cacti.
26
27 %prep
28 %setup -q
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
33 install -p get_php_fpm_status.pl $RPM_BUILD_ROOT%{scriptsdir}
34 cp -p cacti_graph_template_php-fpm_pool_status.xml $RPM_BUILD_ROOT%{resourcedir}
35
36 %post
37 %cacti_import_template %{resourcedir}/cacti_graph_template_php-fpm_pool_status.xml
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %files
43 %defattr(644,root,root,755)
44 %doc README.md
45 %attr(755,root,root) %{scriptsdir}/get_php_fpm_status.pl
46 %{resourcedir}/*.xml
This page took 0.071964 seconds and 3 git commands to generate.