commit 16cb9ee6a3553ba28f739e07a6829ed60d73f616170652b18b491991d2ae68cb Author: Christophe Giboudeaux Date: Wed Apr 19 20:12:24 2017 +0000 Accepting request 489430 from home:Vogtinator:heaptrack New package OBS-URL: https://build.opensuse.org/request/show/489430 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/heaptrack?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/heaptrack-1.0.0.tar.xz b/heaptrack-1.0.0.tar.xz new file mode 100644 index 0000000..0b16bdb --- /dev/null +++ b/heaptrack-1.0.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01d87ea1b424a67f943483ff141c0a32a46c5b6109834e2e832ebef898a4474f +size 853976 diff --git a/heaptrack.changes b/heaptrack.changes new file mode 100644 index 0000000..c17ca14 --- /dev/null +++ b/heaptrack.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Apr 19 18:22:16 UTC 2017 - fabian@ritter-vogt.de + +- Initial commit diff --git a/heaptrack.spec b/heaptrack.spec new file mode 100644 index 0000000..8610411 --- /dev/null +++ b/heaptrack.spec @@ -0,0 +1,128 @@ +# +# spec file for package heaptrack +# +# Copyright (c) 2017 SUSE LINUX 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 +# + +%bcond_without lang + +Name: heaptrack +Version: 1.0.0 +Release: 0 +%define kf5_version 5.26.0 +Summary: Heap Memory Allocation Profiler +License: LGPL-2.1+ +Group: Development/Tools/Other +Url: https://userbase.kde.org/Heaptrack +Source0: https://download.kde.org/stable/heaptrack/%{version}/src/%{name}-%{version}.tar.xz +# Needs office-chart-area icon +BuildRequires: breeze5-icons +BuildRequires: extra-cmake-modules +BuildRequires: cmake(Qt5Core) >= 5.2.0 +BuildRequires: cmake(Qt5DBus) +BuildRequires: cmake(Qt5Widgets) +BuildRequires: kf5-filesystem +BuildRequires: cmake(KChart) >= 2.6.0 +BuildRequires: cmake(KF5CoreAddons) +BuildRequires: cmake(KF5I18n) +BuildRequires: cmake(KF5ItemModels) +BuildRequires: cmake(KF5KIO) +BuildRequires: cmake(KF5ThreadWeaver) +BuildRequires: cmake(KF5ConfigWidgets) +%if 0%{?suse_version} >= 1330 +BuildRequires: libboost_iostreams-devel +BuildRequires: libboost_program_options-devel +%else +BuildRequires: boost-devel +%endif +BuildRequires: libdwarf-devel +BuildRequires: libunwind-devel +BuildRequires: zlib-devel +BuildRequires: update-desktop-files +Recommends: %{name}-lang +Suggests: heaptrack-gui +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +A memory profiler for Linux, tracking heap allocations. + +%if %{with lang} +%lang_package +%endif + +%prep +%setup -q +# Disable building tests, they're not used and post-build-checks trips over it +sed -i"" '/add_subdirectory(tests)/d' CMakeLists.txt + +%build + %cmake_kf5 -d build + %make_jobs + +%install + %make_install -C build + %if %{with lang} + %find_lang %{name} --all-name + %endif + # Install icon from breeze + mkdir -p %{buildroot}%{_kf5_iconsdir}/hicolor/scalable/apps/ + cp %{_kf5_iconsdir}/breeze/actions/24/office-chart-area.svg %{buildroot}%{_kf5_iconsdir}/hicolor/scalable/apps/ + # Fixup desktop file + %suse_update_desktop_file org.kde.heaptrack Development Profiling + +%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. + +%files +%defattr(-,root,root) +%doc COPYING* +%{_kf5_bindir}/heaptrack +%{_kf5_bindir}/heaptrack_print +%{_libexecdir}/heaptrack + +%files devel +%defattr(-,root,root) +%doc COPYING* +%{_includedir}/heaptrack_api.h + +%files gui +%defattr(-,root,root) +%doc COPYING* +%{_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 +%doc COPYING* +%endif + +%changelog