File pcp-gui.spec of Package pcp-gui
#
# spec file for package pcp-gui
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Summary: Visualisation tools for the Performance Co-Pilot toolkit
Name: pcp-gui
Version: 1.5.5
Release: 0
%define pcp_vers 3.6.4
%if "%{_vendor}" == "suse"
%define pcp_gr System/Monitoring
%define doc_gr Documentation/HTML
%define lib_pkg libpcp3
%define lib_devel_pkg libpcp-devel
%define gui_license GPL-2.0+ and LGPL-2.1+ and SUSE-QWT-1.0
%else
%define pcp_gr Applications/System
%define doc_gr Documentation
%define lib_pkg pcp-libs
%define lib_devel_pkg pcp-libs-devel
%define gui_license GPLv2+ and LGPLv2+ and LGPLv2+ with exceptions
%endif
License: %{gui_license}
Group: %{pcp_gr}
Url: http://oss.sgi.com/projects/pcp
Source: %{name}-%{version}.src.tar.gz
Requires: pcp >= %{pcp_vers}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: bison
BuildRequires: flex
BuildRequires: %{lib_devel_pkg} >= %{pcp_vers}
BuildRequires: %{lib_pkg}
BuildRequires: pcp >= %{pcp_vers}
%if "%{_vendor}" == "suse"
Requires: qt >= 4.2
BuildRequires: libqt4-devel
BuildRequires: qt-devel >= 4.2
BuildRequires: update-desktop-files
%if 0%{?suse_version} > 1130
BuildRequires: qt4-assistant-adp-devel
%endif
%else
Requires: qt4 >= 4.2
BuildRequires: qt4-devel >= 4.2
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
%if (0%{?fedora} > 12 || 0%{?rhel} > 5)
BuildRequires: qt-assistant-adp-devel
%endif
%endif
Patch0: fix_desktop_file.diff
Patch1: qt_assist_path.diff
%description
Visualization tools for the Performance Co-Pilot toolkit.
Performance Co-Pilot (PCP) provides a framework and services to support
system-level performance monitoring and performance management.
The PCP GUI package primarily includes visualization tools for
monitoring systems using live and archived Performance Co-Pilot
(PCP) sources.
These tools have dependencies on graphics libraries which may or
may not be installed on server machines, so PCP GUI is delivered,
managed and maintained as a separate (source and binary) package
to the core PCP infrastructure.
%package -n pcp-doc
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
Conflicts: pcp-gui < 1.5.0
Summary: Performance Co-Pilot documentation and tutorials
Group: %{doc_gr}
Url: http://oss.sgi.com/projects/pcp/
%description -n pcp-doc
Documentation and tutorial for the Performance Co-Pilot
Performance Co-Pilot (PCP) provides a framework and services to support
system-level performance monitoring and performance management.
The pcp-doc package provides useful information on using and
configuring the Performance Co-Pilot (PCP) toolkit for system
level performance management. It includes tutorials, HOWTOs,
and other detailed documentation about the internals of core
PCP utilities and daemons, and the PCP graphical tools.
%prep
%setup -q
%patch0
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1130
%patch1
%endif
autoconf
%configure
%clean
[ ! -z "$DIST_ROOT" ] && rm -rf $DIST_ROOT
rm -rf $RPM_BUILD_ROOT
%build
make default-pcp-gui
%install
BACKDIR=`pwd`;
DIST_ROOT="$RPM_BUILD_ROOT"
export DIST_ROOT
make install-pcp-gui
%if "%{_vendor}" == "suse"
%suse_update_desktop_file -i pmchart
%endif
%files
%defattr(-,root,root)
%dir %attr(755,root,root) %{_libexecdir}/pcp/bin
%dir %attr(755,root,root) %{_datadir}/doc/pcp-gui
%dir %attr(755,root,root) %{_datadir}/pcp/demos/tutorials
%dir %attr(755,root,root) %{_localstatedir}/lib/pcp/config/pmafm
%dir %attr(755,root,root) %{_localstatedir}/lib/pcp/config/pmchart
%dir %attr(755,root,root) %{_localstatedir}/lib/pcp/config/pmsnap
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/CPU
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Disk
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Diskbytes
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Filesystem
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Loadavg
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Memory
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/NFS2
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/NFS3
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Netbytes
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Netpackets
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Overview
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/PMCD
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Paging
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Schemes
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Sockets
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Swap
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmchart/Syscalls
%doc %attr(0444,root,root) %{_localstatedir}/lib/pcp/config/pmafm/pcp-gui
%doc %attr(644,root,root) %{_datadir}/doc/pcp-gui/README
%doc %attr(644,root,root) %{_datadir}/doc/pcp-gui/COPYING
%doc %attr(644,root,root) %{_datadir}/pixmaps/pmchart.png
%doc %attr(644,root,root) %{_datadir}/pixmaps/pmtime.png
%doc %attr(644,root,root) %{_datadir}/pcp/demos/tutorials/cpuperf.tar.gz
%doc %attr(644,root,root) %{_datadir}/pcp/demos/tutorials/diskmodel.tar.gz
%doc %attr(644,root,root) %{_datadir}/pcp/demos/tutorials/diskperf.tar.gz
%doc %attr(644,root,root) %{_datadir}/pcp/demos/tutorials/pmie.tar.gz
%doc %attr(644,root,root) %{_datadir}/pcp/demos/tutorials/pmview.tar.gz
%doc %attr(644,root,root) %{_mandir}/man1/pmchart.1.gz
%doc %attr(644,root,root) %{_mandir}/man1/pmdumptext.1.gz
%doc %attr(644,root,root) %{_mandir}/man1/pmconfirm.1.gz
%doc %attr(644,root,root) %{_mandir}/man1/pmsnap.1.gz
%doc %attr(644,root,root) %{_mandir}/man1/pmtime.1.gz
%doc %attr(644,root,root) %{_mandir}/man1/kmchart.1.gz
%doc %attr(644,root,root) %{_mandir}/man1/pmmessage.1.gz
%doc %attr(644,root,root) %{_mandir}/man1/pmquery.1.gz
%doc %attr(644,root,root) %{_datadir}/doc/pcp-gui/pcp-gui.lsm
%doc %attr(644,root,root) %{_datadir}/applications/pmchart.desktop
%doc %attr(644,root,root) %{_localstatedir}/lib/pcp/config/pmsnap/Snap
%config(noreplace) %doc %attr(644,root,root) %{_localstatedir}/lib/pcp/config/pmsnap/control
%config(noreplace) %doc %attr(644,root,root) %{_localstatedir}/lib/pcp/config/pmsnap/crontab
%attr(644,root,root) %{_localstatedir}/lib/pcp/config/pmsnap/summary.html
%attr(755,root,root) %{_bindir}/pmchart
%attr(755,root,root) %{_bindir}/pmdumptext
%attr(755,root,root) %{_bindir}/pmconfirm
%attr(755,root,root) %{_bindir}/pmmessage
%attr(755,root,root) %{_bindir}/pmquery
%attr(755,root,root) %{_libexecdir}/pcp/bin/pmsnap
%attr(755,root,root) %{_bindir}/pmtime
%attr(755,root,root) %{_bindir}/kmchart
%files -n pcp-doc
%defattr(-,root,root)
%dir %{_datadir}/doc/pcp-doc
%dir %{_datadir}/doc/pcp-doc/html
%doc %{_datadir}/doc/pcp-doc/*/*
%changelog