gperftools/gperftools.spec
Marcus Meissner 8c0d9fd470 Accepting request 184993 from home:ganglia:latest_perftools
- gperftools 2.1, released 30 July 2013.
  * fixes for building on newer platforms. Notably, there's now initial
    support for x32 ABI (--enable-minimal only at this time))
  * Some fixes for debug allocation on POWER/Linux 
  * new getNumericProperty stats for cache sizes
  * added HEAP_PROFILER_TIME_INTERVAL variable (see documentation)
  * added environment variable to control heap size (TCMALLOC_HEAP_LIMIT_MB)
  * added environment variable to disable release of memory back to OS
    (TCMALLOC_DISABLE_MEMORY_RELEASE)
  * cpu profiler can now be switched on and off by sending it a signal
    (specified in CPUPROFILESIGNAL)
  * (issue 491) fixed race-ful spinlock wake-ups
  * (issue 496) added some support for fork-ing of process that is using
    tcmalloc
  * (issue 368) improved memory fragmentation when large chunks of
    memory are allocated/freed

OBS-URL: https://build.opensuse.org/request/show/184993
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gperftools?expand=0&rev=15
2013-07-31 10:21:11 +00:00

116 lines
3.3 KiB
RPMSpec

#
# spec file for package gperftools
#
# Copyright (c) 2012 SUSE LINUX Products 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 http://bugs.opensuse.org/
#
Name: gperftools
Version: 2.1
Release: 0
Url: http://code.google.com/p/gperftools/
Source0: %{name}-%{version}.tar.bz2
Patch4: %{name}-fix_docdir.patch
# Patch11: %{name}_fix_multiple_install_headers.patch
Patch12: %{name}_fix_unassigned_malloc_in_unittest.patch
Patch14: %{name}_gcc46.patch
#Patch15: %{name}-glibc216.patch
#Patch16: spinlock-rand.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: libunwind-devel
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Performance Tools for C++
License: BSD-3-Clause
Group: System/Libraries
Provides: google-perftools
Obsoletes: google-perftools
%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 devel
Summary: Performance tools for C++
Group: System/Libraries
Requires: gperftools = %{version}
Requires: libstdc++-devel
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.
%prep
%setup -q
%patch4 -p1
#patch11 -p1
%patch12 -p1
%patch14 -p1
#patch15 -p1
#patch16 -p1
%build
autoreconf -fi
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%configure --disable-static --with-gnu-ld --with-pic
make %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%_bindir/pprof
%_libdir/libprofiler.so.0*
# %_libdir/libstacktrace.so.0* # libstacktrace.so got removed in 0.96
%_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*
%_mandir/man1/pprof.1.gz
%_docdir/%name
%files devel
%defattr(-,root,root)
%_includedir/google
%_includedir/gperftools
%_libdir/libprofiler.so
# %_libdir/libstacktrace.*a # libstacktrace.so got removed in 0.96
# %_libdir/libstacktrace.so # libstacktrace.so got removed in 0.96
%_libdir/libtcmalloc.so
%_libdir/libtcmalloc_debug.so
%_libdir/libtcmalloc_minimal.so
%_libdir/libtcmalloc_minimal_debug.so
%_libdir/libtcmalloc_and_profiler.so
%_libdir/pkgconfig/*.pc
%changelog