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