Build: add libpcp_web.so* files to fedora.spec
[pcp.git] / build / rpm / fedora.spec
blobf6d34cc16b9a75e06779ce29c78738b81e4b0114
1 Summary: System-level performance monitoring and performance management
2 Name: pcp
3 Version: 3.11.4
4 %global buildversion 1
6 Release: %{buildversion}%{?dist}
7 License: GPLv2+ and LGPLv2.1+ and CC-BY
8 URL: http://www.pcp.io
9 Group: Applications/System
10 # https://bintray.com/artifact/download/pcp/source/pcp-%{version}.src.tar.gz
11 Source0: %{name}-%{version}.src.tar.gz
12 # https://bintray.com/artifact/download/netflixoss/downloads/vector.tar.gz
13 Source1: vector-1.1.0.tar.gz
14 # https://github.com/performancecopilot/pcp-webjs/archive/x.y.z.tar.gz
15 Source2: pcp-webjs-3.11.2.tar.gz
17 %global disable_snmp 0
19 # There are no papi/libpfm devel packages for s390 nor for some rhels, disable
20 %ifarch s390 s390x
21 %global disable_papi 1
22 %global disable_perfevent 1
23 %else
24 %if 0%{?rhel} == 0 || 0%{?rhel} > 5
25 %global disable_papi 0
26 %else
27 %global disable_papi 1
28 %endif
29 %if 0%{?fedora} >= 20 || 0%{?rhel} > 6
30 %global disable_perfevent 0
31 %else
32 %global disable_perfevent 1
33 %endif
34 %endif
36 %global disable_microhttpd 0
37 %global disable_cairo 0
39 %global disable_python2 0
40 # Default for epel5 is python24, so use the (optional) python26 packages
41 %if 0%{?rhel} == 5
42 %global default_python 26
43 %endif
44 # No python3 development environment before el8
45 %if 0%{?rhel} == 0 || 0%{?rhel} > 7
46 %global disable_python3 0
47 # Do we wish to mandate python3 use in pcp? (f22+ and el8+)
48 %if 0%{?fedora} >= 22 || 0%{?rhel} > 7
49 %global default_python 3
50 %endif
51 %else
52 %global disable_python3 1
53 %endif
55 # support for pmdajson
56 %if 0%{?rhel} == 0 || 0%{?rhel} > 6
57 %if !%{disable_python2} || !%{disable_python3}
58 %global disable_json 0
59 %else
60 %global disable_json 1
61 %endif
62 %else
63 %global disable_json 1
64 %endif
66 # support for pmdarpm
67 %if 0%{?rhel} == 0 || 0%{?rhel} > 5
68 %global disable_rpm 0
69 %else
70 %global disable_rpm 1
71 %endif
73 # Qt development and runtime environment missing components before el6
74 %if 0%{?rhel} == 0 || 0%{?rhel} > 5
75 %global disable_qt 0
76 %else
77 %global disable_qt 1
78 %endif
80 # systemd services and pmdasystemd
81 %if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
82 %global disable_systemd 0
83 %else
84 %global disable_systemd 1
85 %endif
87 # systemtap static probing, missing before el6 and on some architectures
88 %if 0%{?rhel} == 0 || 0%{?rhel} > 5
89 %global disable_sdt 0
90 %else
91 %ifnarch ppc ppc64
92 %global disable_sdt 0
93 %else
94 %global disable_sdt 1
95 %endif
96 %endif
98 # rpm producing "noarch" packages
99 %if 0%{?rhel} == 0 || 0%{?rhel} > 5
100 %global disable_noarch 0
101 %else
102 %global disable_noarch 1
103 %endif
105 # prevent conflicting binary and man page install for pcp(1)
106 Conflicts: librapi
108 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
109 # https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B
110 BuildRequires: gcc gcc-c++
111 BuildRequires: procps autoconf bison flex
112 BuildRequires: nss-devel
113 BuildRequires: rpm-devel
114 BuildRequires: avahi-devel
115 BuildRequires: zlib-devel
116 %if !%{disable_python2}
117 %if 0%{?default_python} != 3
118 BuildRequires: python%{?default_python}-devel
119 %else
120 BuildRequires: python-devel
121 %endif
122 %endif
123 %if !%{disable_python3}
124 BuildRequires: python3-devel
125 %endif
126 BuildRequires: ncurses-devel
127 BuildRequires: readline-devel
128 BuildRequires: cyrus-sasl-devel
129 %if !%{disable_papi}
130 BuildRequires: papi-devel
131 %endif
132 %if !%{disable_perfevent}
133 BuildRequires: libpfm-devel >= 4
134 %endif
135 %if !%{disable_microhttpd}
136 BuildRequires: libmicrohttpd-devel
137 %endif
138 %if !%{disable_cairo}
139 BuildRequires: cairo-devel
140 %endif
141 %if !%{disable_sdt}
142 BuildRequires: systemtap-sdt-devel
143 %endif
144 %if 0%{?rhel} == 0 || 0%{?rhel} > 5
145 BuildRequires: perl-devel perl-generators
146 %endif
147 BuildRequires: perl(ExtUtils::MakeMaker)
148 BuildRequires: initscripts man
149 %if !%{disable_systemd}
150 BuildRequires: systemd-devel
151 %endif
152 %if !%{disable_qt}
153 BuildRequires: desktop-file-utils
154 BuildRequires: qt4-devel >= 4.4
155 %endif
157 Requires: bash gawk sed grep fileutils findutils initscripts which
158 Requires: pcp-libs = %{version}-%{release}
159 Obsoletes: pcp-gui-debuginfo
160 Obsoletes: pcp-pmda-nvidia
162 # Obsoletes for distros that already have single install pmda's with compat package
163 Obsoletes: pcp-compat
165 Requires: pcp-libs = %{version}-%{release}
166 Obsoletes: pcp-gui-debuginfo
168 %global tapsetdir %{_datadir}/systemtap/tapset
170 %global _confdir %{_sysconfdir}/pcp
171 %global _logsdir %{_localstatedir}/log/pcp
172 %global _pmnsdir %{_localstatedir}/lib/pcp/pmns
173 %global _tempsdir %{_localstatedir}/lib/pcp/tmp
174 %global _pmdasdir %{_localstatedir}/lib/pcp/pmdas
175 %global _testsdir %{_localstatedir}/lib/pcp/testsuite
176 %global _pixmapdir %{_datadir}/pcp-gui/pixmaps
177 %global _booksdir %{_datadir}/doc/pcp-doc
179 %if 0%{?fedora} >= 20 || 0%{?rhel} >= 8
180 %global _with_doc --with-docdir=%{_docdir}/%{name}
181 %endif
183 %if !%{disable_systemd}
184 %global _initddir %{_datadir}/pcp/lib
185 %else
186 %global _initddir %{_sysconfdir}/rc.d/init.d
187 %global _with_initd --with-rcdir=%{_initddir}
188 %endif
190 # we never want Infiniband on s390 platforms
191 %ifarch s390 s390x
192 %global disable_infiniband 1
193 %else
194 # we never want Infiniband on RHEL5 or earlier
195 %if 0%{?rhel} != 0 && 0%{?rhel} < 6
196 %global disable_infiniband 1
197 %else
198 %global disable_infiniband 0
199 %endif
200 %endif
202 %if %{disable_infiniband}
203 %global _with_ib --with-infiniband=no
204 %endif
206 %if !%{disable_papi}
207 %global _with_papi --with-papi=yes
208 %endif
210 %if !%{disable_perfevent}
211 %global _with_perfevent --with-perfevent=yes
212 %endif
214 %if %{disable_json}
215 %global _with_json --with-pmdajson=no
216 %else
217 %global _with_json --with-pmdajson=yes
218 %endif
220 %if %{disable_snmp}
221 %global _with_snmp --with-pmdasnmp=no
222 %else
223 %global _with_snmp --with-pmdasnmp=yes
224 %endif
226 %global pmda_remove() %{expand:
227 if [ "%1" -eq 0 ]
228 then
229 if [ -f "%{_confdir}/pmcd/pmcd.conf" ] && [ -f "%{_pmdasdir}/%2/domain.h" ]
230 then
231 (cd %{_pmdasdir}/%2/ && ./Remove >/dev/null 2>&1)
236 %description
237 Performance Co-Pilot (PCP) provides a framework and services to support
238 system-level performance monitoring and performance management.
240 The PCP open source release provides a unifying abstraction for all of
241 the interesting performance data in a system, and allows client
242 applications to easily retrieve and process any subset of that data.
245 # pcp-conf
247 %package conf
248 License: LGPLv2+
249 Group: System Environment/Libraries
250 Summary: Performance Co-Pilot run-time configuration
251 URL: http://www.pcp.io
253 # http://fedoraproject.org/wiki/Packaging:Conflicts "Splitting Packages"
254 Conflicts: pcp-libs < 3.9
256 %description conf
257 Performance Co-Pilot (PCP) run-time configuration
260 # pcp-libs
262 %package libs
263 License: LGPLv2+
264 Group: System Environment/Libraries
265 Summary: Performance Co-Pilot run-time libraries
266 URL: http://www.pcp.io
267 Requires: pcp-conf = %{version}-%{release}
269 %description libs
270 Performance Co-Pilot (PCP) run-time libraries
273 # pcp-libs-devel
275 %package libs-devel
276 License: GPLv2+ and LGPLv2.1+
277 Group: Development/Libraries
278 Summary: Performance Co-Pilot (PCP) development headers
279 URL: http://www.pcp.io
280 #Requires: pcp = %{version}-%{release}
281 #Requires: pcp-libs = %{version}-%{release}
283 %description libs-devel
284 Performance Co-Pilot (PCP) headers, for development
287 # pcp-devel
289 %package devel
290 License: GPLv2+ and LGPLv2.1+
291 Group: Development/Libraries
292 Summary: Performance Co-Pilot (PCP) development tools and documentation
293 URL: http://www.pcp.io
294 Requires: pcp = %{version}-%{release}
295 Requires: pcp-libs = %{version}-%{release}
296 Requires: pcp-libs-devel = %{version}-%{release}
298 %description devel
299 Performance Co-Pilot (PCP) documentation and tools for development.
302 # pcp-testsuite
304 %package testsuite
305 License: GPLv2+
306 Group: Development/Libraries
307 Summary: Performance Co-Pilot (PCP) test suite
308 URL: http://www.pcp.io
309 Requires: pcp = %{version}-%{release}
310 Requires: pcp-libs = %{version}-%{release}
311 Requires: pcp-libs-devel = %{version}-%{release}
312 Requires: pcp-devel = %{version}-%{release}
313 Obsoletes: pcp-gui-testsuite
315 %description testsuite
316 Quality assurance test suite for Performance Co-Pilot (PCP).
319 # pcp-manager
321 %package manager
322 License: GPLv2+
323 Group: Applications/System
324 Summary: Performance Co-Pilot (PCP) manager daemon
325 URL: http://www.pcp.io
326 Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
328 %description manager
329 An optional daemon (pmmgr) that manages a collection of pmlogger and
330 pmie daemons, for a set of discovered local and remote hosts running
331 the performance metrics collection daemon (pmcd). It ensures these
332 daemons are running when appropriate, and manages their log rotation
333 needs. It is an alternative to the cron-based pmlogger/pmie service
334 scripts.
336 %if !%{disable_microhttpd}
338 # pcp-webapi
340 %package webapi
341 License: GPLv2+
342 Group: Applications/System
343 Summary: Performance Co-Pilot (PCP) web API service
344 URL: http://www.pcp.io
345 Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
347 %description webapi
348 Provides a daemon (pmwebd) that binds a large subset of the Performance
349 Co-Pilot (PCP) client API (PMAPI) to RESTful web applications using the
350 HTTP (PMWEBAPI) protocol.
351 %endif
354 # pcp-webjs and pcp-webapp packages
356 %package webjs
357 License: ASL2.0 and MIT and CC-BY
358 Group: Applications/Internet
359 %if !%{disable_noarch}
360 BuildArch: noarch
361 %endif
362 Requires: pcp-webapp-graphite pcp-webapp-grafana pcp-webapp-vector
363 Summary: Performance Co-Pilot (PCP) web applications
364 URL: http://www.pcp.io
366 %description webjs
367 Javascript web application content for the Performance Co-Pilot (PCP)
368 web service.
370 %package webapp-vector
371 License: ASL2.0
372 Group: Applications/Internet
373 %if !%{disable_noarch}
374 BuildArch: noarch
375 %endif
376 Summary: Vector web application for Performance Co-Pilot (PCP)
377 URL: https://github.com/Netflix/vector
379 %description webapp-vector
380 Vector web application for the Performance Co-Pilot (PCP).
382 %package webapp-grafana
383 License: ASL2.0
384 Group: Applications/Internet
385 Conflicts: pcp-webjs < 3.10.4
386 %if !%{disable_noarch}
387 BuildArch: noarch
388 %endif
389 Summary: Grafana web application for Performance Co-Pilot (PCP)
390 URL: https://grafana.org
392 %description webapp-grafana
393 Grafana is an open source, feature rich metrics dashboard and graph
394 editor. This package provides a Grafana that uses the Performance
395 Co-Pilot (PCP) as the data repository. Other Grafana backends are
396 not used.
398 Grafana can render time series dashboards at the browser via flot.js
399 (more interactive, slower, for beefy browsers) or alternately at the
400 server via png (less interactive, faster).
402 %package webapp-graphite
403 License: ASL2.0
404 Group: Applications/Internet
405 Conflicts: pcp-webjs < 3.10.4
406 %if !%{disable_noarch}
407 BuildArch: noarch
408 %endif
409 Summary: Graphite web application for Performance Co-Pilot (PCP)
410 URL: http://graphite.readthedocs.org
412 %description webapp-graphite
413 Graphite is a highly scalable real-time graphing system. This package
414 provides a graphite version that uses the Performance Co-Pilot (PCP)
415 as the data repository, and Graphites web interface renders it. The
416 Carbon and Whisper subsystems of Graphite are not included nor used.
419 # perl-PCP-PMDA. This is the PCP agent perl binding.
421 %package -n perl-PCP-PMDA
422 License: GPLv2+
423 Group: Development/Libraries
424 Summary: Performance Co-Pilot (PCP) Perl bindings and documentation
425 URL: http://www.pcp.io
426 Requires: pcp-libs = %{version}-%{release}
427 Requires: perl
429 %description -n perl-PCP-PMDA
430 The PCP::PMDA Perl module contains the language bindings for
431 building Performance Metric Domain Agents (PMDAs) using Perl.
432 Each PMDA exports performance data for one specific domain, for
433 example the operating system kernel, Cisco routers, a database,
434 an application, etc.
437 # perl-PCP-MMV
439 %package -n perl-PCP-MMV
440 License: GPLv2+
441 Group: Development/Libraries
442 Summary: Performance Co-Pilot (PCP) Perl bindings for PCP Memory Mapped Values
443 URL: http://www.pcp.io
444 Requires: pcp-libs = %{version}-%{release}
446 %description -n perl-PCP-MMV
447 The PCP::MMV module contains the Perl language bindings for
448 building scripts instrumented with the Performance Co-Pilot
449 (PCP) Memory Mapped Value (MMV) mechanism.
450 This mechanism allows arbitrary values to be exported from an
451 instrumented script into the PCP infrastructure for monitoring
452 and analysis with pmchart, pmie, pmlogger and other PCP tools.
455 # perl-PCP-LogImport
457 %package -n perl-PCP-LogImport
458 License: GPLv2+
459 Group: Development/Libraries
460 Summary: Performance Co-Pilot (PCP) Perl bindings for importing external data into PCP archives
461 URL: http://www.pcp.io
462 Requires: pcp-libs = %{version}-%{release}
464 %description -n perl-PCP-LogImport
465 The PCP::LogImport module contains the Perl language bindings for
466 importing data in various 3rd party formats into PCP archives so
467 they can be replayed with standard PCP monitoring tools.
470 # perl-PCP-LogSummary
472 %package -n perl-PCP-LogSummary
473 License: GPLv2+
474 Group: Development/Libraries
475 Summary: Performance Co-Pilot (PCP) Perl bindings for post-processing output of pmlogsummary
476 URL: http://www.pcp.io
477 Requires: pcp-libs = %{version}-%{release}
479 %description -n perl-PCP-LogSummary
480 The PCP::LogSummary module provides a Perl module for using the
481 statistical summary data produced by the Performance Co-Pilot
482 pmlogsummary utility. This utility produces various averages,
483 minima, maxima, and other calculations based on the performance
484 data stored in a PCP archive. The Perl interface is ideal for
485 exporting this data into third-party tools (e.g. spreadsheets).
488 # pcp-import-sar2pcp
490 %package import-sar2pcp
491 License: LGPLv2+
492 Group: Applications/System
493 Summary: Performance Co-Pilot tools for importing sar data into PCP archive logs
494 URL: http://www.pcp.io
495 Requires: pcp-libs = %{version}-%{release}
496 Requires: perl-PCP-LogImport = %{version}-%{release}
497 Requires: sysstat
498 Requires: perl(XML::TokeParser)
500 %description import-sar2pcp
501 Performance Co-Pilot (PCP) front-end tools for importing sar data
502 into standard PCP archive logs for replay with any PCP monitoring tool.
505 # pcp-import-iostat2pcp
507 %package import-iostat2pcp
508 License: LGPLv2+
509 Group: Applications/System
510 Summary: Performance Co-Pilot tools for importing iostat data into PCP archive logs
511 URL: http://www.pcp.io
512 Requires: pcp-libs = %{version}-%{release}
513 Requires: perl-PCP-LogImport = %{version}-%{release}
514 Requires: sysstat
516 %description import-iostat2pcp
517 Performance Co-Pilot (PCP) front-end tools for importing iostat data
518 into standard PCP archive logs for replay with any PCP monitoring tool.
521 # pcp-import-mrtg2pcp
523 %package import-mrtg2pcp
524 License: LGPLv2+
525 Group: Applications/System
526 Summary: Performance Co-Pilot tools for importing MTRG data into PCP archive logs
527 URL: http://www.pcp.io
528 Requires: pcp-libs = %{version}-%{release}
529 Requires: perl-PCP-LogImport = %{version}-%{release}
531 %description import-mrtg2pcp
532 Performance Co-Pilot (PCP) front-end tools for importing MTRG data
533 into standard PCP archive logs for replay with any PCP monitoring tool.
536 # pcp-import-ganglia2pcp
538 %package import-ganglia2pcp
539 License: LGPLv2+
540 Group: Applications/System
541 Summary: Performance Co-Pilot tools for importing ganglia data into PCP archive logs
542 URL: http://www.pcp.io
543 Requires: pcp-libs = %{version}-%{release}
544 Requires: perl-PCP-LogImport = %{version}-%{release}
546 %description import-ganglia2pcp
547 Performance Co-Pilot (PCP) front-end tools for importing ganglia data
548 into standard PCP archive logs for replay with any PCP monitoring tool.
551 # pcp-export-zabbix-agent
553 %package export-zabbix-agent
554 License: GPLv2+
555 Group: Applications/System
556 Summary: Module for exporting PCP metrics to Zabbix agent
557 URL: http://www.pcp.io
558 Requires: pcp-libs = %{version}-%{release}
560 %description export-zabbix-agent
561 Performance Co-Pilot (PCP) module for exporting metrics from PCP to
562 Zabbix via the Zabbix agent - see zbxpcp(3) for further details.
564 %if !%{disable_python2} || !%{disable_python3}
566 # pcp-export-pcp2graphite
568 %package export-pcp2graphite
569 License: GPLv2+
570 Group: Applications/System
571 Summary: Performance Co-Pilot tools for exporting PCP metrics to Graphite
572 URL: http://www.pcp.io
573 Requires: pcp-libs >= %{version}-%{release}
574 %if !%{disable_python3}
575 Requires: python3-pcp = %{version}-%{release}
576 %else
577 Requires: python-pcp = %{version}-%{release}
578 %endif
580 %description export-pcp2graphite
581 Performance Co-Pilot (PCP) front-end tools for exporting metric values
582 to graphite (http://graphite.readthedocs.org).
584 # pcp-export-pcp2influxdb
586 %package export-pcp2influxdb
587 License: GPLv2+
588 Group: Applications/System
589 Summary: Performance Co-Pilot tools for exporting PCP metrics to InfluxDB
590 URL: http://www.pcp.io
591 Requires: pcp-libs >= %{version}-%{release}
592 %if !%{disable_python3}
593 Requires: python3-pcp = %{version}-%{release}
594 Requires: python3-requests
595 %else
596 Requires: python-pcp = %{version}-%{release}
597 Requires: python-requests
598 %endif
600 %description export-pcp2influxdb
601 Performance Co-Pilot (PCP) front-end tools for exporting metric values
602 to InfluxDB (https://influxdata.com/time-series-platform/influxdb).
603 %endif
606 # pcp-import-collectl2pcp
608 %package import-collectl2pcp
609 License: LGPLv2+
610 Group: Applications/System
611 Summary: Performance Co-Pilot tools for importing collectl log files into PCP archive logs
612 URL: http://www.pcp.io
613 Requires: pcp-libs = %{version}-%{release}
615 %description import-collectl2pcp
616 Performance Co-Pilot (PCP) front-end tools for importing collectl data
617 into standard PCP archive logs for replay with any PCP monitoring tool.
619 %if !%{disable_papi}
621 # pcp-pmda-papi
623 %package pmda-papi
624 License: GPLv2+
625 Group: Applications/System
626 Summary: Performance Co-Pilot (PCP) metrics for Performance API and hardware counters
627 URL: http://www.pcp.io
628 Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
629 BuildRequires: papi-devel
631 %description pmda-papi
632 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
633 collecting hardware counters statistics through PAPI (Performance API).
634 %endif
636 %if !%{disable_perfevent}
638 # pcp-pmda-perfevent
640 %package pmda-perfevent
641 License: GPLv2+
642 Group: Applications/System
643 Summary: Performance Co-Pilot (PCP) metrics for hardware counters
644 URL: http://www.pcp.io
645 Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
646 Requires: libpfm >= 4
647 BuildRequires: libpfm-devel >= 4
649 %description pmda-perfevent
650 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
651 collecting hardware counters statistics through libpfm.
652 %endif
654 %if !%{disable_infiniband}
656 # pcp-pmda-infiniband
658 %package pmda-infiniband
659 License: GPLv2+
660 Group: Applications/System
661 Summary: Performance Co-Pilot (PCP) metrics for Infiniband HCAs and switches
662 URL: http://www.pcp.io
663 Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
664 Requires: libibmad >= 1.3.7 libibumad >= 1.3.7
665 BuildRequires: libibmad-devel >= 1.3.7 libibumad-devel >= 1.3.7
667 %description pmda-infiniband
668 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
669 collecting Infiniband statistics. By default, it monitors the local HCAs
670 but can also be configured to monitor remote GUIDs such as IB switches.
671 %endif
673 # pcp-pmda-activemq
675 %package pmda-activemq
676 License: GPLv2+
677 Group: Applications/System
678 Summary: Performance Co-Pilot (PCP) metrics for ActiveMQ
679 URL: http://www.pcp.io
680 Requires: perl-PCP-PMDA = %{version}-%{release}
681 Requires: perl(LWP::UserAgent)
683 %description pmda-activemq
684 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
685 collecting metrics about the ActiveMQ message broker.
686 #end pcp-pmda-activemq
689 # pcp-pmda-bonding
691 %package pmda-bonding
692 License: GPLv2+
693 Group: Applications/System
694 Summary: Performance Co-Pilot (PCP) metrics for Bonded network interfaces
695 URL: http://www.pcp.io
696 Requires: perl-PCP-PMDA = %{version}-%{release}
698 %description pmda-bonding
699 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
700 collecting metrics about bonded network interfaces.
701 #end pcp-pmda-bonding
704 # pcp-pmda-dbping
706 %package pmda-dbping
707 License: GPLv2+
708 Group: Applications/System
709 Summary: Performance Co-Pilot (PCP) metrics for Database response times and Availablility
710 URL: http://www.pcp.io
711 Requires: perl-PCP-PMDA = %{version}-%{release}
713 %description pmda-dbping
714 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
715 collecting metrics about the Database response times and Availablility.
716 #end pcp-pmda-dbping
719 # pcp-pmda-ds389
721 %package pmda-ds389
722 License: GPLv2+
723 Group: Applications/System
724 Summary: Performance Co-Pilot (PCP) metrics for 389 Directory Servers
725 URL: http://www.pcp.io
726 Requires: perl-PCP-PMDA = %{version}-%{release}
727 Requires: perl-LDAP
729 %description pmda-ds389
730 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
731 collecting metrics about a 389 Directory Server.
732 #end pcp-pmda-ds389
735 # pcp-pmda-ds389log
737 %package pmda-ds389log
738 License: GPLv2+
739 Group: Applications/System
740 Summary: Performance Co-Pilot (PCP) metrics for 389 Directory Server Loggers
741 URL: http://www.pcp.io
742 Requires: perl-PCP-PMDA = %{version}-%{release}
743 Requires: perl-Date-Manip
745 %description pmda-ds389log
746 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
747 collecting metrics from a 389 Directory Server log.
748 #end pcp-pmda-ds389log
751 # pcp-pmda-elasticsearch
753 %package pmda-elasticsearch
754 License: GPLv2+
755 Group: Applications/System
756 Summary: Performance Co-Pilot (PCP) metrics for Elasticsearch
757 URL: http://www.pcp.io
758 Requires: perl-PCP-PMDA = %{version}-%{release}
759 Requires: perl(LWP::UserAgent)
760 BuildRequires: perl(LWP::UserAgent)
762 %description pmda-elasticsearch
763 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
764 collecting metrics about Elasticsearch.
765 #end pcp-pmda-elasticsearch
768 # pcp-pmda-gpfs
770 %package pmda-gpfs
771 License: GPLv2+
772 Group: Applications/System
773 Summary: Performance Co-Pilot (PCP) metrics for GPFS Filesystem
774 URL: http://www.pcp.io
775 Requires: perl-PCP-PMDA = %{version}-%{release}
777 %description pmda-gpfs
778 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
779 collecting metrics about the GPFS filesystem.
780 #end pcp-pmda-gpfs
783 # pcp-pmda-gpsd
785 %package pmda-gpsd
786 License: GPLv2+
787 Group: Applications/System
788 Summary: Performance Co-Pilot (PCP) metrics for a GPS Daemon
789 URL: http://www.pcp.io
790 Requires: perl-PCP-PMDA = %{version}-%{release}
792 %description pmda-gpsd
793 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
794 collecting metrics about a GPS Daemon.
795 #end pcp-pmda-gpsd
798 # pcp-pmda-kvm
800 %package pmda-kvm
801 License: GPLv2+
802 Group: Applications/System
803 Summary: Performance Co-Pilot (PCP) metrics for KVM
804 URL: http://www.pcp.io
805 Requires: perl-PCP-PMDA = %{version}-%{release}
807 %description pmda-kvm
808 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
809 collecting metrics about the Kernel based Virtual Machine.
810 #end pcp-pmda-kvm
813 # pcp-pmda-lustre
815 %package pmda-lustre
816 License: GPLv2+
817 Group: Applications/System
818 Summary: Performance Co-Pilot (PCP) metrics for the Lustre Filesytem
819 URL: http://www.pcp.io
820 Requires: perl-PCP-PMDA = %{version}-%{release}
822 %description pmda-lustre
823 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
824 collecting metrics about the Lustre Filesystem.
825 #end pcp-pmda-lustre
828 # pcp-pmda-lustrecomm
830 %package pmda-lustrecomm
831 License: GPLv2+
832 Group: Applications/System
833 Summary: Performance Co-Pilot (PCP) metrics for the Lustre Filesytem Comms
834 URL: http://www.pcp.io
835 Requires: pcp = %{version}-%{release}
836 Requires: pcp-libs = %{version}-%{release}
838 %description pmda-lustrecomm
839 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
840 collecting metrics about the Lustre Filesystem Comms.
841 #end pcp-pmda-lustrecomm
844 # pcp-pmda-memcache
846 %package pmda-memcache
847 License: GPLv2+
848 Group: Applications/System
849 Summary: Performance Co-Pilot (PCP) metrics for Memcached
850 URL: http://www.pcp.io
851 Requires: perl-PCP-PMDA = %{version}-%{release}
853 %description pmda-memcache
854 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
855 collecting metrics about Memcached.
856 #end pcp-pmda-memcache
859 # pcp-pmda-mysql
861 %package pmda-mysql
862 License: GPLv2+
863 Group: Applications/System
864 Summary: Performance Co-Pilot (PCP) metrics for MySQL
865 URL: http://www.pcp.io
866 Requires: perl-PCP-PMDA = %{version}-%{release}
867 Requires: perl(DBI) perl(DBD::mysql)
868 BuildRequires: perl(DBI) perl(DBD::mysql)
870 %description pmda-mysql
871 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
872 collecting metrics about the MySQL database.
873 #end pcp-pmda-mysql
876 # pcp-pmda-named
878 %package pmda-named
879 License: GPLv2+
880 Group: Applications/System
881 Summary: Performance Co-Pilot (PCP) metrics for Named
882 URL: http://www.pcp.io
883 Requires: perl-PCP-PMDA = %{version}-%{release}
885 %description pmda-named
886 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
887 collecting metrics about the Named nameserver.
888 #end pcp-pmda-named
890 # pcp-pmda-netfilter
892 %package pmda-netfilter
893 License: GPLv2+
894 Group: Applications/System
895 Summary: Performance Co-Pilot (PCP) metrics for Netfilter framework
896 URL: http://www.pcp.io
897 Requires: perl-PCP-PMDA = %{version}-%{release}
899 %description pmda-netfilter
900 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
901 collecting metrics about the Netfilter packet filtering framework.
902 #end pcp-pmda-netfilter
905 # pcp-pmda-news
907 %package pmda-news
908 License: GPLv2+
909 Group: Applications/System
910 Summary: Performance Co-Pilot (PCP) metrics for Usenet News
911 URL: http://www.pcp.io
912 Requires: perl-PCP-PMDA = %{version}-%{release}
914 %description pmda-news
915 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
916 collecting metrics about Usenet News.
917 #end pcp-pmda-news
920 # pcp-pmda-nginx
922 %package pmda-nginx
923 License: GPLv2+
924 Group: Applications/System
925 Summary: Performance Co-Pilot (PCP) metrics for the Nginx Webserver
926 URL: http://www.pcp.io
927 Requires: perl-PCP-PMDA = %{version}-%{release}
928 Requires: perl(LWP::UserAgent)
929 BuildRequires: perl(LWP::UserAgent)
931 %description pmda-nginx
932 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
933 collecting metrics about the Nginx Webserver.
934 #end pcp-pmda-nginx
937 # pcp-pmda-nfsclient
939 %package pmda-nfsclient
940 License: GPLv2+
941 Group: Applications/System
942 Summary: Performance Co-Pilot (PCP) metrics for NFS Clients
943 URL: http://www.pcp.io
944 Requires: perl-PCP-PMDA = %{version}-%{release}
946 %description pmda-nfsclient
947 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
948 collecting metrics for NFS Clients.
949 #end pcp-pmda-nfsclient
952 # pcp-pmda-oracle
954 %package pmda-oracle
955 License: GPLv2+
956 Group: Applications/System
957 Summary: Performance Co-Pilot (PCP) metrics for the Oracle database
958 URL: http://www.pcp.io
959 Requires: perl-PCP-PMDA = %{version}-%{release}
960 Requires: perl(DBI)
961 BuildRequires: perl(DBI)
963 %description pmda-oracle
964 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
965 collecting metrics about the Oracle database.
966 #end pcp-pmda-oracle
969 # pcp-pmda-pdns
971 %package pmda-pdns
972 License: GPLv2+
973 Group: Applications/System
974 Summary: Performance Co-Pilot (PCP) metrics for PowerDNS
975 URL: http://www.pcp.io
976 Requires: perl-PCP-PMDA = %{version}-%{release}
978 %description pmda-pdns
979 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
980 collecting metrics about the PowerDNS.
981 #end pcp-pmda-pdns
984 # pcp-pmda-postfix
986 %package pmda-postfix
987 License: GPLv2+
988 Group: Applications/System
989 Summary: Performance Co-Pilot (PCP) metrics for the Postfix (MTA)
990 URL: http://www.pcp.io
991 Requires: perl-PCP-PMDA = %{version}-%{release}
992 %if 0%{?fedora} > 16 || 0%{?rhel} > 5
993 Requires: postfix-perl-scripts
994 BuildRequires: postfix-perl-scripts
995 %endif
996 %if 0%{?rhel} <= 5
997 Requires: postfix
998 BuildRequires: postfix
999 %endif
1000 %if "%{_vendor}" == "suse"
1001 Requires: postfix-doc
1002 BuildRequires: postfix-doc
1003 %endif
1005 %description pmda-postfix
1006 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1007 collecting metrics about the Postfix (MTA).
1008 #end pcp-pmda-postfix
1011 # pcp-pmda-postgresql
1013 %package pmda-postgresql
1014 License: GPLv2+
1015 Group: Applications/System
1016 Summary: Performance Co-Pilot (PCP) metrics for PostgreSQL
1017 URL: http://www.pcp.io
1018 Requires: perl-PCP-PMDA = %{version}-%{release}
1019 Requires: perl(DBI) perl(DBD::Pg)
1020 BuildRequires: perl(DBI) perl(DBD::Pg)
1022 %description pmda-postgresql
1023 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1024 collecting metrics about the PostgreSQL database.
1025 #end pcp-pmda-postgresql
1028 # pcp-pmda-rsyslog
1030 %package pmda-rsyslog
1031 License: GPLv2+
1032 Group: Applications/System
1033 Summary: Performance Co-Pilot (PCP) metrics for Rsyslog
1034 URL: http://www.pcp.io
1035 Requires: perl-PCP-PMDA = %{version}-%{release}
1037 %description pmda-rsyslog
1038 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1039 collecting metrics about Rsyslog.
1040 #end pcp-pmda-rsyslog
1043 # pcp-pmda-samba
1045 %package pmda-samba
1046 License: GPLv2+
1047 Group: Applications/System
1048 Summary: Performance Co-Pilot (PCP) metrics for Samba
1049 URL: http://www.pcp.io
1050 Requires: perl-PCP-PMDA = %{version}-%{release}
1052 %description pmda-samba
1053 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1054 collecting metrics about Samba.
1055 #end pcp-pmda-samba
1058 # pcp-pmda-slurm
1060 %package pmda-slurm
1061 License: GPLv2+
1062 Group: Applications/System
1063 Summary: Performance Co-Pilot (PCP) metrics for NFS Clients
1064 URL: http://www.pcp.io
1065 Requires: perl-PCP-PMDA = %{version}-%{release}
1067 %description pmda-slurm
1068 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1069 collecting metrics from the SLURM Workload Manager.
1070 #end pcp-pmda-slurm
1072 %if !%{disable_snmp}
1074 # pcp-pmda-snmp
1076 %package pmda-snmp
1077 License: GPLv2+
1078 Group: Applications/System
1079 Summary: Performance Co-Pilot (PCP) metrics for Simple Network Management Protocol
1080 URL: http://www.pcp.io
1081 Requires: perl-PCP-PMDA = %{version}-%{release}
1082 # There are no perl-Net-SNMP packages in rhel, disable unless non-rhel or epel5
1083 %if 0%{?rhel} == 0 || 0%{?rhel} < 6
1084 Requires: perl(Net::SNMP)
1085 %endif
1087 %description pmda-snmp
1088 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1089 collecting metrics about SNMP.
1090 #end pcp-pmda-snmp
1091 %endif
1094 # pcp-pmda-vmware
1096 %package pmda-vmware
1097 License: GPLv2+
1098 Group: Applications/System
1099 Summary: Performance Co-Pilot (PCP) metrics for VMware
1100 URL: http://www.pcp.io
1101 Requires: perl-PCP-PMDA = %{version}-%{release}
1103 %description pmda-vmware
1104 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1105 collecting metrics for VMware.
1106 #end pcp-pmda-vmware
1109 # pcp-pmda-zimbra
1111 %package pmda-zimbra
1112 License: GPLv2+
1113 Group: Applications/System
1114 Summary: Performance Co-Pilot (PCP) metrics for Zimbra
1115 URL: http://www.pcp.io
1116 Requires: perl-PCP-PMDA = %{version}-%{release}
1118 %description pmda-zimbra
1119 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1120 collecting metrics about Zimbra.
1121 #end pcp-pmda-zimbra
1124 # pcp-pmda-dm
1126 %package pmda-dm
1127 License: GPLv2+
1128 Group: Applications/System
1129 Summary: Performance Co-Pilot (PCP) metrics for the Device Mapper Cache and Thin Client
1130 URL: http://www.pcp.io
1131 Requires: pcp-libs = %{version}-%{release}
1132 %description pmda-dm
1133 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1134 collecting metrics about the Device Mapper Cache and Thin Client.
1135 # end pcp-pmda-dm
1138 %if !%{disable_python2} || !%{disable_python3}
1140 # pcp-pmda-gluster
1142 %package pmda-gluster
1143 License: GPLv2+
1144 Group: Applications/System
1145 Summary: Performance Co-Pilot (PCP) metrics for the Gluster filesystem
1146 URL: http://www.pcp.io
1147 %if !%{disable_python3}
1148 Requires: python3-pcp
1149 %else
1150 Requires: python-pcp
1151 %endif
1152 %description pmda-gluster
1153 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1154 collecting metrics about the gluster filesystem.
1155 # end pcp-pmda-gluster
1158 # pcp-pmda-zswap
1160 %package pmda-zswap
1161 License: GPLv2+
1162 Group: Applications/System
1163 Summary: Performance Co-Pilot (PCP) metrics for compressed swap
1164 URL: http://www.pcp.io
1165 %if !%{disable_python3}
1166 Requires: python3-pcp
1167 %else
1168 Requires: python-pcp
1169 %endif
1170 %description pmda-zswap
1171 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1172 collecting metrics about compressed swap.
1173 # end pcp-pmda-zswap
1176 # pcp-pmda-unbound
1178 %package pmda-unbound
1179 License: GPLv2+
1180 Group: Applications/System
1181 Summary: Performance Co-Pilot (PCP) metrics for the Unbound DNS Resolver
1182 URL: http://www.pcp.io
1183 %if !%{disable_python3}
1184 Requires: python3-pcp
1185 %else
1186 Requires: python-pcp
1187 %endif
1188 %description pmda-unbound
1189 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1190 collecting metrics about the Unbound DNS Resolver.
1191 # end pcp-pmda-unbound
1194 # pcp-pmda-mic
1196 %package pmda-mic
1197 License: GPLv2+
1198 Group: Applications/System
1199 Summary: Performance Co-Pilot (PCP) metrics for Intel MIC cards
1200 URL: http://www.pcp.io
1201 %if !%{disable_python3}
1202 Requires: python3-pcp
1203 %else
1204 Requires: python-pcp
1205 %endif
1206 %description pmda-mic
1207 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1208 collecting metrics about Intel MIC cards.
1209 # end pcp-pmda-mic
1211 %endif # !%{disable_python2} || !%{disable_python3}
1213 %if !%{disable_json}
1215 # pcp-pmda-json
1217 %package pmda-json
1218 License: GPLv2+
1219 Group: Applications/System
1220 Summary: Performance Co-Pilot (PCP) metrics for JSON data
1221 URL: http://www.pcp.io
1222 %if !%{disable_python3}
1223 Requires: python3-pcp
1224 Requires: python3-jsonpointer python3-six
1225 BuildRequires: python3-jsonpointer python3-six
1226 %else
1227 Requires: python-pcp
1228 Requires: python-jsonpointer python-six
1229 BuildRequires: python-jsonpointer python-six
1230 %endif
1231 %description pmda-json
1232 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1233 collecting metrics output in JSON.
1234 # end pcp-pmda-json
1235 %endif # !%{disable_json}
1238 # C pmdas
1239 # pcp-pmda-apache
1241 %package pmda-apache
1242 License: GPLv2+
1243 Group: Applications/System
1244 Summary: Performance Co-Pilot (PCP) metrics for the Apache webserver
1245 URL: http://www.pcp.io
1246 Requires: pcp-libs = %{version}-%{release}
1247 %description pmda-apache
1248 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1249 collecting metrics about the Apache webserver.
1250 # end pcp-pmda-apache
1253 # pcp-pmda-bash
1255 %package pmda-bash
1256 License: GPLv2+
1257 Group: Applications/System
1258 Summary: Performance Co-Pilot (PCP) metrics for the Bash shell
1259 URL: http://www.pcp.io
1260 Requires: pcp-libs = %{version}-%{release}
1261 %description pmda-bash
1262 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1263 collecting metrics about the Bash shell.
1264 # end pcp-pmda-bash
1267 # pcp-pmda-cifs
1269 %package pmda-cifs
1270 License: GPLv2+
1271 Group: Applications/System
1272 Summary: Performance Co-Pilot (PCP) metrics for the Cifs shell
1273 URL: http://www.pcp.io
1274 Requires: pcp-libs = %{version}-%{release}
1275 %description pmda-cifs
1276 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1277 collecting metrics about the Common Internet Filesytem.
1278 # end pcp-pmda-cifs
1281 # pcp-pmda-cisco
1283 %package pmda-cisco
1284 License: GPLv2+
1285 Group: Applications/System
1286 Summary: Performance Co-Pilot (PCP) metrics for the Cisco shell
1287 URL: http://www.pcp.io
1288 Requires: pcp-libs = %{version}-%{release}
1289 %description pmda-cisco
1290 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1291 collecting metrics about Cisco routers.
1292 # end pcp-pmda-cisco
1295 # pcp-pmda-gfs2
1297 %package pmda-gfs2
1298 License: GPLv2+
1299 Group: Applications/System
1300 Summary: Performance Co-Pilot (PCP) metrics for the Gfs2 shell
1301 URL: http://www.pcp.io
1302 Requires: pcp-libs = %{version}-%{release}
1303 %description pmda-gfs2
1304 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1305 collecting metrics about the Global Filesystem v2.
1306 # end pcp-pmda-gfs2
1309 # pcp-pmda-lmsensors
1311 %package pmda-lmsensors
1312 License: GPLv2+
1313 Group: Applications/System
1314 Summary: Performance Co-Pilot (PCP) metrics for the Lmsensors shell
1315 URL: http://www.pcp.io
1316 Requires: pcp-libs = %{version}-%{release}
1317 %description pmda-lmsensors
1318 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1319 collecting metrics about the Linux hardware monitoring sensors.
1320 # end pcp-pmda-lmsensors
1323 # pcp-pmda-logger
1325 %package pmda-logger
1326 License: GPLv2+
1327 Group: Applications/System
1328 Summary: Performance Co-Pilot (PCP) metrics from arbitrary log files
1329 URL: http://www.pcp.io
1330 Requires: pcp-libs = %{version}-%{release}
1331 %description pmda-logger
1332 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1333 collecting metrics from a specified set of log files (or pipes). The PMDA
1334 supports both sampled and event-style metrics.
1335 # end pcp-pmda-logger
1338 # pcp-pmda-mailq
1340 %package pmda-mailq
1341 License: GPLv2+
1342 Group: Applications/System
1343 Summary: Performance Co-Pilot (PCP) metrics for the Mailq shell
1344 URL: http://www.pcp.io
1345 Requires: pcp-libs = %{version}-%{release}
1346 %description pmda-mailq
1347 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1348 collecting metrics about email queues managed by sendmail.
1349 # end pcp-pmda-mailq
1352 # pcp-pmda-mounts
1354 %package pmda-mounts
1355 License: GPLv2+
1356 Group: Applications/System
1357 Summary: Performance Co-Pilot (PCP) metrics for the Mounts shell
1358 URL: http://www.pcp.io
1359 Requires: pcp-libs = %{version}-%{release}
1360 %description pmda-mounts
1361 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1362 collecting metrics about filesystem mounts.
1363 # end pcp-pmda-mounts
1366 # pcp-pmda-nvidia-gpu
1368 %package pmda-nvidia-gpu
1369 License: GPLv2+
1370 Group: Applications/System
1371 Summary: Performance Co-Pilot (PCP) metrics for the Nvidia shell
1372 URL: http://www.pcp.io
1373 Requires: pcp-libs = %{version}-%{release}
1374 %description pmda-nvidia-gpu
1375 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1376 collecting metrics about the Nvidia gpu metrics.
1377 # end pcp-pmda-nvidia-gpu
1380 # pcp-pmda-roomtemp
1382 %package pmda-roomtemp
1383 License: GPLv2+
1384 Group: Applications/System
1385 Summary: Performance Co-Pilot (PCP) metrics for the Roomtemp shell
1386 URL: http://www.pcp.io
1387 Requires: pcp = %{version}-%{release}
1388 Requires: pcp-libs = %{version}-%{release}
1389 %description pmda-roomtemp
1390 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1391 collecting metrics about the Room temperature metrics.
1392 # end pcp-pmda-roomtemp
1394 %if !%{disable_rpm}
1396 # pcp-pmda-rpm
1398 %package pmda-rpm
1399 License: GPLv2+
1400 Group: Applications/System
1401 Summary: Performance Co-Pilot (PCP) metrics for the Rpm shell
1402 URL: http://www.pcp.io
1403 Requires: pcp = %{version}-%{release}
1404 Requires: pcp-libs = %{version}-%{release}
1405 %description pmda-rpm
1406 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1407 collecting metrics about the rpms.
1408 # end pcp-pmda-rpm
1409 %endif
1412 # pcp-pmda-sendmail
1414 %package pmda-sendmail
1415 License: GPLv2+
1416 Group: Applications/System
1417 Summary: Performance Co-Pilot (PCP) metrics for the Sendmail shell
1418 URL: http://www.pcp.io
1419 Requires: pcp = %{version}-%{release}
1420 Requires: pcp-libs = %{version}-%{release}
1421 %description pmda-sendmail
1422 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1423 collecting metrics about Sendmail traffic metrics.
1424 # end pcp-pmda-sendmail
1427 # pcp-pmda-shping
1429 %package pmda-shping
1430 License: GPLv2+
1431 Group: Applications/System
1432 Summary: Performance Co-Pilot (PCP) metrics for the Shping shell
1433 URL: http://www.pcp.io
1434 Requires: pcp-libs = %{version}-%{release}
1435 %description pmda-shping
1436 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1437 collecting metrics about quality of service and response time measurements of
1438 arbitrary shell commands.
1439 # end pcp-pmda-shping
1442 # pcp-pmda-summary
1444 %package pmda-summary
1445 License: GPLv2+
1446 Group: Applications/System
1447 Summary: Performance Co-Pilot (PCP) metrics for the Summary shell
1448 URL: http://www.pcp.io
1449 Requires: pcp = %{version}-%{release}
1450 Requires: pcp-libs = %{version}-%{release}
1451 %description pmda-summary
1452 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1453 collecting metrics about other installed pmdas.
1454 # end pcp-pmda-summary
1456 %if !%{disable_systemd}
1458 # pcp-pmda-systemd
1460 %package pmda-systemd
1461 License: GPLv2+
1462 Group: Applications/System
1463 Summary: Performance Co-Pilot (PCP) metrics for the Systemd shell
1464 URL: http://www.pcp.io
1465 Requires: pcp-libs = %{version}-%{release}
1466 %description pmda-systemd
1467 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1468 collecting metrics about the Systemd shell.
1469 # end pcp-pmda-systemd
1470 %endif
1473 # pcp-pmda-trace
1475 %package pmda-trace
1476 License: GPLv2+
1477 Group: Applications/System
1478 Summary: Performance Co-Pilot (PCP) metrics for the Trace shell
1479 URL: http://www.pcp.io
1480 Requires: pcp-libs = %{version}-%{release}
1481 %description pmda-trace
1482 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1483 collecting metrics about transaction performance metrics from applications.
1484 # end pcp-pmda-trace
1487 # pcp-pmda-weblog
1489 %package pmda-weblog
1490 License: GPLv2+
1491 Group: Applications/System
1492 Summary: Performance Co-Pilot (PCP) metrics for the Weblog shell
1493 URL: http://www.pcp.io
1494 Requires: pcp = %{version}-%{release}
1495 Requires: pcp-libs = %{version}-%{release}
1496 %description pmda-weblog
1497 This package contains the PCP Performance Metrics Domain Agent (PMDA) for
1498 collecting metrics about web server logs.
1499 # end pcp-pmda-weblog
1500 # end C pmdas
1502 # pcp-collector metapackage
1503 %package collector
1504 License: GPLv2+
1505 Group: Applications/System
1506 Summary: Performance Co-Pilot (PCP) Collection meta Package
1507 URL: http://www.pcp.io
1508 Requires: pcp-pmda-activemq pcp-pmda-bonding pcp-pmda-dbping pcp-pmda-ds389 pcp-pmda-ds389log
1509 Requires: pcp-pmda-elasticsearch pcp-pmda-gpfs pcp-pmda-gpsd pcp-pmda-kvm pcp-pmda-lustre
1510 Requires: pcp-pmda-memcache pcp-pmda-mysql pcp-pmda-named pcp-pmda-netfilter pcp-pmda-news
1511 Requires: pcp-pmda-nginx pcp-pmda-nfsclient pcp-pmda-pdns pcp-pmda-postfix pcp-pmda-postgresql pcp-pmda-oracle
1512 Requires: pcp-pmda-samba pcp-pmda-slurm pcp-pmda-vmware pcp-pmda-zimbra
1513 Requires: pcp-pmda-dm pcp-pmda-apache
1514 Requires: pcp-pmda-bash pcp-pmda-cisco pcp-pmda-gfs2 pcp-pmda-lmsensors pcp-pmda-mailq pcp-pmda-mounts
1515 Requires: pcp-pmda-nvidia-gpu pcp-pmda-roomtemp pcp-pmda-sendmail pcp-pmda-shping
1516 Requires: pcp-pmda-lustrecomm pcp-pmda-logger
1517 %if !%{disable_python2} || !%{disable_python3}
1518 Requires: pcp-pmda-gluster pcp-pmda-zswap pcp-pmda-unbound pcp-pmda-mic
1519 %endif
1520 %if !%{disable_snmp}
1521 Requires: pcp-pmda-snmp
1522 %endif
1523 %if !%{disable_json}
1524 Requires: pcp-pmda-json
1525 %endif
1526 %if !%{disable_rpm}
1527 Requires: pcp-pmda-rpm
1528 %endif
1529 Requires: pcp-pmda-summary pcp-pmda-trace pcp-pmda-weblog
1530 %description collector
1531 This meta-package installs the PCP metric collection dependencies. This
1532 includes the vast majority of packages used to collect PCP metrics. The
1533 pcp-collector package also automatically enables and starts the pmcd and
1534 pmlogger services.
1535 # collector
1537 # pcp-monitor metapackage
1538 %package monitor
1539 License: GPLv2+
1540 Group: Applications/System
1541 Summary: Performance Co-Pilot (PCP) Monitoring meta Package
1542 URL: http://www.pcp.io
1543 %if !%{disable_microhttpd}
1544 Requires: pcp-webapi
1545 %endif
1546 %if !%{disable_python2} || !%{disable_python3}
1547 Requires: pcp-system-tools
1548 %endif
1549 %if !%{disable_qt}
1550 Requires: pcp-gui
1551 %endif
1552 %description monitor
1553 This meta-package contains the PCP performance monitoring dependencies. This
1554 includes a large number of packages for analysing PCP metrics in various ways.
1555 # monitor
1557 %if !%{disable_python2}
1559 # python-pcp. This is the PCP library bindings for python.
1561 %package -n python-pcp
1562 License: GPLv2+
1563 Group: Development/Libraries
1564 Summary: Performance Co-Pilot (PCP) Python bindings and documentation
1565 URL: http://www.pcp.io
1566 Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
1567 %if 0%{?rhel} == 5
1568 Requires: python%{default_python}
1569 %else
1570 Requires: python
1571 %endif
1573 %description -n python-pcp
1574 This python PCP module contains the language bindings for
1575 Performance Metric API (PMAPI) monitor tools and Performance
1576 Metric Domain Agent (PMDA) collector tools written in Python.
1577 %endif
1579 %if !%{disable_python3}
1581 # python3-pcp. This is the PCP library bindings for python3.
1583 %package -n python3-pcp
1584 License: GPLv2+
1585 Group: Development/Libraries
1586 Summary: Performance Co-Pilot (PCP) Python3 bindings and documentation
1587 URL: http://www.pcp.io
1588 Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
1589 Requires: python3
1591 %description -n python3-pcp
1592 This python PCP module contains the language bindings for
1593 Performance Metric API (PMAPI) monitor tools and Performance
1594 Metric Domain Agent (PMDA) collector tools written in Python3.
1595 %endif
1597 %if !%{disable_python2} || !%{disable_python3}
1599 # pcp-system-tools
1601 %package -n pcp-system-tools
1602 License: GPLv2+
1603 Group: Development/Libraries
1604 Summary: Performance Co-Pilot (PCP) System and Monitoring Tools
1605 URL: http://www.pcp.io
1606 %if !%{disable_python3}
1607 Requires: python3-pcp = %{version}-%{release}
1608 %endif
1609 %if !%{disable_python2}
1610 Requires: python-pcp = %{version}-%{release}
1611 %endif
1612 Requires: pcp-libs = %{version}-%{release}
1613 %description -n pcp-system-tools
1614 This PCP module contains additional system monitoring tools written
1615 in python.
1616 %endif #end pcp-system-tools
1618 %if !%{disable_qt}
1620 # pcp-gui package for Qt tools
1622 %package -n pcp-gui
1623 License: GPLv2+ and LGPLv2+ and LGPLv2+ with exceptions
1624 Group: Applications/System
1625 Summary: Visualization tools for the Performance Co-Pilot toolkit
1626 URL: http://www.pcp.io
1627 Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
1629 %description -n pcp-gui
1630 Visualization tools for the Performance Co-Pilot toolkit.
1631 The pcp-gui package primarily includes visualization tools for
1632 monitoring systems using live and archived Performance Co-Pilot
1633 (PCP) sources.
1634 %endif
1637 # pcp-doc package
1639 %package -n pcp-doc
1640 License: GPLv2+ and CC-BY
1641 Group: Documentation
1642 %if !%{disable_noarch}
1643 BuildArch: noarch
1644 %endif
1645 Summary: Documentation and tutorial for the Performance Co-Pilot
1646 URL: http://www.pcp.io
1647 # http://fedoraproject.org/wiki/Packaging:Conflicts "Splitting Packages"
1648 # (all man pages migrated to pcp-doc during great package split of '15)
1649 Conflicts: pcp-pmda-pmda < 3.10.5
1650 Conflicts: pcp-pmda-infiniband < 3.10.5
1652 %description -n pcp-doc
1653 Documentation and tutorial for the Performance Co-Pilot
1654 Performance Co-Pilot (PCP) provides a framework and services to support
1655 system-level performance monitoring and performance management.
1657 The pcp-doc package provides useful information on using and
1658 configuring the Performance Co-Pilot (PCP) toolkit for system
1659 level performance management. It includes tutorials, HOWTOs,
1660 and other detailed documentation about the internals of core
1661 PCP utilities and daemons, and the PCP graphical tools.
1663 %prep
1664 %setup -q
1665 %setup -q -T -D -a 1 -c -n pcp-%{version}/vector
1666 %setup -q -T -D -a 2
1668 %clean
1669 rm -Rf $RPM_BUILD_ROOT
1671 %build
1672 %if !%{disable_python2} && 0%{?default_python} != 3
1673 export PYTHON=python%{?default_python}
1674 %endif
1675 %configure %{?_with_initd} %{?_with_doc} %{?_with_ib} %{?_with_papi} %{?_with_perfevent} %{?_with_json} %{?_with_snmp}
1676 make %{?_smp_mflags} default_pcp
1678 %install
1679 rm -Rf $RPM_BUILD_ROOT
1680 export NO_CHOWN=true DIST_ROOT=$RPM_BUILD_ROOT
1681 make install_pcp
1683 PCP_GUI='pmchart|pmconfirm|pmdumptext|pmmessage|pmquery|pmsnap|pmtime'
1685 # Fix stuff we do/don't want to ship
1686 rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
1688 # remove sheet2pcp until BZ 830923 and BZ 754678 are resolved.
1689 rm -f $RPM_BUILD_ROOT/%{_bindir}/sheet2pcp $RPM_BUILD_ROOT/%{_mandir}/man1/sheet2pcp.1*
1691 # remove {config,platform}sz.h as these are not multilib friendly.
1692 rm -f $RPM_BUILD_ROOT/%{_includedir}/pcp/configsz.h
1693 rm -f $RPM_BUILD_ROOT/%{_includedir}/pcp/platformsz.h
1695 %if %{disable_microhttpd}
1696 rm -fr $RPM_BUILD_ROOT/%{_confdir}/pmwebd
1697 rm -fr $RPM_BUILD_ROOT/%{_initddir}/pmwebd
1698 rm -fr $RPM_BUILD_ROOT/%{_unitdir}/pmwebd.service
1699 rm -f $RPM_BUILD_ROOT/%{_libexecdir}/pcp/bin/pmwebd
1700 %endif
1701 # prefer latest released Netflix version over pcp-webjs copy.
1702 rm -fr pcp-webjs/vector
1703 sed -i -e 's/vector [0-9]\.[0-9]*\.[0-9]*/vector/g' pcp-webjs/index.html
1704 mv pcp-webjs/* $RPM_BUILD_ROOT/%{_datadir}/pcp/webapps
1705 rmdir pcp-webjs
1706 mv vector $RPM_BUILD_ROOT/%{_datadir}/pcp/webapps
1708 %if %{disable_infiniband}
1709 # remove pmdainfiniband on platforms lacking IB devel packages.
1710 rm -f $RPM_BUILD_ROOT/%{_pmdasdir}/ib
1711 rm -fr $RPM_BUILD_ROOT/%{_pmdasdir}/infiniband
1712 %endif
1714 %if %{disable_qt}
1715 rm -fr $RPM_BUILD_ROOT/%{_pixmapdir}
1716 rm -fr $RPM_BUILD_ROOT/%{_confdir}/pmsnap
1717 rm -fr $RPM_BUILD_ROOT/%{_localstatedir}/lib/pcp/config/pmsnap
1718 rm -fr $RPM_BUILD_ROOT/%{_localstatedir}/lib/pcp/config/pmchart
1719 rm -f $RPM_BUILD_ROOT/%{_localstatedir}/lib/pcp/config/pmafm/pcp-gui
1720 rm -f $RPM_BUILD_ROOT/%{_datadir}/applications/pmchart.desktop
1721 rm -f `find $RPM_BUILD_ROOT/%{_mandir}/man1 | grep -E "$PCP_GUI"`
1722 %else
1723 rm -rf $RPM_BUILD_ROOT/usr/share/doc/pcp-gui
1724 desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/pmchart.desktop
1725 %endif
1727 # default chkconfig off for Fedora and RHEL
1728 for f in $RPM_BUILD_ROOT/%{_initddir}/{pcp,pmcd,pmlogger,pmie,pmwebd,pmmgr,pmproxy}; do
1729 test -f "$f" || continue
1730 sed -i -e '/^# chkconfig/s/:.*$/: - 95 05/' -e '/^# Default-Start:/s/:.*$/:/' $f
1731 done
1733 # list of PMDAs in the base pkg
1734 ls -1 $RPM_BUILD_ROOT/%{_pmdasdir} |\
1735 grep -E -v '^simple|sample|trivial|txmon' |\
1736 grep -E -v '^perfevent|perfalloc.1' |\
1737 grep -E -v '^ib$|^infiniband' |\
1738 grep -E -v '^papi' |\
1739 grep -E -v '^activemq' |\
1740 grep -E -v '^bonding' |\
1741 grep -E -v '^dbping' |\
1742 grep -E -v '^ds389log'|\
1743 grep -E -v '^ds389' |\
1744 grep -E -v '^elasticsearch' |\
1745 grep -E -v '^gpfs' |\
1746 grep -E -v '^gpsd' |\
1747 grep -E -v '^kvm' |\
1748 grep -E -v '^lustre' |\
1749 grep -E -v '^lustrecomm' |\
1750 grep -E -v '^memcache' |\
1751 grep -E -v '^mysql' |\
1752 grep -E -v '^named' |\
1753 grep -E -v '^netfilter' |\
1754 grep -E -v '^news' |\
1755 grep -E -v '^nfsclient' |\
1756 grep -E -v '^nginx' |\
1757 grep -E -v '^oracle' |\
1758 grep -E -v '^pdns' |\
1759 grep -E -v '^postfix' |\
1760 grep -E -v '^postgresql' |\
1761 grep -E -v '^rsyslog' |\
1762 grep -E -v '^samba' |\
1763 grep -E -v '^slurm' |\
1764 grep -E -v '^snmp' |\
1765 grep -E -v '^vmware' |\
1766 grep -E -v '^zimbra' |\
1767 grep -E -v '^dm' |\
1768 grep -E -v '^apache' |\
1769 grep -E -v '^bash' |\
1770 grep -E -v '^cifs' |\
1771 grep -E -v '^cisco' |\
1772 grep -E -v '^gfs2' |\
1773 grep -E -v '^lmsensors' |\
1774 grep -E -v '^logger' |\
1775 grep -E -v '^mailq' |\
1776 grep -E -v '^mounts' |\
1777 grep -E -v '^nvidia' |\
1778 grep -E -v '^roomtemp' |\
1779 grep -E -v '^sendmail' |\
1780 grep -E -v '^shping' |\
1781 grep -E -v '^summary' |\
1782 grep -E -v '^trace' |\
1783 grep -E -v '^weblog' |\
1784 grep -E -v '^rpm' |\
1785 grep -E -v '^json' |\
1786 grep -E -v '^mic' |\
1787 grep -E -v '^gluster' |\
1788 grep -E -v '^zswap' |\
1789 grep -E -v '^unbound' |\
1790 sed -e 's#^#'%{_pmdasdir}'\/#' >base_pmdas.list
1792 # all base pcp package files except those split out into sub packages
1793 ls -1 $RPM_BUILD_ROOT/%{_bindir} |\
1794 grep -E -v 'pmiostat|pmcollectl|pmatop|zabbix|zbxpcp' |\
1795 grep -E -v 'pmrep|pcp2graphite|pcp2influxdb' |\
1796 grep -E -v 'pmdbg|pmclient|pmerr|genpmda' |\
1797 sed -e 's#^#'%{_bindir}'\/#' >base_bin.list
1799 # Separate the pcp-system-tools package files.
1801 # pmatop, pmcollectl and pmiostat are back-compat symlinks to their
1802 # pcp(1) sub-command variants so must also be in pcp-system-tools.
1803 %if !%{disable_python2} || !%{disable_python3}
1804 ls -1 $RPM_BUILD_ROOT/%{_bindir} |\
1805 grep -E 'pmiostat|pmcollectl|pmatop|pmrep' |\
1806 sed -e 's#^#'%{_bindir}'\/#' >pcp_system_tools.list
1807 ls -1 $RPM_BUILD_ROOT/%{_libexecdir}/pcp/bin |\
1808 grep -E 'atop|collectl|dmcache|free|iostat|mpstat|numastat|pidstat|verify|uptime|shping' |\
1809 sed -e 's#^#'%{_libexecdir}/pcp/bin'\/#' >>pcp_system_tools.list
1810 %endif
1812 ls -1 $RPM_BUILD_ROOT/%{_libexecdir}/pcp/bin |\
1813 %if !%{disable_python2} || !%{disable_python3}
1814 grep -E -v 'atop|collectl|dmcache|free|iostat|mpstat|numastat|pidstat|verify|uptime|shping' |\
1815 %endif
1816 sed -e 's#^#'%{_libexecdir}/pcp/bin'\/#' >base_exec.list
1817 ls -1 $RPM_BUILD_ROOT/%{_booksdir} |\
1818 sed -e 's#^#'%{_booksdir}'\/#' > pcp-doc.list
1819 ls -1 $RPM_BUILD_ROOT/%{_mandir}/man1 |\
1820 sed -e 's#^#'%{_mandir}'\/man1\/#' >>pcp-doc.list
1821 ls -1 $RPM_BUILD_ROOT/%{_mandir}/man5 |\
1822 sed -e 's#^#'%{_mandir}'\/man5\/#' >>pcp-doc.list
1823 ls -1 $RPM_BUILD_ROOT/%{_datadir}/pcp/demos/tutorials |\
1824 sed -e 's#^#'%{_datadir}/pcp/demos/tutorials'\/#' >>pcp-doc.list
1825 %if !%{disable_qt}
1826 ls -1 $RPM_BUILD_ROOT/%{_pixmapdir} |\
1827 sed -e 's#^#'%{_pixmapdir}'\/#' > pcp-gui.list
1828 cat base_bin.list base_exec.list base_man.list |\
1829 grep -E "$PCP_GUI" >> pcp-gui.list
1830 %endif
1831 cat base_pmdas.list base_bin.list base_exec.list base_man.list |\
1832 grep -E -v 'pmdaib|pmmgr|pmweb|pmsnap|2pcp|pmdas/systemd' |\
1833 grep -E -v "$PCP_GUI|pixmaps|pcp-doc|tutorials" |\
1834 grep -E -v %{_confdir} | grep -E -v %{_logsdir} > base.list
1836 # all devel pcp package files except those split out into sub packages
1837 ls -1 $RPM_BUILD_ROOT/%{_mandir}/man3 |\
1838 sed -e 's#^#'%{_mandir}'\/man3\/#' | grep -v '3pm' >>pcp-doc.list
1839 ls -1 $RPM_BUILD_ROOT/%{_datadir}/pcp/demos |\
1840 sed -e 's#^#'%{_datadir}'\/pcp\/demos\/#' | grep -E -v tutorials >> devel.list
1841 ls -1 $RPM_BUILD_ROOT/%{_bindir} |\
1842 grep -E 'pmdbg|pmclient|pmerr|genpmda' |\
1843 sed -e 's#^#'%{_bindir}'\/#' >>devel.list
1845 %pre testsuite
1846 test -d %{_testsdir} || mkdir -p -m 755 %{_testsdir}
1847 getent group pcpqa >/dev/null || groupadd -r pcpqa
1848 getent passwd pcpqa >/dev/null || \
1849 useradd -c "PCP Quality Assurance" -g pcpqa -d %{_testsdir} -M -r -s /bin/bash pcpqa 2>/dev/null
1850 chown -R pcpqa:pcpqa %{_testsdir} 2>/dev/null
1851 exit 0
1853 %post testsuite
1854 chown -R pcpqa:pcpqa %{_testsdir} 2>/dev/null
1855 exit 0
1857 %pre
1858 getent group pcp >/dev/null || groupadd -r pcp
1859 getent passwd pcp >/dev/null || \
1860 useradd -c "Performance Co-Pilot" -g pcp -d %{_localstatedir}/lib/pcp -M -r -s /sbin/nologin pcp
1861 PCP_CONFIG_DIR=%{_localstatedir}/lib/pcp/config
1862 PCP_SYSCONF_DIR=%{_confdir}
1863 PCP_LOG_DIR=%{_logsdir}
1864 PCP_ETC_DIR=%{_sysconfdir}
1865 # rename crontab files to align with current Fedora packaging guidelines
1866 for crontab in pmlogger pmie
1868 test -f "$PCP_ETC_DIR/cron.d/$crontab" || continue
1869 mv -f "$PCP_ETC_DIR/cron.d/$crontab" "$PCP_ETC_DIR/cron.d/pcp-$crontab"
1870 done
1871 # produce a script to run post-install to move configs to their new homes
1872 save_configs_script()
1874 _new="$1"
1875 shift
1876 for _dir
1878 [ "$_dir" = "$_new" ] && continue
1879 if [ -d "$_dir" ]
1880 then
1881 ( cd "$_dir" ; find . -maxdepth 1 -type f ) | sed -e 's/^\.\///' \
1882 | while read _file
1884 [ "$_file" = "control" ] && continue
1885 _want=true
1886 if [ -f "$_new/$_file" ]
1887 then
1888 # file exists in both directories, pick the more
1889 # recently modified one
1890 _try=`find "$_dir/$_file" -newer "$_new/$_file" -print`
1891 [ -n "$_try" ] || _want=false
1893 $_want && echo cp -p "$_dir/$_file" "$_new/$_file"
1894 done
1896 done
1898 # migrate and clean configs if we have had a previous in-use installation
1899 [ -d "$PCP_LOG_DIR" ] || exit 0 # no configuration file upgrades required
1900 rm -f "$PCP_LOG_DIR/configs.sh"
1901 for daemon in pmie pmlogger
1903 save_configs_script >> "$PCP_LOG_DIR/configs.sh" "$PCP_CONFIG_DIR/$daemon" \
1904 "$PCP_SYSCONF_DIR/$daemon"
1905 done
1906 for daemon in pmcd pmproxy
1908 save_configs_script >> "$PCP_LOG_DIR/configs.sh" "$PCP_SYSCONF_DIR/$daemon"\
1909 "$PCP_CONFIG_DIR/$daemon" /etc/$daemon
1910 done
1911 exit 0
1913 %if !%{disable_microhttpd}
1914 %preun webapi
1915 if [ "$1" -eq 0 ]
1916 then
1917 %if !%{disable_systemd}
1918 systemctl --no-reload disable pmwebd.service >/dev/null 2>&1
1919 systemctl stop pmwebd.service >/dev/null 2>&1
1920 %else
1921 /sbin/service pmwebd stop >/dev/null 2>&1
1922 /sbin/chkconfig --del pmwebd >/dev/null 2>&1
1923 %endif
1925 %endif
1927 %preun manager
1928 if [ "$1" -eq 0 ]
1929 then
1930 %if !%{disable_systemd}
1931 systemctl --no-reload disable pmmgr.service >/dev/null 2>&1
1932 systemctl stop pmmgr.service >/dev/null 2>&1
1933 %else
1934 /sbin/service pmmgr stop >/dev/null 2>&1
1935 /sbin/chkconfig --del pmmgr >/dev/null 2>&1
1936 %endif
1939 %if !%{disable_rpm}
1940 %preun pmda-rpm
1941 %{pmda_remove "$1" "rpm"}
1942 %endif #preun pmda-rpm
1944 %if !%{disable_papi}
1945 %preun pmda-papi
1946 %{pmda_remove "$1" "papi"}
1947 %endif #preun pmda-papi
1949 %if !%{disable_systemd}
1950 %preun pmda-systemd
1951 %{pmda_remove "$1" "systemd"}
1952 %endif #preun pmda-systemd
1954 %if !%{disable_infiniband}
1955 %preun pmda-infiniband
1956 %{pmda_remove "$1" "infiniband"}
1957 %endif #preun pmda-infiniband
1959 %if !%{disable_perfevent}
1960 %preun pmda-perfevent
1961 %{pmda_remove "$1" "perfevent"}
1962 %endif #preun pmda-perfevent
1964 %if !%{disable_json}
1965 %preun pmda-json
1966 %{pmda_remove "$1" "json"}
1967 %endif #preun pmda-json
1969 %preun pmda-nginx
1970 %{pmda_remove "$1" "nginx"}
1972 %preun pmda-oracle
1973 %{pmda_remove "$1" "oracle"}
1975 %preun pmda-postgresql
1976 %{pmda_remove "$1" "postgresql"}
1978 %preun pmda-postfix
1979 %{pmda_remove "$1" "postfix"}
1981 %preun pmda-elasticsearch
1982 %{pmda_remove "$1" "elasticsearch"}
1984 %if !%{disable_snmp}
1985 %preun pmda-snmp
1986 %{pmda_remove "$1" "snmp"}
1987 %endif
1989 %preun pmda-mysql
1990 %{pmda_remove "$1" "mysql"}
1992 %preun pmda-activemq
1993 %{pmda_remove "$1" "activemq"}
1995 %preun pmda-bonding
1996 %{pmda_remove "$1" "bonding"}
1998 %preun pmda-dbping
1999 %{pmda_remove "$1" "dbping"}
2001 %preun pmda-ds389
2002 %{pmda_remove "$1" "ds389"}
2004 %preun pmda-ds389log
2005 %{pmda_remove "$1" "ds389log"}
2007 %preun pmda-gpfs
2008 %{pmda_remove "$1" "gpfs"}
2010 %preun pmda-gpsd
2011 %{pmda_remove "$1" "gpsd"}
2013 %preun pmda-kvm
2014 %{pmda_remove "$1" "kvm"}
2016 %preun pmda-lustre
2017 %{pmda_remove "$1" "lustre"}
2019 %preun pmda-lustrecomm
2020 %{pmda_remove "$1" "lustrecomm"}
2022 %preun pmda-memcache
2023 %{pmda_remove "$1" "memcache"}
2025 %preun pmda-named
2026 %{pmda_remove "$1" "named"}
2028 %preun pmda-netfilter
2029 %{pmda_remove "$1" "netfilter"}
2031 %preun pmda-news
2032 %{pmda_remove "$1" "news"}
2034 %preun pmda-nfsclient
2035 %{pmda_remove "$1" "nfsclient"}
2037 %preun pmda-pdns
2038 %{pmda_remove "$1" "pdns"}
2040 %preun pmda-rsyslog
2041 %{pmda_remove "$1" "rsyslog"}
2043 %preun pmda-samba
2044 %{pmda_remove "$1" "samba"}
2046 %preun pmda-vmware
2047 %{pmda_remove "$1" "vmware"}
2049 %preun pmda-zimbra
2050 %{pmda_remove "$1" "zimbra"}
2052 %preun pmda-dm
2053 %{pmda_remove "$1" "dm"}
2055 %if !%{disable_python2} || !%{disable_python3}
2056 %preun pmda-gluster
2057 %{pmda_remove "$1" "gluster"}
2059 %preun pmda-zswap
2060 %{pmda_remove "$1" "zswap"}
2062 %preun pmda-unbound
2063 %{pmda_remove "$1" "unbound"}
2065 %preun pmda-mic
2066 %{pmda_remove "$1" "mic"}
2067 %endif # !%{disable_python[2,3]}
2069 %preun pmda-apache
2070 %{pmda_remove "$1" "apache"}
2072 %preun pmda-bash
2073 %{pmda_remove "$1" "bash"}
2075 %preun pmda-cifs
2076 %{pmda_remove "$1" "cifs"}
2078 %preun pmda-cisco
2079 %{pmda_remove "$1" "cisco"}
2081 %preun pmda-gfs2
2082 %{pmda_remove "$1" "gfs2"}
2084 %preun pmda-lmsensors
2085 %{pmda_remove "$1" "lmsensors"}
2087 %preun pmda-logger
2088 %{pmda_remove "$1" "logger"}
2090 %preun pmda-mailq
2091 %{pmda_remove "$1" "mailq"}
2093 %preun pmda-mounts
2094 %{pmda_remove "$1" "mounts"}
2096 %preun pmda-nvidia-gpu
2097 %{pmda_remove "$1" "nvidia"}
2099 %preun pmda-roomtemp
2100 %{pmda_remove "$1" "roomtemp"}
2102 %preun pmda-sendmail
2103 %{pmda_remove "$1" "sendmail"}
2105 %preun pmda-shping
2106 %{pmda_remove "$1" "shping"}
2108 %preun pmda-summary
2109 %{pmda_remove "$1" "summary"}
2111 %preun pmda-trace
2112 %{pmda_remove "$1" "trace"}
2114 %preun pmda-weblog
2115 %{pmda_remove "$1" "weblog"}
2117 %preun
2118 if [ "$1" -eq 0 ]
2119 then
2120 # stop daemons before erasing the package
2121 %if !%{disable_systemd}
2122 systemctl --no-reload disable pmlogger.service >/dev/null 2>&1
2123 systemctl --no-reload disable pmie.service >/dev/null 2>&1
2124 systemctl --no-reload disable pmproxy.service >/dev/null 2>&1
2125 systemctl --no-reload disable pmcd.service >/dev/null 2>&1
2127 systemctl stop pmlogger.service >/dev/null 2>&1
2128 systemctl stop pmie.service >/dev/null 2>&1
2129 systemctl stop pmproxy.service >/dev/null 2>&1
2130 systemctl stop pmcd.service >/dev/null 2>&1
2131 %else
2132 /sbin/service pmlogger stop >/dev/null 2>&1
2133 /sbin/service pmie stop >/dev/null 2>&1
2134 /sbin/service pmproxy stop >/dev/null 2>&1
2135 /sbin/service pmcd stop >/dev/null 2>&1
2137 /sbin/chkconfig --del pcp >/dev/null 2>&1
2138 /sbin/chkconfig --del pmcd >/dev/null 2>&1
2139 /sbin/chkconfig --del pmlogger >/dev/null 2>&1
2140 /sbin/chkconfig --del pmie >/dev/null 2>&1
2141 /sbin/chkconfig --del pmproxy >/dev/null 2>&1
2142 %endif
2143 # cleanup namespace state/flag, may still exist
2144 PCP_PMNS_DIR=%{_pmnsdir}
2145 rm -f "$PCP_PMNS_DIR/.NeedRebuild" >/dev/null 2>&1
2148 %if !%{disable_microhttpd}
2149 %post webapi
2150 chown -R pcp:pcp %{_logsdir}/pmwebd 2>/dev/null
2151 %if !%{disable_systemd}
2152 systemctl condrestart pmwebd.service >/dev/null 2>&1
2153 %else
2154 /sbin/chkconfig --add pmwebd >/dev/null 2>&1
2155 /sbin/service pmwebd condrestart
2156 %endif
2157 %endif
2159 %post manager
2160 chown -R pcp:pcp %{_logsdir}/pmmgr 2>/dev/null
2161 %if !%{disable_systemd}
2162 systemctl condrestart pmmgr.service >/dev/null 2>&1
2163 %else
2164 /sbin/chkconfig --add pmmgr >/dev/null 2>&1
2165 /sbin/service pmmgr condrestart
2166 %endif
2168 %post collector
2169 %if 0%{?rhel}
2170 %if !%{disable_systemd}
2171 systemctl restart pmcd >/dev/null 2>&1
2172 systemctl restart pmlogger >/dev/null 2>&1
2173 systemctl enable pmcd >/dev/null 2>&1
2174 systemctl enable pmlogger >/dev/null 2>&1
2175 %else
2176 /sbin/chkconfig --add pmcd >/dev/null 2>&1
2177 /sbin/chkconfig --add pmlogger >/dev/null 2>&1
2178 /sbin/service pmcd condrestart
2179 /sbin/service pmlogger condrestart
2180 %endif
2181 %endif
2183 %post
2184 PCP_LOG_DIR=%{_logsdir}
2185 PCP_PMNS_DIR=%{_pmnsdir}
2186 # restore saved configs, if any
2187 test -s "$PCP_LOG_DIR/configs.sh" && source "$PCP_LOG_DIR/configs.sh"
2188 rm -f $PCP_LOG_DIR/configs.sh
2190 # migrate old to new temp dir locations (within the same filesystem)
2191 migrate_tempdirs()
2193 _sub="$1"
2194 _new_tmp_dir=%{_tempsdir}
2195 _old_tmp_dir=%{_localstatedir}/tmp
2197 for d in "$_old_tmp_dir/$_sub" ; do
2198 test -d "$d" -a -k "$d" || continue
2199 cd "$d" || continue
2200 for f in * ; do
2201 [ "$f" != "*" ] || continue
2202 source="$d/$f"
2203 target="$_new_tmp_dir/$_sub/$f"
2204 [ "$source" != "$target" ] || continue
2205 [ -f "$target" ] || mv -fu "$source" "$target"
2206 done
2207 cd && rmdir "$d" 2>/dev/null
2208 done
2210 for daemon in mmv pmdabash pmie pmlogger
2212 migrate_tempdirs $daemon
2213 done
2214 chown -R pcp:pcp %{_logsdir}/pmcd 2>/dev/null
2215 chown -R pcp:pcp %{_logsdir}/pmlogger 2>/dev/null
2216 chown -R pcp:pcp %{_logsdir}/pmie 2>/dev/null
2217 chown -R pcp:pcp %{_logsdir}/pmproxy 2>/dev/null
2218 touch "$PCP_PMNS_DIR/.NeedRebuild"
2219 chmod 644 "$PCP_PMNS_DIR/.NeedRebuild"
2220 %if !%{disable_systemd}
2221 systemctl condrestart pmcd.service >/dev/null 2>&1
2222 systemctl condrestart pmlogger.service >/dev/null 2>&1
2223 systemctl condrestart pmie.service >/dev/null 2>&1
2224 systemctl condrestart pmproxy.service >/dev/null 2>&1
2225 %else
2226 /sbin/chkconfig --add pmcd >/dev/null 2>&1
2227 /sbin/service pmcd condrestart
2228 /sbin/chkconfig --add pmlogger >/dev/null 2>&1
2229 /sbin/service pmlogger condrestart
2230 /sbin/chkconfig --add pmie >/dev/null 2>&1
2231 /sbin/service pmie condrestart
2232 /sbin/chkconfig --add pmproxy >/dev/null 2>&1
2233 /sbin/service pmproxy condrestart
2234 %endif
2236 cd $PCP_PMNS_DIR && ./Rebuild -s && rm -f .NeedRebuild
2239 %post libs -p /sbin/ldconfig
2240 %postun libs -p /sbin/ldconfig
2242 %files -f base.list
2244 # Note: there are some headers (e.g. domain.h) and in a few cases some
2245 # C source files that rpmlint complains about. These are not devel files,
2246 # but rather they are (slightly obscure) PMDA config files.
2248 %doc CHANGELOG COPYING INSTALL.md README.md VERSION.pcp pcp.lsm
2250 %dir %{_confdir}
2251 %dir %{_pmdasdir}
2252 %dir %{_datadir}/pcp
2253 %dir %{_localstatedir}/lib/pcp
2254 %dir %{_localstatedir}/lib/pcp/config
2255 %dir %attr(0775,pcp,pcp) %{_tempsdir}
2256 %dir %attr(0775,pcp,pcp) %{_tempsdir}/pmie
2257 %dir %attr(0775,pcp,pcp) %{_tempsdir}/pmlogger
2258 %dir %attr(0700,root,root) %{_tempsdir}/pmcd
2260 %dir %{_datadir}/pcp/lib
2261 %{_datadir}/pcp/lib/ReplacePmnsSubtree
2262 %{_datadir}/pcp/lib/bashproc.sh
2263 %{_datadir}/pcp/lib/lockpmns
2264 %{_datadir}/pcp/lib/pmdaproc.sh
2265 %{_datadir}/pcp/lib/utilproc.sh
2266 %{_datadir}/pcp/lib/rc-proc.sh
2267 %{_datadir}/pcp/lib/rc-proc.sh.minimal
2268 %{_datadir}/pcp/lib/unlockpmns
2270 %dir %attr(0775,pcp,pcp) %{_logsdir}
2271 %attr(0775,pcp,pcp) %{_logsdir}/pmcd
2272 %attr(0775,pcp,pcp) %{_logsdir}/pmlogger
2273 %attr(0775,pcp,pcp) %{_logsdir}/pmie
2274 %attr(0775,pcp,pcp) %{_logsdir}/pmproxy
2275 %{_localstatedir}/lib/pcp/pmns
2276 %{_initddir}/pcp
2277 %{_initddir}/pmcd
2278 %{_initddir}/pmlogger
2279 %{_initddir}/pmie
2280 %{_initddir}/pmproxy
2281 %if !%{disable_systemd}
2282 %{_unitdir}/pmcd.service
2283 %{_unitdir}/pmlogger.service
2284 %{_unitdir}/pmie.service
2285 %{_unitdir}/pmproxy.service
2286 %endif
2287 %config(noreplace) %{_sysconfdir}/sasl2/pmcd.conf
2288 %config(noreplace) %{_sysconfdir}/cron.d/pcp-pmlogger
2289 %config(noreplace) %{_sysconfdir}/cron.d/pcp-pmie
2290 %config(noreplace) %{_sysconfdir}/sysconfig/pmlogger
2291 %config(noreplace) %{_sysconfdir}/sysconfig/pmproxy
2292 %config(noreplace) %{_sysconfdir}/sysconfig/pmcd
2293 %config %{_sysconfdir}/pcp.env
2294 %dir %{_confdir}/pmcd
2295 %config(noreplace) %{_confdir}/pmcd/pmcd.conf
2296 %config(noreplace) %{_confdir}/pmcd/pmcd.options
2297 %config(noreplace) %{_confdir}/pmcd/rc.local
2298 %dir %{_confdir}/pmproxy
2299 %config(noreplace) %{_confdir}/pmproxy/pmproxy.options
2300 %dir %{_confdir}/pmie
2301 %dir %{_confdir}/pmie/control.d
2302 %config(noreplace) %{_confdir}/pmie/control
2303 %config(noreplace) %{_confdir}/pmie/control.d/local
2304 %dir %{_confdir}/pmlogger
2305 %dir %{_confdir}/pmlogger/control.d
2306 %config(noreplace) %{_confdir}/pmlogger/control
2307 %config(noreplace) %{_confdir}/pmlogger/control.d/local
2308 %dir %attr(0775,pcp,pcp) %{_confdir}/nssdb
2310 %{_localstatedir}/lib/pcp/config/pmafm
2311 %dir %attr(0775,pcp,pcp) %{_localstatedir}/lib/pcp/config/pmie
2312 %{_localstatedir}/lib/pcp/config/pmie
2313 %{_localstatedir}/lib/pcp/config/pmieconf
2314 %dir %attr(0775,pcp,pcp) %{_localstatedir}/lib/pcp/config/pmlogger
2315 %{_localstatedir}/lib/pcp/config/pmlogger/*
2316 %{_localstatedir}/lib/pcp/config/pmlogconf
2317 %{_localstatedir}/lib/pcp/config/pmlogrewrite
2318 %dir %attr(0775,pcp,pcp) %{_localstatedir}/lib/pcp/config/pmda
2320 %{_datadir}/bash-completion/completions/pcp
2321 %{_datadir}/zsh/site-functions/_pcp
2323 %if !%{disable_sdt}
2324 %{tapsetdir}/pmcd.stp
2325 %endif
2327 %files monitor
2328 #empty
2330 %files collector
2331 #empty
2333 %files conf
2334 %dir %{_includedir}/pcp
2335 %{_includedir}/pcp/builddefs
2336 %{_includedir}/pcp/buildrules
2337 %config %{_sysconfdir}/pcp.conf
2338 %dir %{_localstatedir}/lib/pcp/config/derived
2339 %config %{_localstatedir}/lib/pcp/config/derived/*
2341 %files libs
2342 %{_libdir}/libpcp.so.3
2343 %{_libdir}/libpcp_gui.so.2
2344 %{_libdir}/libpcp_mmv.so.1
2345 %{_libdir}/libpcp_pmda.so.3
2346 %{_libdir}/libpcp_trace.so.2
2347 %{_libdir}/libpcp_import.so.1
2348 %{_libdir}/libpcp_web.so.1
2350 %files libs-devel
2351 %{_libdir}/libpcp.so
2352 %{_libdir}/libpcp_gui.so
2353 %{_libdir}/libpcp_mmv.so
2354 %{_libdir}/libpcp_pmda.so
2355 %{_libdir}/libpcp_trace.so
2356 %{_libdir}/libpcp_import.so
2357 %{_libdir}/libpcp_web.so
2358 %{_includedir}/pcp/*.h
2360 %files devel -f devel.list
2361 %{_datadir}/pcp/examples
2363 # PMDAs that ship src and are not for production use
2364 # straight out-of-the-box, for devel or QA use only.
2365 %{_pmdasdir}/simple
2366 %{_pmdasdir}/sample
2367 %{_pmdasdir}/trivial
2368 %{_pmdasdir}/txmon
2370 %files testsuite
2371 %defattr(-,pcpqa,pcpqa)
2372 %{_testsdir}
2374 %if !%{disable_microhttpd}
2375 %files webapi
2376 %{_initddir}/pmwebd
2377 %if !%{disable_systemd}
2378 %{_unitdir}/pmwebd.service
2379 %endif
2380 %{_libexecdir}/pcp/bin/pmwebd
2381 %attr(0775,pcp,pcp) %{_logsdir}/pmwebd
2382 %{_confdir}/pmwebd
2383 %config(noreplace) %{_confdir}/pmwebd/pmwebd.options
2384 # duplicate directories from pcp and pcp-webjs, but rpm copes with that.
2385 %dir %{_datadir}/pcp
2386 %dir %{_datadir}/pcp/webapps
2387 %endif
2389 %files webjs
2390 # duplicate directories from pcp and pcp-webapi, but rpm copes with that.
2391 %dir %{_datadir}/pcp
2392 %dir %{_datadir}/pcp/webapps
2393 %{_datadir}/pcp/webapps/*.png
2394 %{_datadir}/pcp/webapps/*.ico
2395 %{_datadir}/pcp/webapps/*.html
2396 %{_datadir}/pcp/webapps/*.txt
2397 %{_datadir}/pcp/webapps/blinkenlights
2399 %files webapp-grafana
2400 %dir %{_datadir}/pcp
2401 %dir %{_datadir}/pcp/webapps
2402 %{_datadir}/pcp/webapps/grafana
2404 %files webapp-graphite
2405 %dir %{_datadir}/pcp
2406 %dir %{_datadir}/pcp/webapps
2407 %{_datadir}/pcp/webapps/graphite
2409 %files webapp-vector
2410 %dir %{_datadir}/pcp
2411 %dir %{_datadir}/pcp/webapps
2412 %{_datadir}/pcp/webapps/vector
2414 %files manager
2415 %{_initddir}/pmmgr
2416 %if !%{disable_systemd}
2417 %{_unitdir}/pmmgr.service
2418 %endif
2419 %{_libexecdir}/pcp/bin/pmmgr
2420 %attr(0775,pcp,pcp) %{_logsdir}/pmmgr
2421 %config(missingok,noreplace) %{_confdir}/pmmgr
2422 %config(noreplace) %{_confdir}/pmmgr/pmmgr.options
2424 %files import-sar2pcp
2425 %{_bindir}/sar2pcp
2427 %files import-iostat2pcp
2428 %{_bindir}/iostat2pcp
2430 %files import-mrtg2pcp
2431 %{_bindir}/mrtg2pcp
2433 %files import-ganglia2pcp
2434 %{_bindir}/ganglia2pcp
2436 %files import-collectl2pcp
2437 %{_bindir}/collectl2pcp
2439 %if !%{disable_papi}
2440 %files pmda-papi
2441 %{_pmdasdir}/papi
2442 %endif
2444 %if !%{disable_perfevent}
2445 %files pmda-perfevent
2446 %{_pmdasdir}/perfevent
2447 %config(noreplace) %{_pmdasdir}/perfevent/perfevent.conf
2448 %endif
2450 %if !%{disable_infiniband}
2451 %files pmda-infiniband
2452 %{_pmdasdir}/ib
2453 %{_pmdasdir}/infiniband
2454 %endif
2456 %files pmda-activemq
2457 %{_pmdasdir}/activemq
2459 %files pmda-bonding
2460 %{_pmdasdir}/bonding
2462 %files pmda-dbping
2463 %{_pmdasdir}/dbping
2465 %files pmda-ds389log
2466 %{_pmdasdir}/ds389log
2468 %files pmda-ds389
2469 %{_pmdasdir}/ds389
2471 %files pmda-elasticsearch
2472 %{_pmdasdir}/elasticsearch
2474 %files pmda-gpfs
2475 %{_pmdasdir}/gpfs
2477 %files pmda-gpsd
2478 %{_pmdasdir}/gpsd
2480 %files pmda-kvm
2481 %{_pmdasdir}/kvm
2483 %files pmda-lustre
2484 %{_pmdasdir}/lustre
2486 %files pmda-lustrecomm
2487 %{_pmdasdir}/lustrecomm
2489 %files pmda-memcache
2490 %{_pmdasdir}/memcache
2492 %files pmda-mysql
2493 %{_pmdasdir}/mysql
2495 %files pmda-named
2496 %{_pmdasdir}/named
2498 %files pmda-netfilter
2499 %{_pmdasdir}/netfilter
2501 %files pmda-news
2502 %{_pmdasdir}/news
2504 %files pmda-nginx
2505 %{_pmdasdir}/nginx
2507 %files pmda-nfsclient
2508 %{_pmdasdir}/nfsclient
2510 %files pmda-oracle
2511 %{_pmdasdir}/oracle
2513 %files pmda-pdns
2514 %{_pmdasdir}/pdns
2516 %files pmda-postfix
2517 %{_pmdasdir}/postfix
2519 %files pmda-postgresql
2520 %{_pmdasdir}/postgresql
2522 %files pmda-rsyslog
2523 %{_pmdasdir}/rsyslog
2525 %files pmda-samba
2526 %{_pmdasdir}/samba
2528 %if !%{disable_snmp}
2529 %files pmda-snmp
2530 %{_pmdasdir}/snmp
2531 %endif
2533 %files pmda-slurm
2534 %{_pmdasdir}/slurm
2536 %files pmda-vmware
2537 %{_pmdasdir}/vmware
2539 %files pmda-zimbra
2540 %{_pmdasdir}/zimbra
2542 %files pmda-dm
2543 %{_pmdasdir}/dm
2545 %if !%{disable_python2} || !%{disable_python3}
2546 %files pmda-gluster
2547 %{_pmdasdir}/gluster
2549 %files pmda-zswap
2550 %{_pmdasdir}/zswap
2552 %files pmda-unbound
2553 %{_pmdasdir}/unbound
2555 %files pmda-mic
2556 %{_pmdasdir}/mic
2558 %files export-pcp2graphite
2559 %{_bindir}/pcp2graphite
2561 %files export-pcp2influxdb
2562 %{_bindir}/pcp2influxdb
2563 %endif # !%{disable_python2} || !%{disable_python3}
2565 %files export-zabbix-agent
2566 %{_libdir}/zabbix
2568 %if !%{disable_json}
2569 %files pmda-json
2570 %{_pmdasdir}/json
2571 %endif
2573 %files pmda-apache
2574 %{_pmdasdir}/apache
2576 %files pmda-bash
2577 %{_pmdasdir}/bash
2579 %files pmda-cifs
2580 %{_pmdasdir}/cifs
2582 %files pmda-cisco
2583 %{_pmdasdir}/cisco
2585 %files pmda-gfs2
2586 %{_pmdasdir}/gfs2
2588 %files pmda-lmsensors
2589 %{_pmdasdir}/lmsensors
2591 %files pmda-logger
2592 %{_pmdasdir}/logger
2594 %files pmda-mailq
2595 %{_pmdasdir}/mailq
2597 %files pmda-mounts
2598 %{_pmdasdir}/mounts
2600 %files pmda-nvidia-gpu
2601 %{_pmdasdir}/nvidia
2603 %files pmda-roomtemp
2604 %{_pmdasdir}/roomtemp
2606 %if !%{disable_rpm}
2607 %files pmda-rpm
2608 %{_pmdasdir}/rpm
2609 %endif
2611 %files pmda-sendmail
2612 %{_pmdasdir}/sendmail
2614 %files pmda-shping
2615 %{_pmdasdir}/shping
2617 %files pmda-summary
2618 %{_pmdasdir}/summary
2620 %if !%{disable_systemd}
2621 %files pmda-systemd
2622 %{_pmdasdir}/systemd
2623 %endif
2625 %files pmda-trace
2626 %{_pmdasdir}/trace
2628 %files pmda-weblog
2629 %{_pmdasdir}/weblog
2631 %files -n perl-PCP-PMDA -f perl-pcp-pmda.list
2633 %files -n perl-PCP-MMV -f perl-pcp-mmv.list
2635 %files -n perl-PCP-LogImport -f perl-pcp-logimport.list
2637 %files -n perl-PCP-LogSummary -f perl-pcp-logsummary.list
2639 %if !%{disable_python2}
2640 %files -n python-pcp -f python-pcp.list.rpm
2641 %endif
2643 %if !%{disable_python3}
2644 %files -n python3-pcp -f python3-pcp.list.rpm
2645 %endif
2647 %if !%{disable_qt}
2648 %files -n pcp-gui -f pcp-gui.list
2650 %{_confdir}/pmsnap
2651 %config(noreplace) %{_confdir}/pmsnap/control
2652 %{_localstatedir}/lib/pcp/config/pmsnap
2653 %{_localstatedir}/lib/pcp/config/pmchart
2654 %{_localstatedir}/lib/pcp/config/pmafm/pcp-gui
2655 %{_datadir}/applications/pmchart.desktop
2656 %endif
2658 %files -n pcp-doc -f pcp-doc.list
2660 %if !%{disable_python2} || !%{disable_python3}
2661 %files -n pcp-system-tools -f pcp_system_tools.list
2662 %dir %{_confdir}/pmrep
2663 %config(noreplace) %{_confdir}/pmrep/pmrep.conf
2664 %endif
2666 %changelog
2667 * Fri Aug 05 2016 Nathan Scott <nathans@redhat.com> - 3.11.4-1
2668 - Work in progress, see http://pcp.io/roadmap
2670 * Fri Jun 17 2016 Nathan Scott <nathans@redhat.com> - 3.11.3-1
2671 - Fix memory leak in derived metrics error handling (BZ 1331973)
2672 - Correctly propogate indom in mixed derived metrics (BZ 1337212, BZ 1336130)
2673 - Disallow stopping pmie/pmlogger daemons from cron (BZ 1336792)
2674 - Fail fast for easily detected bad pmcd configuration (BZ 1336210)
2675 - Implement primary (local) pmie concept in rc pmie (BZ 1323851)
2676 - Update to latest PCP Sources.
2678 * Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.11.2-2.1
2679 - Perl 5.24 rebuild
2681 * Fri Apr 29 2016 Lukas Berk <lberk@redhat.com> - 3.11.2-1
2682 - Negative nice values reported incorrectly (BZ 1328432)
2683 - Multithreaded clients with concurrent pmNewContext improvements (BZ 1325363)
2684 - PMCD agent auto-restart (BZ 1323521)
2685 - Segv in libpcp during discovery error processing (BZ 1319288)
2686 - Update to latest PCP Sources.
2688 * Fri Mar 18 2016 Dave Brolley <brolley@redhat.com> - 3.11.1-1
2689 - Call Remove script when uninstalling individual PMDAs (BZ 1304722)
2690 - Restrict pmcd.services to checking known pcp services (BZ 1286361)
2691 - Support for multi-archive contexts, across all clients (BZ 1262723)
2692 - Remove the default shotgun approach to stopping daemons (BZ 1210976)
2693 - Add mechanism for automatic recovery from PMDA timeouts (BZ 1065803)
2694 - Update to latest PCP sources.
2696 * Fri Jan 29 2016 Mark Goodwin <mgoodwin@redhat.com> - 3.11.0-1
2697 - Significant speedups to elapsed time stopping pmcd (BZ 1292027)
2698 - Fix python derived metric exception handling issues (BZ 1299806)
2699 - incorrect interpolation across <mark> record in a merged archive (BZ 1296750)
2700 - pcp requires pcp-compat pulling in a lot of unneeded pcp-pmda-* packages (BZ 1293466)
2701 - Update to latest PCP sources.
2703 * Wed Dec 16 2015 Lukas Berk <lberk@redhat.com> - 3.10.9-1
2704 - Add -V/--version support to several more commands (BZ 1284411)
2705 - Resolve a pcp-iostat(1) transient device exception (BZ 1249572)
2706 - Provides pmdapipe, an output-capturing domain agent (BZ 1163413)
2707 - Python PMAPI pmSetMode allows None timeval parameter (BZ 1284417)
2708 - Python PMI pmiPutValue now supports singular metrics (BZ 1285371)
2709 - Fix python PMAPI pmRegisterDerived wrapper interface (BZ 1286733)
2710 - Fix pmstat SEGV when run with graphical time control (BZ 1287678)
2711 - Make pmNonOptionsFromList error message less cryptic (BZ 1287778)
2712 - Drop unimplemented pmdumptext options from usage, man page (BZ 1289909)
2713 - Stop creating configuration files in tmp_t locations (BZ 1256125)
2714 - Update to latest PCP sources.
2716 * Fri Oct 30 2015 Mark Goodwin <mgoodwin@redhat.com> - 3.10.8-1
2717 - Update pmlogger to log an immediate sample first (BZ 1269921)
2718 - Add pmOption host and archive setter python APIs (BZ 1270176)
2719 - Replace old pmatop(1) man page with pcp-atop(1) (BZ 1270761)
2720 - Update to latest PCP sources.
2722 * Wed Sep 16 2015 Nathan Scott <nathans@redhat.com> - 3.10.7-1
2723 - Resolved pmchart sigsegv opening view without context (BZ 1256708)
2724 - Fixed pmchart memory corruption restoring Saved Hosts (BZ 1257009)
2725 - Fix perl PMDA API double-free on socket error path (BZ 1258862)
2726 - Fix python API pmGetOption(3) alignment interface (BZ 1262722)
2727 - Added missing RPM dependencies to several PMDA sub-packages.
2728 - Update to latest stable Vector release for pcp-vector-webapp.
2729 - Update to latest PCP sources.
2731 * Sat Sep 05 2015 Kalev Lember <klember@redhat.com> - 3.10.6-2.1
2732 - Rebuilt for librpm soname bump
2734 * Thu Aug 06 2015 Lukas Berk <lberk@redhat.com> - 3.10.6-2
2735 - Fix SDT related build error (BZ 1250894)
2737 * Tue Aug 04 2015 Nathan Scott <nathans@redhat.com> - 3.10.6-1
2738 - Fix pcp2graphite write method invocation failure (BZ 1243123)
2739 - Reduce diagnostics in pmdaproc unknown state case (BZ 1224431)
2740 - Derived metrics via multiple files, directory expansion (BZ 1235556)
2741 - Update to latest PCP sources.
2743 * Mon Jun 15 2015 Mark Goodwin <mgoodwin@redhat.com> - 3.10.5-1
2744 - Provide and use non-exit(1)ing pmGetConfig(3) variant (BZ 1187588)
2745 - Resolve a pmdaproc.sh pmlogger restart regression (BZ 1229458)
2746 - Replacement of pmatop/pcp-atop(1) utility (BZ 1160811, BZ 1018575)
2747 - Reduced installation size for minimal applications (BZ 1182184)
2748 - Ensure pmlogger start scripts wait on pmcd startup (BZ 1185760)
2749 - Need to run pmcd at least once before pmval -L will work (BZ 185749)
2751 * Wed Apr 15 2015 Nathan Scott <nathans@redhat.com> - 3.10.4-1
2752 - Update to latest PCP, pcp-webjs and Vector sources.
2753 - Packaging improvements after re-review (BZ 1204467)
2754 - Start pmlogger/pmie independent of persistent state (BZ 1185755)
2755 - Fix cron error reports for disabled pmlogger service (BZ 1208699)
2756 - Incorporate Vector from Netflix (https://github.com/Netflix/vector)
2757 - Sub-packages for pcp-webjs allowing choice and reducing used space.
2759 * Wed Mar 04 2015 Dave Brolley <brolley@redhat.com> - 3.10.3-2
2760 - papi 5.4.1 rebuild
2762 * Mon Mar 02 2015 Dave Brolley <brolley@redhat.com> - 3.10.3-1
2763 - Update to latest PCP sources.
2764 - New sub-package for pcp-import-ganglia2pcp.
2765 - Python3 support, enabled by default in f22 onward (BZ 1194324)
2767 * Mon Feb 23 2015 Slavek Kabrda <bkabrda@redhat.com> - 3.10.2-3
2768 - Only use Python 3 in Fedora >= 23, more info at
2769 https://bugzilla.redhat.com/show_bug.cgi?id=1194324#c4
2771 * Mon Feb 23 2015 Nathan Scott <nathans@redhat.com> - 3.10.2-2
2772 - Initial changes to support python3 as default (BZ 1194324)
2774 * Fri Jan 23 2015 Dave Brolley <brolley@redhat.com> - 3.10.2-1
2775 - Update to latest PCP sources.
2776 - Improve pmdaInit diagnostics for DSO helptext (BZ 1182949)
2777 - Tighten up PMDA termination on pmcd stop (BZ 1180109)
2778 - Correct units for cgroup memory metrics (BZ 1180351)
2779 - Add the pcp2graphite(1) export script (BZ 1163986)
2781 * Mon Dec 01 2014 Nathan Scott <nathans@redhat.com> - 3.10.1-1
2782 - New conditionally-built pcp-pmda-perfevent sub-package.
2783 - Update to latest PCP sources.
2785 * Tue Nov 18 2014 Dave Brolley <brolley@redhat.com> - 3.10.0-2
2786 - papi 5.4.0 rebuild
2788 * Fri Oct 31 2014 Nathan Scott <nathans@redhat.com> - 3.10.0-1
2789 - Create new sub-packages for pcp-webjs and python3-pcp.
2790 - Fix __pmDiscoverServicesWithOptions(1) codes (BZ 1139529)
2791 - Update to latest PCP sources.
2793 * Fri Sep 05 2014 Nathan Scott <nathans@redhat.com> - 3.9.10-1
2794 - Convert PCP init scripts to systemd services (BZ 996438)
2795 - Fix pmlogsummary -S/-T time window reporting (BZ 1132476)
2796 - Resolve pmdumptext segfault with invalid host (BZ 1131779)
2797 - Fix signedness in some service discovery codes (BZ 1136166)
2798 - New conditionally-built pcp-pmda-papi sub-package.
2799 - Update to latest PCP sources.
2801 * Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 3.9.9-1.2
2802 - Perl 5.20 rebuild
2804 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.9-1.1
2805 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2807 * Wed Aug 13 2014 Nathan Scott <nathans@redhat.com> - 3.9.9-1
2808 - Update to latest PCP sources.
2810 * Wed Jul 16 2014 Mark Goodwin <mgoodwin@redhat.com> - 3.9.7-1
2811 - Update to latest PCP sources.
2813 * Wed Jun 18 2014 Dave Brolley <brolley@redhat.com> - 3.9.5-1
2814 - Daemon signal handlers no longer use unsafe APIs (BZ 847343)
2815 - Handle /var/run setups on a temporary filesystem (BZ 656659)
2816 - Resolve pmlogcheck sigsegv for some archives (BZ 1077432)
2817 - Ensure pcp-gui-{testsuite,debuginfo} packages get replaced.
2818 - Revive support for EPEL5 builds, post pcp-gui merge.
2819 - Update to latest PCP sources.
2821 * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.4-1.1
2822 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2824 * Thu May 15 2014 Nathan Scott <nathans@redhat.com> - 3.9.4-1
2825 - Merged pcp-gui and pcp-doc packages into core PCP.
2826 - Allow for conditional libmicrohttpd builds in spec file.
2827 - Adopt slow-start capability in systemd PMDA (BZ 1073658)
2828 - Resolve pmcollectl network/disk mis-reporting (BZ 1097095)
2829 - Update to latest PCP sources.
2831 * Tue Apr 15 2014 Dave Brolley <brolley@redhat.com> - 3.9.2-1
2832 - Improve pmdarpm(1) concurrency complications (BZ 1044297)
2833 - Fix pmconfig(1) shell output string quoting (BZ 1085401)
2834 - Update to latest PCP sources.
2836 * Wed Mar 19 2014 Nathan Scott <nathans@redhat.com> - 3.9.1-1
2837 - Update to latest PCP sources.
2839 * Thu Feb 20 2014 Nathan Scott <nathans@redhat.com> - 3.9.0-2
2840 - Workaround further PowerPC/tapset-related build fallout.
2842 * Wed Feb 19 2014 Nathan Scott <nathans@redhat.com> - 3.9.0-1
2843 - Create new sub-packages for pcp-webapi and pcp-manager
2844 - Split configuration from pcp-libs into pcp-conf (multilib)
2845 - Fix pmdagluster to handle more volumes, fileops (BZ 1066544)
2846 - Update to latest PCP sources.
2848 * Wed Jan 29 2014 Nathan Scott <nathans@redhat.com> - 3.8.12-1
2849 - Resolves SNMP procfs file ICMP line parse issue (BZ 1055818)
2850 - Update to latest PCP sources.
2852 * Wed Jan 15 2014 Nathan Scott <nathans@redhat.com> - 3.8.10-1
2853 - Update to latest PCP sources.
2855 * Thu Dec 12 2013 Nathan Scott <nathans@redhat.com> - 3.8.9-1
2856 - Reduce set of exported symbols from DSO PMDAs (BZ 1025694)
2857 - Symbol-versioning for PCP shared libraries (BZ 1037771)
2858 - Fix pmcd/Avahi interaction with multiple ports (BZ 1035513)
2859 - Update to latest PCP sources.
2861 * Sun Nov 03 2013 Nathan Scott <nathans@redhat.com> - 3.8.8-1
2862 - Update to latest PCP sources (simple build fixes only).
2864 * Fri Nov 01 2013 Nathan Scott <nathans@redhat.com> - 3.8.6-1
2865 - Update to latest PCP sources.
2866 - Rework pmpost test which confused virus checkers (BZ 1024850)
2867 - Tackle pmatop reporting issues via alternate metrics (BZ 998735)
2869 * Fri Oct 18 2013 Nathan Scott <nathans@redhat.com> - 3.8.5-1
2870 - Update to latest PCP sources.
2871 - Disable pcp-pmda-infiniband sub-package on RHEL5 (BZ 1016368)
2873 * Mon Sep 16 2013 Nathan Scott <nathans@redhat.com> - 3.8.4-2
2874 - Disable the pcp-pmda-infiniband sub-package on s390 platforms.
2876 * Sun Sep 15 2013 Nathan Scott <nathans@redhat.com> - 3.8.4-1
2877 - Very minor release containing mostly QA related changes.
2878 - Enables many more metrics to be logged for Linux hosts.
2880 * Wed Sep 11 2013 Stan Cox <scox@redhat.com> - 3.8.3-2
2881 - Disable pmcd.stp on el5 ppc.
2883 * Mon Sep 09 2013 Nathan Scott <nathans@redhat.com> - 3.8.3-1
2884 - Default to Unix domain socket (authenticated) local connections.
2885 - Introduces new pcp-pmda-infiniband sub-package.
2886 - Disable systemtap-sdt-devel usage on ppc.
2888 * Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 3.8.2-1.1
2889 - Perl 5.18 rebuild
2891 * Wed Jul 31 2013 Nathan Scott <nathans@redhat.com> - 3.8.2-1
2892 - Update to latest PCP sources.
2893 - Integrate gluster related stats with PCP (BZ 969348)
2894 - Fix for iostat2pcp not parsing iostat output (BZ 981545)
2895 - Start pmlogger with usable config by default (BZ 953759)
2896 - Fix pmatop failing to start, gives stacktrace (BZ 963085)
2898 * Wed Jun 19 2013 Nathan Scott <nathans@redhat.com> - 3.8.1-1
2899 - Update to latest PCP sources.
2900 - Fix log import silently dropping >1024 metrics (BZ 968210)
2901 - Move some commonly used tools on the usual PATH (BZ 967709)
2902 - Improve pmatop handling of missing proc metrics (BZ 963085)
2903 - Stop out-of-order records corrupting import logs (BZ 958745)
2905 * Tue May 14 2013 Nathan Scott <nathans@redhat.com> - 3.8.0-1
2906 - Update to latest PCP sources.
2907 - Validate metric names passed into pmiAddMetric (BZ 958019)
2908 - Install log directories with correct ownership (BZ 960858)
2910 * Fri Apr 19 2013 Nathan Scott <nathans@redhat.com> - 3.7.2-1
2911 - Update to latest PCP sources.
2912 - Ensure root namespace exists at the end of install (BZ 952977)
2914 * Wed Mar 20 2013 Nathan Scott <nathans@redhat.com> - 3.7.1-1
2915 - Update to latest PCP sources.
2916 - Migrate all tempfiles correctly to the new tempdir hierarchy.
2918 * Sun Mar 10 2013 Nathan Scott <nathans@redhat.com> - 3.7.0-1
2919 - Update to latest PCP sources.
2920 - Migrate all configuration files below the /etc/pcp hierarchy.
2922 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.10-2.1
2923 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2925 * Wed Nov 28 2012 Nathan Scott <nathans@redhat.com> - 3.6.10-2
2926 - Ensure tmpfile directories created in %%files section.
2927 - Resolve tmpfile create/teardown race conditions.
2929 * Mon Nov 19 2012 Nathan Scott <nathans@redhat.com> - 3.6.10-1
2930 - Update to latest PCP sources.
2931 - Resolve tmpfile security flaws: CVE-2012-5530
2932 - Introduces new "pcp" user account for all daemons to use.
2934 * Fri Oct 12 2012 Nathan Scott <nathans@redhat.com> - 3.6.9-1
2935 - Update to latest PCP sources.
2936 - Fix pmcd sigsegv in NUMA/CPU indom setup (BZ 858384)
2937 - Fix sar2pcp uninitialised perl variable warning (BZ 859117)
2938 - Fix pcp.py and pmcollectl with older python versions (BZ 852234)
2940 * Fri Sep 14 2012 Nathan Scott <nathans@redhat.com> - 3.6.8-1
2941 - Update to latest PCP sources.
2943 * Wed Sep 05 2012 Nathan Scott <nathans@redhat.com> - 3.6.6-1.1
2944 - Move configure step from prep to build section of spec (BZ 854128)
2946 * Tue Aug 28 2012 Mark Goodwin <mgoodwin@redhat.com> - 3.6.6-1
2947 - Update to latest PCP sources, see installed CHANGELOG for details.
2948 - Introduces new python-pcp and pcp-testsuite sub-packages.
2950 * Thu Aug 16 2012 Mark Goodwin <mgoodwin@redhat.com> - 3.6.5-1
2951 - Update to latest PCP sources, see installed CHANGELOG for details.
2952 - Fix security flaws: CVE-2012-3418 CVE-2012-3419 CVE-2012-3420 and CVE-2012-3421 (BZ 848629)
2954 * Thu Jul 19 2012 Mark Goodwin <mgoodwin@redhat.com>
2955 - pmcd and pmlogger services are not supposed to be enabled by default (BZ 840763) - 3.6.3-1.3
2957 * Thu Jun 21 2012 Mark Goodwin <mgoodwin@redhat.com>
2958 - remove pcp-import-sheet2pcp subpackage due to missing deps (BZ 830923) - 3.6.3-1.2
2960 * Fri May 18 2012 Dan Hork <dan[at]danny.cz> - 3.6.3-1.1
2961 - fix build on s390x
2963 * Mon Apr 30 2012 Mark Goodwin - 3.6.3-1
2964 - Update to latest PCP sources
2966 * Thu Apr 26 2012 Mark Goodwin - 3.6.2-1
2967 - Update to latest PCP sources
2969 * Thu Apr 12 2012 Mark Goodwin - 3.6.1-1
2970 - Update to latest PCP sources
2972 * Thu Mar 22 2012 Mark Goodwin - 3.6.0-1
2973 - use %%configure macro for correct libdir logic
2974 - update to latest PCP sources
2976 * Thu Dec 15 2011 Mark Goodwin - 3.5.11-2
2977 - patched configure.in for libdir=/usr/lib64 on ppc64
2979 * Thu Dec 01 2011 Mark Goodwin - 3.5.11-1
2980 - Update to latest PCP sources.
2982 * Fri Nov 04 2011 Mark Goodwin - 3.5.10-1
2983 - Update to latest PCP sources.
2985 * Mon Oct 24 2011 Mark Goodwin - 3.5.9-1
2986 - Update to latest PCP sources.
2988 * Mon Aug 08 2011 Mark Goodwin - 3.5.8-1
2989 - Update to latest PCP sources.
2991 * Fri Aug 05 2011 Mark Goodwin - 3.5.7-1
2992 - Update to latest PCP sources.
2994 * Fri Jul 22 2011 Mark Goodwin - 3.5.6-1
2995 - Update to latest PCP sources.
2997 * Tue Jul 19 2011 Mark Goodwin - 3.5.5-1
2998 - Update to latest PCP sources.
3000 * Thu Feb 03 2011 Mark Goodwin - 3.5.0-1
3001 - Update to latest PCP sources.
3003 * Thu Sep 30 2010 Mark Goodwin - 3.4.0-1
3004 - Update to latest PCP sources.
3006 * Fri Jul 16 2010 Mark Goodwin - 3.3.3-1
3007 - Update to latest PCP sources.
3009 * Sat Jul 10 2010 Mark Goodwin - 3.3.2-1
3010 - Update to latest PCP sources.
3012 * Tue Jun 29 2010 Mark Goodwin - 3.3.1-1
3013 - Update to latest PCP sources.
3015 * Fri Jun 25 2010 Mark Goodwin - 3.3.0-1
3016 - Update to latest PCP sources.
3018 * Thu Mar 18 2010 Mark Goodwin - 3.1.2-1
3019 - Update to latest PCP sources.
3021 * Wed Jan 27 2010 Mark Goodwin - 3.1.0-1
3022 - BuildRequires: initscripts for %%{_vendor} == redhat.
3024 * Thu Dec 10 2009 Mark Goodwin - 3.0.3-1
3025 - BuildRequires: initscripts for FC12.
3027 * Wed Dec 02 2009 Mark Goodwin - 3.0.2-1
3028 - Added sysfs.kernel metrics, rebased to minor community release.
3030 * Mon Oct 19 2009 Martin Hicks <mort@sgi.com> - 3.0.1-2
3031 - Remove IB dependencies. The Infiniband PMDA is being moved to
3032 a stand-alone package.
3033 - Move cluster PMDA to a stand-alone package.
3035 * Fri Oct 09 2009 Mark Goodwin <mgoodwin@redhat.com> - 3.0.0-9
3036 - This is the initial import for Fedora
3037 - See 3.0.0 details in CHANGELOG