File massif-visualizer.spec of Package massif-visualizer

#
# spec file for package massif-visualizer
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           massif-visualizer
Version:        0.7.0
Release:        0
Summary:        Visualizer for output generated by Valgrind's massif tool
License:        LGPL-2.0-only
Group:          Development/Tools/Other
URL:            https://invent.kde.org/sdk/massif-visualizer
Source:         https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:  extra-cmake-modules
BuildRequires:  kgraphviewer-devel >= 2.4.0
BuildRequires:  shared-mime-info
BuildRequires:  update-desktop-files
BuildRequires:  cmake(KChart)
BuildRequires:  cmake(KF5Archive)
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5KIO)
BuildRequires:  cmake(KF5Parts)
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5PrintSupport)
BuildRequires:  cmake(Qt5Svg)
BuildRequires:  cmake(Qt5Test)
BuildRequires:  cmake(Qt5Widgets)
BuildRequires:  cmake(Qt5XmlPatterns)
Requires:       kgraphviewer >= 2.4.0
Recommends:     %{name}-lang
Suggests:       valgrind

%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_kf5 -d build
  %cmake_build

%install
  %kf5_makeinstall -C build

  %suse_update_desktop_file org.kde.%{name} Debugger

  %find_lang massif-visualizer %{name}.lang

%files lang -f %{name}.lang

%files
%license COPYING
%doc AUTHORS README
%{_kf5_applicationsdir}/org.kde.massif-visualizer.desktop
%{_kf5_appstreamdir}/org.kde.massif-visualizer.appdata.xml
%{_kf5_bindir}/massif-visualizer
%{_kf5_configkcfgdir}/
%{_kf5_iconsdir}/hicolor/scalable/apps/massif-visualizer.svg
%{_kf5_sharedir}/kxmlgui5/
%{_kf5_sharedir}/massif-visualizer
%{_kf5_sharedir}/mime/packages/massif.xml

%changelog
openSUSE Build Service is sponsored by