heaptrack/heaptrack.spec
Christophe Giboudeaux 32505c98ed Accepting request 941647 from home:Vogtinator:branches:KDE:Extra
- Update to 1.3.0:
  * New features:
    + Allocations can be filtered by time ranges
    + Support for suppression files, including the
      __lsan_default_suppressions API
  * Fixed bugs:
    + Fails to build on CentOS 7.0 (kde#441125)
    + Crash when filtering on a time range (kde#441132)
    + Heaptrack produces impossible/incorrect stack traces (kde#439897)
    + ERROR: failed to lock heaptrack output file (kde#408547)
    + Attaching to running process generates empty file (kde#394520)
    + heaptrack launch script help text shows wrong option name for --output-file (kde#439307)
    + Can the output file take hostname into account? (kde#435195)
    + Heaptrack GUI crash when opening a zst file (kde#427970)
  * More details on https://invent.kde.org/sdk/heaptrack/-/releases/v1.3.0
- Use %autosetup

OBS-URL: https://build.opensuse.org/request/show/941647
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/heaptrack?expand=0&rev=28
2021-12-20 12:15:45 +00:00

124 lines
3.3 KiB
RPMSpec

#
# spec file for package heaptrack
#
# Copyright (c) 2021 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/
#
%define kf5_version 5.26.0
%bcond_without lang
Name: heaptrack
Version: 1.3.0
Release: 0
Summary: Heap Memory Allocation Profiler
License: LGPL-2.1-or-later
Group: Development/Tools/Other
URL: https://userbase.kde.org/Heaptrack
Source0: https://download.kde.org/stable/heaptrack/%{version}/%{name}-%{version}.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: kf5-filesystem
BuildRequires: libboost_container-devel
BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_iostreams-devel
BuildRequires: libboost_program_options-devel
BuildRequires: libboost_system-devel
BuildRequires: libdwarf-devel
BuildRequires: libunwind-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
BuildRequires: cmake(KChart) >= 2.6.0
BuildRequires: cmake(KF5ConfigWidgets)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5IconThemes)
BuildRequires: cmake(KF5ItemModels)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5ThreadWeaver)
BuildRequires: cmake(Qt5Core) >= 5.2.0
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: pkgconfig(libzstd)
Suggests: heaptrack-gui
%description
A memory profiler for Linux, tracking heap allocations.
%package devel
Summary: Development files for the Heaptrack API
Group: Development/Libraries/KDE
Requires: %{name} = %{version}
%description devel
This package contains files needed to develop for the Heaptrack
API.
%package gui
Summary: GUI Frontend for Heaptrack
Group: Development/Tools/Other
Requires: %{name} = %{version}
%description gui
A Qt5/KF5 based GUI for Heaptrack.
%lang_package
%prep
%autosetup -p1
# Disable building tests, they're not used and post-build-checks trips over it
sed -i"" '/add_subdirectory(tests)/d' CMakeLists.txt
%build
%if "%{_lib}" == "lib64"
extra_opts="-DLIB_SUFFIX=64"
%endif
%cmake_kf5 -d build -- $extra_opts
%cmake_build
%install
%kf5_makeinstall -C build
%if %{with lang}
%find_lang %{name} --all-name
%endif
# Fixup desktop file
%suse_update_desktop_file org.kde.heaptrack Development Profiling
%files
%license LICENSES/*
%doc README.md
%{_kf5_bindir}/heaptrack
%{_kf5_bindir}/heaptrack_print
%{_libdir}/heaptrack/
%files devel
%license LICENSES/*
%{_includedir}/heaptrack_api.h
%files gui
%{_kf5_bindir}/heaptrack_gui
%{_datadir}/applications/org.kde.heaptrack.desktop
%{_kf5_appstreamdir}/org.kde.heaptrack.appdata.xml
%dir %{_kf5_iconsdir}/hicolor/*
%dir %{_kf5_iconsdir}/hicolor/*/*
%{_kf5_iconsdir}/*/*/*/*.*
%if %{with lang}
%files lang -f %{name}.lang
%endif
%changelog