- Add ppc64-fix-367fd5731a8c68225cb870aa656ea0ce677fe040.patch in order to address power targets. - Update to version 2.7: * bug in span stats printing introduced by new scalable page heap change was fixed. * Christoph Müllner has contributed couple warnings fixes and initial support for aarch64_ilp32 architecture. * Ben Dang contributed documentation fix for heap checker. * Fabrice Fontaine contributed fixed for linking benchmarks with --disable-static. * Holy Wu has added sized deallocation unit tests. * Holy Wu has enabled support of sized deallocation (c++14) on recent MSVC. * Holy Wu has fixed MSVC build in WIN32_OVERRIDE_ALLOCATORS mode. This closed issue #716. * Holy Wu has contributed cleanup of config.h used on windows. * Mao Huang has contributed couple simple tcmalloc changes from chromium code base. Making our tcmalloc forks a tiny bit closer. * issue #946 that caused compilation failures on some Linux clang installations has been fixed. Much thanks to github user htuch for helping to diagnose issue and proposing a fix. * Tulio Magno Quites Machado Filho has contributed build-time fix for PPC (for problem introduced in one of commits since RC). - Add gcc-dont-clobber-rsp.patch (bsc#1121265). - Remove ucontext.patch, gperftools-s390.patch and gperftools-aarch64.patch patches. OBS-URL: https://build.opensuse.org/request/show/682171 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gperftools?expand=0&rev=46
162 lines
4.7 KiB
RPMSpec
162 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package gperftools
|
|
#
|
|
# Copyright (c) 2019 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: gperftools
|
|
Version: 2.7
|
|
Release: 0
|
|
Summary: Performance Tools for C++
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
Url: https://github.com/gperftools/gperftools
|
|
Source0: https://github.com/gperftools/gperftools/releases/download/gperftools-%{version}/gperftools-%{version}.tar.gz
|
|
Patch1: %{name}_fix_unassigned_malloc_in_unittest.patch
|
|
Patch2: %{name}_gcc46.patch
|
|
Patch3: gcc-dont-clobber-rsp.patch
|
|
Patch4: ppc64-fix-367fd5731a8c68225cb870aa656ea0ce677fe040.patch
|
|
BuildRequires: autoconf >= 2.59
|
|
BuildRequires: automake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libtool
|
|
%ifnarch s390x s390
|
|
BuildRequires: libunwind-devel
|
|
%endif
|
|
BuildRequires: pkg-config
|
|
%ifnarch s390
|
|
BuildRequires: valgrind-devel
|
|
%endif
|
|
Provides: google-perftools
|
|
Obsoletes: google-perftools
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
The gperftools package contains some utilities to improve and analyze the
|
|
performance of C++ programs. This includes an optimized thread-caching
|
|
malloc() and cpu and heap profiling utilities.
|
|
|
|
%package -n libprofiler0
|
|
Summary: CPU and Heap profiling library
|
|
Group: System/Libraries
|
|
|
|
%description -n libprofiler0
|
|
This subpackage contains a library with cpu and heap profiling.
|
|
|
|
%package -n libtcmalloc4
|
|
Summary: Thread-caching malloc library
|
|
Group: System/Libraries
|
|
|
|
%description -n libtcmalloc4
|
|
This subpackage contains a library with optimized thread-caching
|
|
malloc().
|
|
|
|
%package devel
|
|
Summary: Performance tools for C++
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name} = %{version}
|
|
Requires: libprofiler0 = %{version}
|
|
Requires: libstdc++-devel
|
|
Requires: libtcmalloc4 = %{version}
|
|
Provides: google-perftools-devel
|
|
Obsoletes: google-perftools-devel
|
|
|
|
%description devel
|
|
The gperftools-devel package contains static and debug libraries and header
|
|
files for developing applications that use the gperftools package.
|
|
|
|
%package devel-static
|
|
Summary: Static libraries for performance tools for C++
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
%description devel-static
|
|
The gperftools-devel-static package contains static libraries for developing
|
|
applications that use the gperftools package.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
|
|
%build
|
|
autoreconf -fi
|
|
%ifnarch s390
|
|
VALGRIND_FL=`pkg-config --cflags valgrind`
|
|
%endif
|
|
export CPPFLAGS="$VALGRIND_FL"
|
|
export CXXFLAGS="%{optflags} -fno-strict-aliasing $VALGRIND_FL"
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing $VALGRIND_FL"
|
|
%configure \
|
|
--with-gnu-ld \
|
|
--with-pic \
|
|
--docdir=%{_defaultdocdir}/%{name}
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -n libprofiler0 -p /sbin/ldconfig
|
|
|
|
%postun -n libprofiler0 -p /sbin/ldconfig
|
|
|
|
%post -n libtcmalloc4 -p /sbin/ldconfig
|
|
|
|
%postun -n libtcmalloc4 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/pprof
|
|
%{_mandir}/man1/pprof.1.*
|
|
%{_docdir}/%{name}
|
|
|
|
%files -n libprofiler0
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libprofiler.so.0*
|
|
|
|
%files -n libtcmalloc4
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libtcmalloc.so.4*
|
|
%{_libdir}/libtcmalloc_debug.so.4*
|
|
%{_libdir}/libtcmalloc_minimal.so.4*
|
|
%{_libdir}/libtcmalloc_minimal_debug.so.4*
|
|
%{_libdir}/libtcmalloc_and_profiler.so.4*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/google
|
|
%{_includedir}/gperftools
|
|
%{_libdir}/libprofiler.so
|
|
%{_libdir}/libtcmalloc.so
|
|
%{_libdir}/libtcmalloc_debug.so
|
|
%{_libdir}/libtcmalloc_minimal.so
|
|
%{_libdir}/libtcmalloc_minimal_debug.so
|
|
%{_libdir}/libtcmalloc_and_profiler.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%files devel-static
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libprofiler.a
|
|
%{_libdir}/libtcmalloc.a
|
|
%{_libdir}/libtcmalloc_debug.a
|
|
%{_libdir}/libtcmalloc_minimal.a
|
|
%{_libdir}/libtcmalloc_minimal_debug.a
|
|
%{_libdir}/libtcmalloc_and_profiler.a
|
|
|
|
%changelog
|