massif-visualizer/massif-visualizer.spec
2014-11-12 22:10:42 +00:00

82 lines
2.3 KiB
RPMSpec

#
# spec file for package massif-visualizer
#
# Copyright (c) 2014 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/
#
Name: massif-visualizer
Summary: Visualizer for output generated by Valgrind's massif tool
License: LGPL-2.0
Group: Development/Tools/Other
Url: https://projects.kde.org/massif-visualizer
BuildRequires: kgraphviewer-devel
BuildRequires: libkde4-devel
BuildRequires: shared-mime-info
Version: 0.3.90
Release: 0
Source0: ftp://ftp.kde.org/pub/kde/unstable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
Source2: office-chart-area.png
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-lang
Requires: kgraphviewer
Suggests: valgrind
%kde4_runtime_requires
%description
Massif Visualizer is a tool that visualizes massif data.
You run your application in Valgrind with --tool=massif and then open the
generated massif.out.pid file in the visualizer.
Gzip or Bzip2 compressed massif files can also be opened transparently.
%lang_package
%prep
%setup -q
%build
%cmake_kde4 -d build
%make_jobs
%install
%kde4_makeinstall -C build
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps
%suse_update_desktop_file %{name} Debugger
%kde_post_install
%find_lang massif-visualizer %{name}.lang
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files lang -f %{name}.lang
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_kde4_bindir}/massif-visualizer
%{_kde4_appsdir}/massif-visualizer
%{_kde4_configkcfgdir}/massif-visualizer-settings.kcfg
%{_kde4_applicationsdir}/massif-visualizer.desktop
%{_datadir}/mime/packages/massif.xml
%{_datadir}/pixmaps/office-chart-area.png
%changelog