File massif-visualizer.spec of Package massif-visualizer4

#
# 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
Version:        0.4.0
%if 0%{?sle_version} == 150300
Epoch: 1
%endif
Release:        0
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
Source:         http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
Source1:        office-chart-area.png
BuildRequires:  kgraphviewer-devel >= 2.1.0
BuildRequires:  libkde4-devel >= 4.7.0
BuildRequires:  shared-mime-info
Requires:       kgraphviewer >= 2.1.0
Recommends:     %{name}-lang
Suggests:       valgrind
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%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 %{SOURCE1} %{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
openSUSE Build Service is sponsored by