diff --git a/pcp.spec b/pcp.spec index 5e0d7d9135bfc6e95efc6f65e12fa248242857fc..3cf054e560c2c6150d453cb73ccac6d8a0420182 100644 --- a/pcp.spec +++ b/pcp.spec @@ -10,6 +10,12 @@ %global disable_dstat 0 %global __python3 python +%ifarch loongarch64 +%global disable_bpftrace 1 +%else +%global disable_bpftrace 0 +%endif + %global _confdir %{_sysconfdir}/pcp %global _logsdir %{_localstatedir}/log/pcp %global _pmnsdir %{_localstatedir}/lib/pcp/pmns @@ -42,7 +48,9 @@ %global _with_bpf --with-pmdabpf=yes +%if !%{disable_bpftrace} %global _with_bpftrace --with-pmdabpftrace=yes +%endif %global _with_json --with-pmdajson=yes @@ -53,7 +61,7 @@ Name: pcp Version: 5.3.5 Summary: System-level performance monitoring and performance management -Release: 7 +Release: 8 License: GPLv2+ and LGPLv2.1+ and CC-BY URL: https://pcp.io Source0: https://github.com/performancecopilot/pcp/archive/refs/tags/5.3.5.tar.gz @@ -179,7 +187,7 @@ Requires: pcp-pmda-samba pcp-pmda-slurm pcp-pmda-zimbra pcp-pmda-dm pcp- Requires: pcp-pmda-bash pcp-pmda-cisco pcp-pmda-gfs2 pcp-pmda-mailq pcp-pmda-mounts Requires: pcp-pmda-nvidia-gpu pcp-pmda-roomtemp pcp-pmda-sendmail pcp-pmda-shping pcp-pmda-smart Requires: pcp-pmda-hacluster pcp-pmda-lustrecomm pcp-pmda-logger pcp-pmda-denki pcp-pmda-docker -Requires: pcp-pmda-sockets pcp-pmda-podman pcp-pmda-nutcracker pcp-pmda-bpf pcp-pmda-bpftrace +Requires: pcp-pmda-sockets pcp-pmda-podman pcp-pmda-nutcracker pcp-pmda-bpf Requires: pcp-pmda-gluster pcp-pmda-zswap pcp-pmda-unbound pcp-pmda-mic Requires: pcp-pmda-libvirt pcp-pmda-lio pcp-pmda-openmetrics pcp-pmda-haproxy Requires: pcp-pmda-lmsensors pcp-pmda-netcheck pcp-pmda-rabbitmq pcp-pmda-oracle @@ -187,6 +195,9 @@ Requires: pcp-pmda-openvswitch pcp-pmda-mongodb pcp-pmda-snmp pcp-pmda-b Requires: pcp-pmda-json pcp-pmda-summary pcp-pmda-trace pcp-pmda-weblog Requires: pcp-system-tools pcp-gui openEuler-rpm-config bc gcc gzip bzip2 Requires: selinux-policy-devel selinux-policy-targeted setools-console +%if !%{disable_bpftrace} +Requires: pcp-pmda-bpftrace +%endif %if !%{disable_bcc} Requires: pcp-pmda-bcc %endif @@ -683,6 +694,7 @@ BuildRequires: libbpf-devel clang llvm bpftool This package contains the PCP Performance Metrics Domain Agent (PMDA) for extracting performance metrics from eBPF ELF modules. +%if !%{disable_bpftrace} %package pmda-bpftrace Summary: Performance Co-Pilot (PCP) metrics from bpftrace scripts License: ASL 2.0 and GPLv2+ @@ -690,6 +702,7 @@ Requires: pcp = %{version}-%{release} bpftrace >= 0.9.2 python3-pcp python3 >= 3 %description pmda-bpftrace This package contains the PCP Performance Metrics Domain Agent (PMDA) for extracting performance metrics from bpftrace scripts. +%endif %package pmda-gluster Summary: Performance Co-Pilot (PCP) metrics for the Gluster filesystem @@ -1525,8 +1538,10 @@ exit 0 %preun pmda-bpf %{pmda_remove "$1" "bpf"} +%if !%{disable_bpftrace} %preun pmda-bpftrace %{pmda_remove "$1" "bpftrace"} +%endif %preun pmda-gluster %{pmda_remove "$1" "gluster"} @@ -1814,7 +1829,9 @@ systemctl condrestart pmproxy.service >/dev/null 2>&1 %files pmda-bpf -f pcp-pmda-bpf-files.rpm +%if !%{disable_bpftrace} %files pmda-bpftrace -f pcp-pmda-bpftrace-files.rpm +%endif %files pmda-gluster -f pcp-pmda-gluster-files.rpm @@ -1930,6 +1947,9 @@ systemctl condrestart pmproxy.service >/dev/null 2>&1 %changelog +* Wed May 24 2023 zhaozhen - 5.3.5-8 +- Fix pcp-devel install error for loongarch64 + * Thu Jul 14 2022 caodongxia - 5.3.5-7 - Fix out of range in pcp-mpstat