From 68abfb63a95cb9e5f89df34dda3d0ab20325b81f Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 6 Jun 2014 18:56:05 -0500 Subject: [PATCH 1/6] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- pcp.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcp.spec b/pcp.spec index a7bc775..7ac54cb 100644 --- a/pcp.spec +++ b/pcp.spec @@ -3,7 +3,7 @@ Name: pcp Version: 3.9.4 %define buildversion 1 -Release: %{buildversion}%{?dist} +Release: %{buildversion}%{?dist}.1 License: GPLv2+ and LGPLv2.1+ URL: http://www.performancecopilot.org Group: Applications/System @@ -812,6 +812,9 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" %defattr(-,root,root,-) %changelog +* Fri Jun 06 2014 Fedora Release Engineering - 3.9.4-1.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Thu May 15 2014 Nathan Scott - 3.9.4-1 - Merged pcp-gui and pcp-doc packages into core PCP. - Allow for conditional libmicrohttpd builds in spec file. From 110429a9f602c889ddad38065f23fa1e749dd02f Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Wed, 18 Jun 2014 11:45:46 -0400 Subject: [PATCH 2/6] Daemon signal handlers no longer use unsafe APIs (BZ 847343) - Handle /var/run setups on a temporary filesystem (BZ 656659) - Resolve pmlogcheck sigsegv for some archives (BZ 1077432) - Ensure pcp-gui-{testsuite,debuginfo} packages get replaced. - Revive support for EPEL5 builds, post pcp-gui merge. - Update to latest PCP sources. --- .gitignore | 1 + pcp.spec | 43 ++++++++++++++++++++++++++++++++++++------- sources | 2 +- 3 files changed, 38 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 71ac96b..567801e 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ pcp-3.3.3-1.src.tar.gz /pcp-3.9.2.src.tar.gz /pcp-3.9.3.src.tar.gz /pcp-3.9.4.src.tar.gz +/pcp-3.9.5.src.tar.gz diff --git a/pcp.spec b/pcp.spec index 7ac54cb..0cc6ec8 100644 --- a/pcp.spec +++ b/pcp.spec @@ -1,15 +1,20 @@ Summary: System-level performance monitoring and performance management Name: pcp -Version: 3.9.4 +Version: 3.9.5 %define buildversion 1 -Release: %{buildversion}%{?dist}.1 +Release: %{buildversion}%{?dist} License: GPLv2+ and LGPLv2.1+ URL: http://www.performancecopilot.org Group: Applications/System Source0: pcp-%{version}.src.tar.gz %define disable_microhttpd 0 +%if 0%{?rhel} == 0 || 0%{?rhel} > 5 +%define disable_qt 0 +%else +%define disable_qt 1 +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: procps autoconf bison flex @@ -35,8 +40,10 @@ BuildRequires: initscripts man %if 0%{?fedora} >= 18 || 0%{?rhel} >= 7 BuildRequires: systemd-devel %endif +%if !%{disable_qt} BuildRequires: desktop-file-utils BuildRequires: qt4-devel >= 4.4 +%endif Requires: bash gawk sed grep fileutils findutils initscripts perl Requires: python @@ -47,6 +54,7 @@ Requires: python-ctypes Requires: pcp-libs = %{version}-%{release} Requires: python-pcp = %{version}-%{release} Requires: perl-PCP-PMDA = %{version}-%{release} +Obsoletes: pcp-gui-debuginfo %global tapsetdir %{_datadir}/systemtap/tapset @@ -82,6 +90,10 @@ Requires: perl-PCP-PMDA = %{version}-%{release} %define _with_ib --with-infiniband=no %endif +%if %{disable_qt} +%define _with_ib --with-qt=no +%endif + %description Performance Co-Pilot (PCP) provides a framework and services to support system-level performance monitoring and performance management. @@ -143,6 +155,7 @@ URL: http://www.performancecopilot.org Requires: pcp = %{version}-%{release} Requires: pcp-libs = %{version}-%{release} Requires: pcp-libs-devel = %{version}-%{release} +Obsoletes: pcp-gui-testsuite %description testsuite Quality assurance test suite for Performance Co-Pilot (PCP). @@ -352,6 +365,7 @@ Requires: pcp-libs = %{version}-%{release} The python PCP module contains the language bindings for building Performance Metric API (PMAPI) tools using Python. +%if !%{disable_qt} # # pcp-gui package for Qt tools # @@ -367,6 +381,7 @@ Visualization tools for the Performance Co-Pilot toolkit. The pcp-gui package primarily includes visualization tools for monitoring systems using live and archived Performance Co-Pilot (PCP) sources. +%endif # # pcp-doc package @@ -395,17 +410,17 @@ PCP utilities and daemons, and the PCP graphical tools. rm -Rf $RPM_BUILD_ROOT %build -%configure --with-rcdir=%{_initddir} %{?_with_doc} %{?_with_ib} +%configure --with-rcdir=%{_initddir} %{?_with_doc} %{?_with_ib} %{?_with_qt} make default_pcp %install rm -Rf $RPM_BUILD_ROOT export NO_CHOWN=true DIST_ROOT=$RPM_BUILD_ROOT make install_pcp +PCP_GUI='pmchart|pmconfirm|pmdumptext|pmmessage|pmquery|pmsnap|pmtime' # Fix stuff we do/don't want to ship rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a -mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/run/pcp # remove sheet2pcp until BZ 830923 and BZ 754678 are resolved. rm -f $RPM_BUILD_ROOT/%{_bindir}/sheet2pcp $RPM_BUILD_ROOT/%{_mandir}/man1/sheet2pcp.1.gz @@ -428,8 +443,13 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/pmdaib.1.gz rm -fr $RPM_BUILD_ROOT/%{_pmdasdir}/infiniband %endif +%if %{disable_qt} +rm -fr $RPM_BUILD_ROOT/%{_pixmapdir} +rm -f `find $RPM_BUILD_ROOT/%{_mandir}/man1 | egrep "$PCP_GUI"` +%else rm -rf $RPM_BUILD_ROOT/usr/share/doc/pcp-gui desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/pmchart.desktop +%endif # default chkconfig off for Fedora and RHEL for f in $RPM_BUILD_ROOT/%{_initddir}/{pcp,pmcd,pmlogger,pmie,pmwebd,pmmgr,pmproxy}; do @@ -456,7 +476,6 @@ ls -1 $RPM_BUILD_ROOT/%{_datadir}/pcp/demos/tutorials |\ sed -e 's#^#'%{_datadir}/pcp/demos/tutorials'\/#' >>pcp-doc.list ls -1 $RPM_BUILD_ROOT/%{_pixmapdir} |\ sed -e 's#^#'%{_pixmapdir}'\/#' > pcp-gui.list -PCP_GUI='pmchart|pmconfirm|pmdumptext|pmmessage|pmquery|pmsnap|pmtime' cat base_bin.list base_exec.list base_man.list |\ egrep "$PCP_GUI" >> pcp-gui.list cat base_pmdas.list base_bin.list base_exec.list base_man.list |\ @@ -467,6 +486,8 @@ cat base_pmdas.list base_bin.list base_exec.list base_man.list |\ # all devel pcp package files except those split out into sub packages ls -1 $RPM_BUILD_ROOT/%{_mandir}/man3 |\ sed -e 's#^#'%{_mandir}'\/man3\/#' | egrep -v '3pm|PMWEBAPI' >devel.list +ls -1 $RPM_BUILD_ROOT/%{_datadir}/pcp/demos |\ +sed -e 's#^#'%{_datadir}'\/pcp\/demos\/#' | egrep -v tutorials >> devel.list %pre testsuite test -d %{_testsdir} || mkdir -p -m 755 %{_testsdir} @@ -638,7 +659,6 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" %dir %{_confdir} %dir %{_pmdasdir} %dir %{_datadir}/pcp -%dir %attr(0775,pcp,pcp) %{_localstatedir}/run/pcp %dir %{_localstatedir}/lib/pcp %dir %{_localstatedir}/lib/pcp/config %dir %attr(0775,pcp,pcp) %{_localstatedir}/lib/pcp/config/pmda @@ -718,7 +738,6 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" %{_libdir}/libpcp_trace.so %{_libdir}/libpcp_import.so %{_includedir}/pcp/*.h -%{_datadir}/pcp/demos %{_datadir}/pcp/examples # PMDAs that ship src and are not for production use @@ -796,6 +815,7 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" %files -n python-pcp -f python-pcp.list.rpm %defattr(-,root,root) +%if !%{disable_qt} %files -n pcp-gui -f pcp-gui.list %defattr(-,root,root,-) @@ -807,11 +827,20 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" %dir %{_localstatedir}/lib/pcp/config/pmchart %{_localstatedir}/lib/pcp/config/pmafm/pcp-gui %{_datadir}/applications/pmchart.desktop +%endif %files -n pcp-doc -f pcp-doc.list %defattr(-,root,root,-) %changelog +* Wed Jun 18 2014 Dave Brolley - 3.9.5-1 +- Daemon signal handlers no longer use unsafe APIs (BZ 847343) +- Handle /var/run setups on a temporary filesystem (BZ 656659) +- Resolve pmlogcheck sigsegv for some archives (BZ 1077432) +- Ensure pcp-gui-{testsuite,debuginfo} packages get replaced. +- Revive support for EPEL5 builds, post pcp-gui merge. +- Update to latest PCP sources. + * Fri Jun 06 2014 Fedora Release Engineering - 3.9.4-1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild diff --git a/sources b/sources index 758f93f..e7b5570 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cd9b3ba20035d8ac603e97cdb9d67268 pcp-3.9.4.src.tar.gz +963efc3538847dcf7535aac820f9b5e5 pcp-3.9.5.src.tar.gz From 1cea39f7c2dafbb2ef4a82fda4f071e52b035e29 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Wed, 18 Jun 2014 14:53:15 -0400 Subject: [PATCH 3/6] Remove 'BuildArch: noarch' from pcp-doc package. --- pcp.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcp.spec b/pcp.spec index 0cc6ec8..e128d84 100644 --- a/pcp.spec +++ b/pcp.spec @@ -388,7 +388,7 @@ monitoring systems using live and archived Performance Co-Pilot # %package -n pcp-doc Group: Documentation -BuildArch: noarch +#BuildArch: noarch Summary: Documentation and tutorial for the Performance Co-Pilot URL: http://www.performancecopilot.org From a1b5c2bbb2dc959f86453c4b5b9b1e1b5bc7a52d Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Wed, 18 Jun 2014 15:51:28 -0400 Subject: [PATCH 4/6] pcp.spec: Don't process %{_pixmapdir} if %{disable_qt} --- pcp.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcp.spec b/pcp.spec index e128d84..d0cb481 100644 --- a/pcp.spec +++ b/pcp.spec @@ -388,7 +388,6 @@ monitoring systems using live and archived Performance Co-Pilot # %package -n pcp-doc Group: Documentation -#BuildArch: noarch Summary: Documentation and tutorial for the Performance Co-Pilot URL: http://www.performancecopilot.org @@ -474,8 +473,10 @@ ls -1 $RPM_BUILD_ROOT/%{_booksdir} |\ sed -e 's#^#'%{_booksdir}'\/#' > pcp-doc.list ls -1 $RPM_BUILD_ROOT/%{_datadir}/pcp/demos/tutorials |\ sed -e 's#^#'%{_datadir}/pcp/demos/tutorials'\/#' >>pcp-doc.list +%if !%{disable_qt} ls -1 $RPM_BUILD_ROOT/%{_pixmapdir} |\ sed -e 's#^#'%{_pixmapdir}'\/#' > pcp-gui.list +%endif cat base_bin.list base_exec.list base_man.list |\ egrep "$PCP_GUI" >> pcp-gui.list cat base_pmdas.list base_bin.list base_exec.list base_man.list |\ From f7ef454d0b08ed953b4915ff4a021c0e8106814d Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Wed, 18 Jun 2014 16:05:42 -0400 Subject: [PATCH 5/6] pcp.spec: DOn't process pcp-gui.list if %{disable_qt}. --- pcp.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcp.spec b/pcp.spec index d0cb481..d0ea358 100644 --- a/pcp.spec +++ b/pcp.spec @@ -476,9 +476,9 @@ ls -1 $RPM_BUILD_ROOT/%{_datadir}/pcp/demos/tutorials |\ %if !%{disable_qt} ls -1 $RPM_BUILD_ROOT/%{_pixmapdir} |\ sed -e 's#^#'%{_pixmapdir}'\/#' > pcp-gui.list -%endif cat base_bin.list base_exec.list base_man.list |\ egrep "$PCP_GUI" >> pcp-gui.list +%endif cat base_pmdas.list base_bin.list base_exec.list base_man.list |\ egrep -v 'pmdaib|pmmgr|pmweb|2pcp' |\ egrep -v "$PCP_GUI|pixmaps|pcp-doc|tutorials" |\ From d0f4a703f091bc719874e1f95fb8560d1040102e Mon Sep 17 00:00:00 2001 From: Mark Goodwin Date: Wed, 16 Jul 2014 13:53:30 +1000 Subject: [PATCH 6/6] Update to latest community sources --- .gitignore | 1 + pcp.spec | 10 +++++++++- sources | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 567801e..a6f4794 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ pcp-3.3.3-1.src.tar.gz /pcp-3.9.3.src.tar.gz /pcp-3.9.4.src.tar.gz /pcp-3.9.5.src.tar.gz +/pcp-3.9.7.src.tar.gz diff --git a/pcp.spec b/pcp.spec index 0cc6ec8..c5249b9 100644 --- a/pcp.spec +++ b/pcp.spec @@ -1,6 +1,6 @@ Summary: System-level performance monitoring and performance management Name: pcp -Version: 3.9.5 +Version: 3.9.7 %define buildversion 1 Release: %{buildversion}%{?dist} @@ -55,6 +55,7 @@ Requires: pcp-libs = %{version}-%{release} Requires: python-pcp = %{version}-%{release} Requires: perl-PCP-PMDA = %{version}-%{release} Obsoletes: pcp-gui-debuginfo +Obsoletes: pcp-pmda-nvidia %global tapsetdir %{_datadir}/systemtap/tapset @@ -388,7 +389,9 @@ monitoring systems using live and archived Performance Co-Pilot # %package -n pcp-doc Group: Documentation +%if 0%{?rhel} == 0 || 0%{?rhel} > 5 BuildArch: noarch +%endif Summary: Documentation and tutorial for the Performance Co-Pilot URL: http://www.performancecopilot.org @@ -474,10 +477,12 @@ ls -1 $RPM_BUILD_ROOT/%{_booksdir} |\ sed -e 's#^#'%{_booksdir}'\/#' > pcp-doc.list ls -1 $RPM_BUILD_ROOT/%{_datadir}/pcp/demos/tutorials |\ sed -e 's#^#'%{_datadir}/pcp/demos/tutorials'\/#' >>pcp-doc.list +%if !%{disable_qt} ls -1 $RPM_BUILD_ROOT/%{_pixmapdir} |\ sed -e 's#^#'%{_pixmapdir}'\/#' > pcp-gui.list cat base_bin.list base_exec.list base_man.list |\ egrep "$PCP_GUI" >> pcp-gui.list +%endif cat base_pmdas.list base_bin.list base_exec.list base_man.list |\ egrep -v 'pmdaib|pmmgr|pmweb|2pcp' |\ egrep -v "$PCP_GUI|pixmaps|pcp-doc|tutorials" |\ @@ -833,6 +838,9 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" %defattr(-,root,root,-) %changelog +* Wed Jul 16 2014 Mark Goodwin - 3.9.7-1 +- Update to latest PCP sources. + * Wed Jun 18 2014 Dave Brolley - 3.9.5-1 - Daemon signal handlers no longer use unsafe APIs (BZ 847343) - Handle /var/run setups on a temporary filesystem (BZ 656659) diff --git a/sources b/sources index e7b5570..1a14987 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -963efc3538847dcf7535aac820f9b5e5 pcp-3.9.5.src.tar.gz +a71e731a319efba1f6f8f995de853c60 pcp-3.9.7.src.tar.gz