forked from pool/heaptrack
Run spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/heaptrack?expand=0&rev=7
This commit is contained in:
parent
10a4924dbb
commit
64728b8581
@ -16,21 +16,24 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define kf5_version 5.26.0
|
||||||
%bcond_without lang
|
%bcond_without lang
|
||||||
|
|
||||||
Name: heaptrack
|
Name: heaptrack
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
%define kf5_version 5.26.0
|
|
||||||
Summary: Heap Memory Allocation Profiler
|
Summary: Heap Memory Allocation Profiler
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
Url: https://userbase.kde.org/Heaptrack
|
Url: https://userbase.kde.org/Heaptrack
|
||||||
Source0: https://download.kde.org/stable/heaptrack/%{version}/%{name}-%{version}.tar.xz
|
Source0: https://download.kde.org/stable/heaptrack/%{version}/%{name}-%{version}.tar.xz
|
||||||
# PATCH-FIX-UPSTREAM
|
# PATCH-FIX-UPSTREAM
|
||||||
Patch: Fix-compile-on-32bit.patch
|
Patch0: Fix-compile-on-32bit.patch
|
||||||
BuildRequires: extra-cmake-modules
|
BuildRequires: extra-cmake-modules
|
||||||
BuildRequires: kf5-filesystem
|
BuildRequires: kf5-filesystem
|
||||||
|
BuildRequires: libdwarf-devel
|
||||||
|
BuildRequires: libunwind-devel
|
||||||
|
BuildRequires: update-desktop-files
|
||||||
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: cmake(KChart) >= 2.6.0
|
BuildRequires: cmake(KChart) >= 2.6.0
|
||||||
BuildRequires: cmake(KF5ConfigWidgets)
|
BuildRequires: cmake(KF5ConfigWidgets)
|
||||||
BuildRequires: cmake(KF5CoreAddons)
|
BuildRequires: cmake(KF5CoreAddons)
|
||||||
@ -41,19 +44,14 @@ BuildRequires: cmake(KF5ThreadWeaver)
|
|||||||
BuildRequires: cmake(Qt5Core) >= 5.2.0
|
BuildRequires: cmake(Qt5Core) >= 5.2.0
|
||||||
BuildRequires: cmake(Qt5DBus)
|
BuildRequires: cmake(Qt5DBus)
|
||||||
BuildRequires: cmake(Qt5Widgets)
|
BuildRequires: cmake(Qt5Widgets)
|
||||||
|
Recommends: %{name}-lang
|
||||||
|
Suggests: heaptrack-gui
|
||||||
%if 0%{?suse_version} >= 1330
|
%if 0%{?suse_version} >= 1330
|
||||||
BuildRequires: libboost_iostreams-devel
|
BuildRequires: libboost_iostreams-devel
|
||||||
BuildRequires: libboost_program_options-devel
|
BuildRequires: libboost_program_options-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
%endif
|
%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
|
%description
|
||||||
A memory profiler for Linux, tracking heap allocations.
|
A memory profiler for Linux, tracking heap allocations.
|
||||||
@ -64,7 +62,8 @@ A memory profiler for Linux, tracking heap allocations.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -p1
|
%autopatch -p1
|
||||||
|
|
||||||
# Disable building tests, they're not used and post-build-checks trips over it
|
# Disable building tests, they're not used and post-build-checks trips over it
|
||||||
sed -i"" '/add_subdirectory(tests)/d' CMakeLists.txt
|
sed -i"" '/add_subdirectory(tests)/d' CMakeLists.txt
|
||||||
|
|
||||||
@ -98,7 +97,6 @@ Requires: %{name} = %{version}
|
|||||||
A Qt5/KF5 based GUI for Heaptrack.
|
A Qt5/KF5 based GUI for Heaptrack.
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%license COPYING*
|
%license COPYING*
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_kf5_bindir}/heaptrack
|
%{_kf5_bindir}/heaptrack
|
||||||
@ -106,12 +104,10 @@ A Qt5/KF5 based GUI for Heaptrack.
|
|||||||
%{_libexecdir}/heaptrack
|
%{_libexecdir}/heaptrack
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%license COPYING*
|
%license COPYING*
|
||||||
%{_includedir}/heaptrack_api.h
|
%{_includedir}/heaptrack_api.h
|
||||||
|
|
||||||
%files gui
|
%files gui
|
||||||
%defattr(-,root,root)
|
|
||||||
%license COPYING*
|
%license COPYING*
|
||||||
%{_kf5_bindir}/heaptrack_gui
|
%{_kf5_bindir}/heaptrack_gui
|
||||||
%{_datadir}/applications/org.kde.heaptrack.desktop
|
%{_datadir}/applications/org.kde.heaptrack.desktop
|
||||||
|
Loading…
Reference in New Issue
Block a user