Automated weekly pcp rawhide release: 0.20160606git566cf74

This commit is contained in:
Lukas Berk 2016-06-06 10:07:54 -04:00
parent 737de72a04
commit fdb046ecd2
3 changed files with 80 additions and 30 deletions

3
.gitignore vendored
View File

@ -78,3 +78,6 @@ pcp-3.3.3-1.src.tar.gz
/pcp-3.11.1.src.tar.gz /pcp-3.11.1.src.tar.gz
/pcp-3.11.2.src.tar.gz /pcp-3.11.2.src.tar.gz
/vector-1.0.3.tar.gz /vector-1.0.3.tar.gz
/pcp-3.11.3-0.20160606git566cf74.tar.gz
/pcp-webjs-20160606gitpcp-webjs-3.11.2.src.tar.gz
/vector-20160606gitc851eac.tar.gz

101
pcp.spec
View File

@ -1,18 +1,20 @@
Summary: System-level performance monitoring and performance management Summary: System-level performance monitoring and performance management
Name: pcp Name: pcp
Version: 3.11.2 Version: 3.11.3
%global buildversion 2 %global buildversion 0
Release: %{buildversion}%{?dist}.1 Release: 0.20160606git566cf74%{?dist}
License: GPLv2+ and LGPLv2.1+ and CC-BY License: GPLv2+ and LGPLv2.1+ and CC-BY
URL: http://www.pcp.io URL: http://www.pcp.io
Group: Applications/System Group: Applications/System
# https://bintray.com/artifact/download/pcp/source/pcp-%{version}.src.tar.gz # https://bintray.com/artifact/download/pcp/source/pcp-%{version}.src.tar.gz
Source0: pcp-%{version}.src.tar.gz Source0: %{name}-%{version}-0.20160606git566cf74.tar.gz
# https://github.com/performancecopilot/pcp-webjs/archive/master.zip
Source1: pcp-webjs.src.tar.gz
# https://bintray.com/artifact/download/netflixoss/downloads/vector.tar.gz # https://bintray.com/artifact/download/netflixoss/downloads/vector.tar.gz
Source2: vector-1.0.3.tar.gz Source1: pcp-webjs-20160606gitpcp-webjs-3.11.2.src.tar.gz
# https://github.com/performancecopilot/pcp-webjs/archive/x.y.z.tar.gz
Source2: vector-20160606gitc851eac.tar.gz
%global disable_snmp 0
# There are no papi/libpfm devel packages for s390 nor for some rhels, disable # There are no papi/libpfm devel packages for s390 nor for some rhels, disable
%ifarch s390 s390x %ifarch s390 s390x
@ -139,7 +141,7 @@ BuildRequires: cairo-devel
%if !%{disable_sdt} %if !%{disable_sdt}
BuildRequires: systemtap-sdt-devel BuildRequires: systemtap-sdt-devel
%endif %endif
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl-devel perl(ExtUtils::MakeMaker)
BuildRequires: initscripts man BuildRequires: initscripts man
%if !%{disable_systemd} %if !%{disable_systemd}
BuildRequires: systemd-devel BuildRequires: systemd-devel
@ -150,14 +152,7 @@ BuildRequires: qt4-devel >= 4.4
%endif %endif
Requires: bash gawk sed grep fileutils findutils initscripts which Requires: bash gawk sed grep fileutils findutils initscripts which
Requires: python%{?default_python}
Requires: pcp-libs = %{version}-%{release} Requires: pcp-libs = %{version}-%{release}
%if 0%{?default_python} == 3
Requires: python3-pcp = %{version}-%{release}
%endif
%if !%{disable_python2} && 0%{?default_python} != 3
Requires: python-pcp = %{version}-%{release}
%endif
Obsoletes: pcp-gui-debuginfo Obsoletes: pcp-gui-debuginfo
Obsoletes: pcp-pmda-nvidia Obsoletes: pcp-pmda-nvidia
@ -219,6 +214,12 @@ Obsoletes: pcp-gui-debuginfo
%global _with_json --with-pmdajson=yes %global _with_json --with-pmdajson=yes
%endif %endif
%if %{disable_snmp}
%global _with_snmp --with-pmdasnmp=no
%else
%global _with_snmp --with-pmdasnmp=yes
%endif
%global pmda_remove() %{expand: %global pmda_remove() %{expand:
if [ "%1" -eq 0 ] if [ "%1" -eq 0 ]
then then
@ -271,13 +272,28 @@ Performance Co-Pilot (PCP) run-time libraries
%package libs-devel %package libs-devel
License: GPLv2+ and LGPLv2.1+ License: GPLv2+ and LGPLv2.1+
Group: Development/Libraries Group: Development/Libraries
Summary: Performance Co-Pilot (PCP) development headers and documentation Summary: Performance Co-Pilot (PCP) development headers
URL: http://www.pcp.io
#Requires: pcp = %{version}-%{release}
#Requires: pcp-libs = %{version}-%{release}
%description libs-devel
Performance Co-Pilot (PCP) headers, for development
#
# pcp-devel
#
%package devel
License: GPLv2+ and LGPLv2.1+
Group: Development/Libraries
Summary: Performance Co-Pilot (PCP) development tools and documentation
URL: http://www.pcp.io URL: http://www.pcp.io
Requires: pcp = %{version}-%{release} Requires: pcp = %{version}-%{release}
Requires: pcp-libs = %{version}-%{release} Requires: pcp-libs = %{version}-%{release}
Requires: pcp-libs-devel = %{version}-%{release}
%description libs-devel %description devel
Performance Co-Pilot (PCP) headers, documentation and tools for development. Performance Co-Pilot (PCP) documentation and tools for development.
# #
# pcp-testsuite # pcp-testsuite
@ -290,6 +306,7 @@ URL: http://www.pcp.io
Requires: pcp = %{version}-%{release} Requires: pcp = %{version}-%{release}
Requires: pcp-libs = %{version}-%{release} Requires: pcp-libs = %{version}-%{release}
Requires: pcp-libs-devel = %{version}-%{release} Requires: pcp-libs-devel = %{version}-%{release}
Requires: pcp-devel = %{version}-%{release}
Obsoletes: pcp-gui-testsuite Obsoletes: pcp-gui-testsuite
%description testsuite %description testsuite
@ -1027,6 +1044,7 @@ This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics from the SLURM Workload Manager. collecting metrics from the SLURM Workload Manager.
#end pcp-pmda-slurm #end pcp-pmda-slurm
%if !%{disable_snmp}
# #
# pcp-pmda-snmp # pcp-pmda-snmp
# #
@ -1036,13 +1054,16 @@ Group: Applications/System
Summary: Performance Co-Pilot (PCP) metrics for Simple Network Management Protocol Summary: Performance Co-Pilot (PCP) metrics for Simple Network Management Protocol
URL: http://www.pcp.io URL: http://www.pcp.io
Requires: perl-PCP-PMDA = %{version}-%{release} Requires: perl-PCP-PMDA = %{version}-%{release}
# There are no perl-Net-SNMP packages in rhel, disable unless non-rhel or epel5
%if 0%{?rhel} == 0 || 0%{?rhel} < 6
Requires: perl(Net::SNMP) Requires: perl(Net::SNMP)
BuildRequires: perl(Net::SNMP) %endif
%description pmda-snmp %description pmda-snmp
This package contains the PCP Performance Metrics Domain Agent (PMDA) for This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about SNMP. collecting metrics about SNMP.
#end pcp-pmda-snmp #end pcp-pmda-snmp
%endif
# #
# pcp-pmda-vmware # pcp-pmda-vmware
@ -1463,7 +1484,7 @@ Requires: pcp-pmda-activemq pcp-pmda-bonding pcp-pmda-dbping pcp-pmda-ds389 pcp-
Requires: pcp-pmda-elasticsearch pcp-pmda-gpfs pcp-pmda-gpsd pcp-pmda-kvm pcp-pmda-lustre Requires: pcp-pmda-elasticsearch pcp-pmda-gpfs pcp-pmda-gpsd pcp-pmda-kvm pcp-pmda-lustre
Requires: pcp-pmda-memcache pcp-pmda-mysql pcp-pmda-named pcp-pmda-netfilter pcp-pmda-news Requires: pcp-pmda-memcache pcp-pmda-mysql pcp-pmda-named pcp-pmda-netfilter pcp-pmda-news
Requires: pcp-pmda-nginx pcp-pmda-nfsclient pcp-pmda-pdns pcp-pmda-postfix pcp-pmda-postgresql pcp-pmda-oracle Requires: pcp-pmda-nginx pcp-pmda-nfsclient pcp-pmda-pdns pcp-pmda-postfix pcp-pmda-postgresql pcp-pmda-oracle
Requires: pcp-pmda-samba pcp-pmda-slurm pcp-pmda-snmp pcp-pmda-vmware pcp-pmda-zimbra Requires: pcp-pmda-samba pcp-pmda-slurm pcp-pmda-vmware pcp-pmda-zimbra
Requires: pcp-pmda-dm pcp-pmda-apache Requires: pcp-pmda-dm pcp-pmda-apache
Requires: pcp-pmda-bash pcp-pmda-cisco pcp-pmda-gfs2 pcp-pmda-lmsensors pcp-pmda-mailq pcp-pmda-mounts Requires: pcp-pmda-bash pcp-pmda-cisco pcp-pmda-gfs2 pcp-pmda-lmsensors pcp-pmda-mailq pcp-pmda-mounts
Requires: pcp-pmda-nvidia-gpu pcp-pmda-roomtemp pcp-pmda-sendmail pcp-pmda-shping Requires: pcp-pmda-nvidia-gpu pcp-pmda-roomtemp pcp-pmda-sendmail pcp-pmda-shping
@ -1471,6 +1492,9 @@ Requires: pcp-pmda-lustrecomm pcp-pmda-logger
%if !%{disable_python2} || !%{disable_python3} %if !%{disable_python2} || !%{disable_python3}
Requires: pcp-pmda-gluster pcp-pmda-zswap pcp-pmda-unbound pcp-pmda-mic Requires: pcp-pmda-gluster pcp-pmda-zswap pcp-pmda-unbound pcp-pmda-mic
%endif %endif
%if !%{disable_snmp}
Requires: pcp-pmda-snmp
%endif
%if !%{disable_json} %if !%{disable_json}
Requires: pcp-pmda-json Requires: pcp-pmda-json
%endif %endif
@ -1515,6 +1539,11 @@ Group: Development/Libraries
Summary: Performance Co-Pilot (PCP) Python bindings and documentation Summary: Performance Co-Pilot (PCP) Python bindings and documentation
URL: http://www.pcp.io URL: http://www.pcp.io
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release} Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
%if 0%{?rhel} == 5
Requires: python%{default_python}
%else
Requires: python
%endif
%description -n python-pcp %description -n python-pcp
This python PCP module contains the language bindings for This python PCP module contains the language bindings for
@ -1532,6 +1561,7 @@ Group: Development/Libraries
Summary: Performance Co-Pilot (PCP) Python3 bindings and documentation Summary: Performance Co-Pilot (PCP) Python3 bindings and documentation
URL: http://www.pcp.io URL: http://www.pcp.io
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release} Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
Requires: python3
%description -n python3-pcp %description -n python3-pcp
This python PCP module contains the language bindings for This python PCP module contains the language bindings for
@ -1607,8 +1637,8 @@ PCP utilities and daemons, and the PCP graphical tools.
%prep %prep
%setup -q %setup -q
%setup -q -T -D -a 2 -c -n pcp-%{version}/vector %setup -q -T -D -a 1 -c -n pcp-%{version}/vector
%setup -q -T -D -a 1 %setup -q -T -D -a 2
%clean %clean
rm -Rf $RPM_BUILD_ROOT rm -Rf $RPM_BUILD_ROOT
@ -1617,7 +1647,7 @@ rm -Rf $RPM_BUILD_ROOT
%if !%{disable_python2} && 0%{?default_python} != 3 %if !%{disable_python2} && 0%{?default_python} != 3
export PYTHON=python%{?default_python} export PYTHON=python%{?default_python}
%endif %endif
%configure %{?_with_initd} %{?_with_doc} %{?_with_ib} %{?_with_papi} %{?_with_perfevent} %{?_with_json} %configure %{?_with_initd} %{?_with_doc} %{?_with_ib} %{?_with_papi} %{?_with_perfevent} %{?_with_json} %{?_with_snmp}
make %{?_smp_mflags} default_pcp make %{?_smp_mflags} default_pcp
%install %install
@ -1633,8 +1663,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
# remove sheet2pcp until BZ 830923 and BZ 754678 are resolved. # remove sheet2pcp until BZ 830923 and BZ 754678 are resolved.
rm -f $RPM_BUILD_ROOT/%{_bindir}/sheet2pcp $RPM_BUILD_ROOT/%{_mandir}/man1/sheet2pcp.1* rm -f $RPM_BUILD_ROOT/%{_bindir}/sheet2pcp $RPM_BUILD_ROOT/%{_mandir}/man1/sheet2pcp.1*
# remove configsz.h as this is not multilib friendly. # remove {config,platform}sz.h as these are not multilib friendly.
rm -f $RPM_BUILD_ROOT/%{_includedir}/pcp/configsz.h rm -f $RPM_BUILD_ROOT/%{_includedir}/pcp/configsz.h
rm -f $RPM_BUILD_ROOT/%{_includedir}/pcp/platformsz.h
%if %{disable_microhttpd} %if %{disable_microhttpd}
rm -fr $RPM_BUILD_ROOT/%{_confdir}/pmwebd rm -fr $RPM_BUILD_ROOT/%{_confdir}/pmwebd
@ -1736,7 +1767,8 @@ ls -1 $RPM_BUILD_ROOT/%{_pmdasdir} |\
# all base pcp package files except those split out into sub packages # all base pcp package files except those split out into sub packages
ls -1 $RPM_BUILD_ROOT/%{_bindir} |\ ls -1 $RPM_BUILD_ROOT/%{_bindir} |\
grep -E -v 'pmiostat|pmcollectl|pmatop|pmrep|pcp2graphite|zabbix|zbxpcp' |\ grep -E -v 'pmiostat|pmcollectl|pmatop|pmrep|pcp2graphite|zabbix|zbxpcp' |\
sed -e 's#^#'%{_bindir}'\/#' >base_bin.list grep -E -v 'pmdbg|pmclient|pmerr|genpmda' |\
sed -e 's#^#'%{_bindir}'\/#' >base_bin.list
# #
# Separate the pcp-system-tools package files. # Separate the pcp-system-tools package files.
# #
@ -1780,6 +1812,9 @@ ls -1 $RPM_BUILD_ROOT/%{_mandir}/man3 |\
sed -e 's#^#'%{_mandir}'\/man3\/#' | grep -v '3pm' >>pcp-doc.list sed -e 's#^#'%{_mandir}'\/man3\/#' | grep -v '3pm' >>pcp-doc.list
ls -1 $RPM_BUILD_ROOT/%{_datadir}/pcp/demos |\ ls -1 $RPM_BUILD_ROOT/%{_datadir}/pcp/demos |\
sed -e 's#^#'%{_datadir}'\/pcp\/demos\/#' | grep -E -v tutorials >> devel.list sed -e 's#^#'%{_datadir}'\/pcp\/demos\/#' | grep -E -v tutorials >> devel.list
ls -1 $RPM_BUILD_ROOT/%{_bindir} |\
grep -E 'pmdbg|pmclient|pmerr|genpmda' |\
sed -e 's#^#'%{_bindir}'\/#' >>devel.list
%pre testsuite %pre testsuite
test -d %{_testsdir} || mkdir -p -m 755 %{_testsdir} test -d %{_testsdir} || mkdir -p -m 755 %{_testsdir}
@ -1920,8 +1955,10 @@ fi
%preun pmda-elasticsearch %preun pmda-elasticsearch
%{pmda_remove "$1" "elasticsearch"} %{pmda_remove "$1" "elasticsearch"}
%if !%{disable_snmp}
%preun pmda-snmp %preun pmda-snmp
%{pmda_remove "$1" "snmp"} %{pmda_remove "$1" "snmp"}
%endif
%preun pmda-mysql %preun pmda-mysql
%{pmda_remove "$1" "mysql"} %{pmda_remove "$1" "mysql"}
@ -2227,7 +2264,6 @@ cd
%config(noreplace) %{_sysconfdir}/sysconfig/pmlogger %config(noreplace) %{_sysconfdir}/sysconfig/pmlogger
%config(noreplace) %{_sysconfdir}/sysconfig/pmproxy %config(noreplace) %{_sysconfdir}/sysconfig/pmproxy
%config(noreplace) %{_sysconfdir}/sysconfig/pmcd %config(noreplace) %{_sysconfdir}/sysconfig/pmcd
%config %{_sysconfdir}/bash_completion.d/pcp
%config %{_sysconfdir}/pcp.env %config %{_sysconfdir}/pcp.env
%dir %{_confdir}/pmcd %dir %{_confdir}/pmcd
%config(noreplace) %{_confdir}/pmcd/pmcd.conf %config(noreplace) %{_confdir}/pmcd/pmcd.conf
@ -2254,6 +2290,9 @@ cd
%{_localstatedir}/lib/pcp/config/pmlogrewrite %{_localstatedir}/lib/pcp/config/pmlogrewrite
%dir %attr(0775,pcp,pcp) %{_localstatedir}/lib/pcp/config/pmda %dir %attr(0775,pcp,pcp) %{_localstatedir}/lib/pcp/config/pmda
%{_datadir}/bash-completion/completions/pcp
%{_datadir}/zsh/site-functions/_pcp
%if !%{disable_sdt} %if !%{disable_sdt}
%{tapsetdir}/pmcd.stp %{tapsetdir}/pmcd.stp
%endif %endif
@ -2280,7 +2319,7 @@ cd
%{_libdir}/libpcp_trace.so.2 %{_libdir}/libpcp_trace.so.2
%{_libdir}/libpcp_import.so.1 %{_libdir}/libpcp_import.so.1
%files libs-devel -f devel.list %files libs-devel
%{_libdir}/libpcp.so %{_libdir}/libpcp.so
%{_libdir}/libpcp_gui.so %{_libdir}/libpcp_gui.so
%{_libdir}/libpcp_mmv.so %{_libdir}/libpcp_mmv.so
@ -2288,6 +2327,8 @@ cd
%{_libdir}/libpcp_trace.so %{_libdir}/libpcp_trace.so
%{_libdir}/libpcp_import.so %{_libdir}/libpcp_import.so
%{_includedir}/pcp/*.h %{_includedir}/pcp/*.h
%files devel -f devel.list
%{_datadir}/pcp/examples %{_datadir}/pcp/examples
# PMDAs that ship src and are not for production use # PMDAs that ship src and are not for production use
@ -2455,8 +2496,10 @@ cd
%files pmda-samba %files pmda-samba
%{_pmdasdir}/samba %{_pmdasdir}/samba
%if !%{disable_snmp}
%files pmda-snmp %files pmda-snmp
%{_pmdasdir}/snmp %{_pmdasdir}/snmp
%endif
%files pmda-slurm %files pmda-slurm
%{_pmdasdir}/slurm %{_pmdasdir}/slurm
@ -2589,6 +2632,10 @@ cd
%endif %endif
%changelog %changelog
* Mon Jun 06 2016 Lukas Berk <lberk@redhat.com> - 3.11.3-0.20160606git566cf74
- Automated weekly rawhide release
- Applied spec changes from upstream git
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.11.2-2.1 * Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 3.11.2-2.1
- Perl 5.24 rebuild - Perl 5.24 rebuild

View File

@ -1,3 +1,3 @@
2539e964edf6ba4d73a2b2bbf609ae7e pcp-3.11.2.src.tar.gz b129f6bffb3cb8071f7be2931647b5d3 pcp-3.11.3-0.20160606git566cf74.tar.gz
3dbb7ac87a588a97b639a45b136933b2 pcp-webjs.src.tar.gz 62acf21d461787e64fa0ba73f67e1581 pcp-webjs-20160606gitpcp-webjs-3.11.2.src.tar.gz
2d3001cd3c9464060a4260ea7364c3d0 vector-1.0.3.tar.gz b62ce8718b7aa36bba8afa87d512ef18 vector-20160606gitc851eac.tar.gz