Update to latest community sources

This commit is contained in:
Mark Goodwin 2012-08-28 20:54:33 +10:00
parent 03b076a0f6
commit cf1cd7d4e6
3 changed files with 63 additions and 13 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ pcp-3.3.3-1.src.tar.gz
/pcp-3.5.11-2.src.tar.gz /pcp-3.5.11-2.src.tar.gz
/pcp-3.6.3-1.src.tar.gz /pcp-3.6.3-1.src.tar.gz
/pcp-3.6.5-1.src.tar.gz /pcp-3.6.5-1.src.tar.gz
/pcp-3.6.6-1.src.tar.gz

View File

@ -1,6 +1,6 @@
Summary: System-level performance monitoring and performance management Summary: System-level performance monitoring and performance management
Name: pcp Name: pcp
Version: 3.6.5 Version: 3.6.6
%define buildversion 1 %define buildversion 1
Release: %{buildversion}%{?dist} Release: %{buildversion}%{?dist}
@ -12,12 +12,16 @@ Source0: ftp://oss.sgi.com/projects/pcp/download/pcp-%{version}-%{buildversion}.
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: procps autoconf bison flex ncurses-devel readline-devel BuildRequires: procps autoconf bison flex ncurses-devel readline-devel
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: initscripts BuildRequires: initscripts python-devel man /bin/hostname
Requires: bash gawk sed grep fileutils findutils initscripts Requires: bash gawk sed grep fileutils findutils initscripts perl python
Requires: pcp-libs = %{version} Requires: pcp-libs = %{version}
Requires: python-pcp = %{version}
Requires: perl-PCP-PMDA = %{version}
%define _pmdasdir %{_localstatedir}/lib/pcp/pmdas %define _pmdasdir %{_localstatedir}/lib/pcp/pmdas
%define _testsdir %{_localstatedir}/lib/pcp/testsuite
%description %description
Performance Co-Pilot (PCP) provides a framework and services to support Performance Co-Pilot (PCP) provides a framework and services to support
@ -32,7 +36,7 @@ applications to easily retrieve and process any subset of that data.
# #
%package libs %package libs
License: LGPLv2 License: LGPLv2
Group: Applications/System Group: Development/Libraries
Summary: Performance Co-Pilot run-time libraries Summary: Performance Co-Pilot run-time libraries
URL: http://oss.sgi.com/projects/pcp/ URL: http://oss.sgi.com/projects/pcp/
@ -44,7 +48,7 @@ Performance Co-Pilot (PCP) run-time libraries
# #
%package libs-devel %package libs-devel
License: GPLv2 License: GPLv2
Group: Applications/System Group: Development/Libraries
Summary: Performance Co-Pilot (PCP) development headers and documentation Summary: Performance Co-Pilot (PCP) development headers and documentation
URL: http://oss.sgi.com/projects/pcp/ URL: http://oss.sgi.com/projects/pcp/
@ -53,15 +57,29 @@ Requires: pcp-libs = %{version}
%description libs-devel %description libs-devel
Performance Co-Pilot (PCP) headers, documentation and tools for development. Performance Co-Pilot (PCP) headers, documentation and tools for development.
#
# pcp-testsuite
#
%package testsuite
License: GPLv2
Group: Development/Libraries
Summary: Performance Co-Pilot (PCP) test suite
URL: http://oss.sgi.com/projects/pcp/
Requires: pcp-libs-devel = %{version} valgrind
%description testsuite
Quality assurance test suite for Performance Co-Pilot (PCP).
# #
# perl-PCP-PMDA. This is the PCP agent perl binding. # perl-PCP-PMDA. This is the PCP agent perl binding.
# #
%package -n perl-PCP-PMDA %package -n perl-PCP-PMDA
License: GPLv2 License: GPLv2
Group: Applications/System Group: Development/Libraries
Summary: Performance Co-Pilot (PCP) Perl bindings and documentation Summary: Performance Co-Pilot (PCP) Perl bindings and documentation
URL: http://oss.sgi.com/projects/pcp/ URL: http://oss.sgi.com/projects/pcp/
Requires: pcp >= %{version} Requires: pcp-libs = %{version}
%description -n perl-PCP-PMDA %description -n perl-PCP-PMDA
The PCP::PMDA Perl module contains the language bindings for The PCP::PMDA Perl module contains the language bindings for
@ -75,7 +93,7 @@ an application, etc.
# #
%package -n perl-PCP-MMV %package -n perl-PCP-MMV
License: GPLv2 License: GPLv2
Group: Applications/System Group: Development/Libraries
Summary: Performance Co-Pilot (PCP) Perl bindings for PCP Memory Mapped Values Summary: Performance Co-Pilot (PCP) Perl bindings for PCP Memory Mapped Values
URL: http://oss.sgi.com/projects/pcp/ URL: http://oss.sgi.com/projects/pcp/
Requires: pcp >= %{version} Requires: pcp >= %{version}
@ -93,7 +111,7 @@ and analysis with pmchart, pmie, pmlogger and other PCP tools.
# #
%package -n perl-PCP-LogImport %package -n perl-PCP-LogImport
License: GPLv2 License: GPLv2
Group: Applications/System Group: Development/Libraries
Summary: Performance Co-Pilot (PCP) Perl bindings for importing external data into PCP archives Summary: Performance Co-Pilot (PCP) Perl bindings for importing external data into PCP archives
URL: http://oss.sgi.com/projects/pcp/ URL: http://oss.sgi.com/projects/pcp/
Requires: pcp >= %{version} Requires: pcp >= %{version}
@ -108,7 +126,7 @@ they can be replayed with standard PCP monitoring tools.
# #
%package -n perl-PCP-LogSummary %package -n perl-PCP-LogSummary
License: GPLv2 License: GPLv2
Group: Applications/System Group: Development/Libraries
Summary: Performance Co-Pilot (PCP) Perl bindings for post-processing output of pmlogsummary Summary: Performance Co-Pilot (PCP) Perl bindings for post-processing output of pmlogsummary
URL: http://oss.sgi.com/projects/pcp/ URL: http://oss.sgi.com/projects/pcp/
Requires: pcp >= %{version} Requires: pcp >= %{version}
@ -163,10 +181,23 @@ Requires: pcp-libs >= %{version} perl-PCP-LogImport >= %{version}
Performance Co-Pilot (PCP) front-end tools for importing MTRG data Performance Co-Pilot (PCP) front-end tools for importing MTRG data
into standard PCP archive logs for replay with any PCP monitoring tool. into standard PCP archive logs for replay with any PCP monitoring tool.
#
# python-pcp. This is the PCP library bindings for python.
#
%package -n python-pcp
License: GPLv2
Group: Development/Libraries
Summary: Performance Co-Pilot (PCP) Python bindings and documentation
URL: http://oss.sgi.com/projects/pcp/
Requires: pcp-libs = %{version}
%description -n python-pcp
The python PCP module contains the language bindings for
building Performance Metric API (PMAPI) tools using Python.
%prep %prep
%setup -q %setup -q
autoconf %configure --with-rcdir=/etc/rc.d/init.d
%configure
%clean %clean
rm -Rf $RPM_BUILD_ROOT rm -Rf $RPM_BUILD_ROOT
@ -203,6 +234,12 @@ sed -e 's#^#'%{_mandir}'\/man1\/#' >base_man1files.list
cat base_pmdas.list base_binfiles.list base_man1files.list > base_specialfiles.list cat base_pmdas.list base_binfiles.list base_man1files.list > base_specialfiles.list
%pre testsuite
getent group pcpqa >/dev/null || groupadd -r pcpqa
getent passwd pcpqa >/dev/null || \
useradd -c "PCP Quality Assurance" -g pcpqa -d %{_testsdir} -m -r -s /bin/bash pcpqa 2>/dev/null
exit 0
%preun %preun
if [ "$1" -eq 0 ] if [ "$1" -eq 0 ]
then then
@ -313,6 +350,10 @@ fi
%{_localstatedir}/lib/pcp/pmdas/trivial %{_localstatedir}/lib/pcp/pmdas/trivial
%{_localstatedir}/lib/pcp/pmdas/txmon %{_localstatedir}/lib/pcp/pmdas/txmon
%files testsuite
%defattr(-,root,root)
%{_testsdir}
%files import-sar2pcp %files import-sar2pcp
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/sar2pcp %{_bindir}/sar2pcp
@ -340,7 +381,14 @@ fi
%files -n perl-PCP-LogSummary -f perl-pcp-logsummary.list %files -n perl-PCP-LogSummary -f perl-pcp-logsummary.list
%defattr(-,root,root) %defattr(-,root,root)
%files -n python-pcp -f python-pcp.list.rpm
%defattr(-,root,root)
%changelog %changelog
* Tue Aug 28 2012 Mark Goodwin <mgoodwin@redhat.com> - 3.6.6-1
- Update to latest PCP sources, see installed CHANGELOG for details.
- Introduces new python-pcp and pcp-testsuite sub-packages.
* Thu Aug 16 2012 Mark Goodwin <mgoodwin@redhat.com> - 3.6.5-1 * Thu Aug 16 2012 Mark Goodwin <mgoodwin@redhat.com> - 3.6.5-1
- Update to latest PCP sources, see installed CHANGELOG for details. - Update to latest PCP sources, see installed CHANGELOG for details.
- Fix security flaws: CVE-2012-3418 CVE-2012-3419 CVE-2012-3420 and CVE-2012-3421 (BZ 848629) - Fix security flaws: CVE-2012-3418 CVE-2012-3419 CVE-2012-3420 and CVE-2012-3421 (BZ 848629)

View File

@ -1 +1,2 @@
a9b52ec368be5c7ea1e9c7bc4be8a50f pcp-3.6.5-1.src.tar.gz 2de8ed0061eacb26fdf84706448b00af pcp-3.6.6-1.src.tar.gz
33d3bf9715f0c0493127aa4781a01405 pcp.spec