]> git.pld-linux.org Git - SPECS.git/blob - pcp-pmda-cluster.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / pcp-pmda-cluster.spec
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
4 Name:           pcp-pmda-cluster
5 Version:        1.0.1
6 Release:        1
7 License:        GPL v2+
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)
18
19 %description
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.
24
25 %description -l pl.UTF-8
26
27 %package client
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
32
33 %description client
34 This is the client daemon for the Performance Co-Pilot (PCP) cluster
35 PMDA.
36
37 %description client -l pl.UTF-8
38
39 %prep
40 %setup -q
41 %patch0 -p1
42 %patch1 -p1
43
44 %build
45 %{__make} \
46         CC="%{__cc}" \
47         PCFLAGS="%{rpmcflags} -D_GNU_SOURCE" \
48         PCP_AWK_PROG=awk \
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"
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 #install -d $RPM_BUILD_ROOT%{_sysconfdir}
55
56 %{__make} install \
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"
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
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
77
78 %files client
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
This page took 0.458753 seconds and 3 git commands to generate.