1 #include /usr/lib/rpm/macros.perl
2 Summary: Performance Co-Pilot PMDA for clusters
3 Summary(pl.UTF-8): PMDA PCP dla klastrów
8 Group: Applications/System
9 Source0: ftp://oss.sgi.com/projects/pcp/download/%{name}-%{version}.tar.bz2
10 # Source0-md5: 4100f18ef3a6a5907acf54502b26d2d9
11 Patch0: %{name}-pcpfiles.patch
12 Patch1: %{name}-update.patch
13 URL: http://oss.sgi.com/projects/pcp/
14 BuildRequires: pcp-devel >= 3.6.10-2
15 BuildRequires: perl-base
16 Requires: pcp >= 3.0.1
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This package contains the PMDA for collecting metrics from a
21 cluster of nodes using a "push" model, rather than the PMCD polling
22 other nodes. It is useful for clusters where extra overhead from
23 running daemons is unacceptable.
25 %description -l pl.UTF-8
28 Summary: Performance Co-Pilot (PCP) cluster PMDA client daemon
29 Summary(pl.UTF-8): Demon kliencki PMDA PCP dla klastrów
30 Group: Applications/System
31 Requires: pcp >= 3.0.1
34 This is the client daemon for the Performance Co-Pilot (PCP) cluster
37 %description client -l pl.UTF-8
47 PCFLAGS="%{rpmcflags} -D_GNU_SOURCE" \
49 SUBPMNS="/var/lib/pcp/pmns/root_linux $(pwd)/src/tmpdata/pmdas/ib/root" \
50 SUBHELP="$(pwd)/src/tmpdata/pmdas/linux/help $(pwd)/src/tmpdata/pmdas/ib/help"
53 rm -rf $RPM_BUILD_ROOT
54 #install -d $RPM_BUILD_ROOT%{_sysconfdir}
57 PREFIX=$RPM_BUILD_ROOT \
58 SUBPMNS="/var/lib/pcp/pmns/root_linux $(pwd)/src/tmpdata/pmdas/ib/root" \
59 SUBHELP="$(pwd)/src/tmpdata/pmdas/linux/help $(pwd)/src/tmpdata/pmdas/ib/help"
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %dir /var/lib/pcp/pmdas/cluster
67 %attr(755,root,root) /var/lib/pcp/pmdas/cluster/Install
68 %attr(755,root,root) /var/lib/pcp/pmdas/cluster/Remove
69 %attr(755,root,root) /var/lib/pcp/pmdas/cluster/pmdacluster
70 %doc /var/lib/pcp/pmdas/cluster/README
71 /var/lib/pcp/pmdas/cluster/domain.h
72 /var/lib/pcp/pmdas/cluster/help
73 /var/lib/pcp/pmdas/cluster/pmns
74 /var/lib/pcp/pmdas/cluster/root
75 %config(noreplace) %verify(not md5 mtime size) /var/lib/pcp/pmdas/cluster/config
76 %dir /var/lib/pcp/pmdas/cluster/nodes
79 %defattr(644,root,root,755)
80 %attr(754,root,root) /etc/rc.d/init.d/pmclusterd
81 %attr(755,root,root) %{_libdir}/pcp/bin/pmclusterd