From 64728b858183c644cf515b2955ce03a9dc5f7f9a77a084647a7a1a989efb34fc Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Wed, 23 May 2018 15:26:03 +0000 Subject: [PATCH] Run spec-cleaner OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/heaptrack?expand=0&rev=7 --- heaptrack.spec | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/heaptrack.spec b/heaptrack.spec index 5eff018..bc7d428 100644 --- a/heaptrack.spec +++ b/heaptrack.spec @@ -16,21 +16,24 @@ # +%define kf5_version 5.26.0 %bcond_without lang - Name: heaptrack Version: 1.1.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}/%{name}-%{version}.tar.xz # PATCH-FIX-UPSTREAM -Patch: Fix-compile-on-32bit.patch +Patch0: Fix-compile-on-32bit.patch BuildRequires: extra-cmake-modules BuildRequires: kf5-filesystem +BuildRequires: libdwarf-devel +BuildRequires: libunwind-devel +BuildRequires: update-desktop-files +BuildRequires: zlib-devel BuildRequires: cmake(KChart) >= 2.6.0 BuildRequires: cmake(KF5ConfigWidgets) BuildRequires: cmake(KF5CoreAddons) @@ -41,19 +44,14 @@ BuildRequires: cmake(KF5ThreadWeaver) BuildRequires: cmake(Qt5Core) >= 5.2.0 BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5Widgets) +Recommends: %{name}-lang +Suggests: heaptrack-gui %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: update-desktop-files -BuildRequires: zlib-devel -Recommends: %{name}-lang -Suggests: heaptrack-gui -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A memory profiler for Linux, tracking heap allocations. @@ -64,7 +62,8 @@ A memory profiler for Linux, tracking heap allocations. %prep %setup -q -%patch -p1 +%autopatch -p1 + # Disable building tests, they're not used and post-build-checks trips over it sed -i"" '/add_subdirectory(tests)/d' CMakeLists.txt @@ -98,7 +97,6 @@ Requires: %{name} = %{version} A Qt5/KF5 based GUI for Heaptrack. %files -%defattr(-,root,root) %license COPYING* %doc README.md %{_kf5_bindir}/heaptrack @@ -106,12 +104,10 @@ A Qt5/KF5 based GUI for Heaptrack. %{_libexecdir}/heaptrack %files devel -%defattr(-,root,root) %license COPYING* %{_includedir}/heaptrack_api.h %files gui -%defattr(-,root,root) %license COPYING* %{_kf5_bindir}/heaptrack_gui %{_datadir}/applications/org.kde.heaptrack.desktop