2012-02-07 19:33:51 +01:00
|
|
|
#
|
|
|
|
# spec file for package gperftools
|
|
|
|
#
|
2014-06-16 14:18:26 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-02-07 19:33:51 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2012-07-22 21:24:56 +02:00
|
|
|
|
2012-02-07 19:33:51 +01:00
|
|
|
Name: gperftools
|
2014-05-22 19:11:14 +02:00
|
|
|
Version: 2.2
|
2012-02-07 19:33:51 +01:00
|
|
|
Release: 0
|
2014-09-29 12:56:28 +02:00
|
|
|
Summary: Performance Tools for C++
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-02-07 19:33:51 +01:00
|
|
|
Url: http://code.google.com/p/gperftools/
|
2014-09-29 12:56:28 +02:00
|
|
|
|
2014-05-22 19:11:14 +02:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2012-02-07 19:33:51 +01:00
|
|
|
Patch4: %{name}-fix_docdir.patch
|
2012-07-22 21:24:56 +02:00
|
|
|
Patch12: %{name}_fix_unassigned_malloc_in_unittest.patch
|
2012-02-07 19:33:51 +01:00
|
|
|
Patch14: %{name}_gcc46.patch
|
2014-06-16 14:18:26 +02:00
|
|
|
#PATCH-FIX-UPSTREAM https://code.google.com/p/gperftools/issues/detail?id=268
|
|
|
|
Patch15: missing_includes.patch
|
2014-09-29 12:56:28 +02:00
|
|
|
BuildRequires: autoconf >= 2.59
|
2012-07-22 21:24:56 +02:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libunwind-devel
|
|
|
|
BuildRequires: pkg-config
|
2012-02-07 19:33:51 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-07-22 21:24:56 +02:00
|
|
|
Provides: google-perftools
|
|
|
|
Obsoletes: google-perftools
|
2014-09-15 05:58:11 +02:00
|
|
|
ExcludeArch: s390 s390x
|
2012-02-07 19:33:51 +01:00
|
|
|
|
|
|
|
%description
|
2012-02-16 13:22:22 +01:00
|
|
|
The gperftools package contains some utilities to improve and analyze the
|
2012-02-07 19:33:51 +01:00
|
|
|
performance of C++ programs. This includes an optimized thread-caching
|
|
|
|
malloc() and cpu and heap profiling utilities.
|
|
|
|
|
2014-09-29 12:56:28 +02:00
|
|
|
%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
|
2012-02-07 19:33:51 +01:00
|
|
|
|
2014-09-29 12:56:28 +02:00
|
|
|
%description -n libtcmalloc4
|
|
|
|
This subpackage contains a library with optimized thread-caching
|
|
|
|
malloc().
|
2012-02-07 19:33:51 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Performance tools for C++
|
2014-09-29 12:56:28 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %name = %version
|
|
|
|
Requires: libprofiler0 = %version
|
2012-07-22 21:24:56 +02:00
|
|
|
Requires: libstdc++-devel
|
2014-09-29 12:56:28 +02:00
|
|
|
Requires: libtcmalloc4 = %version
|
2012-07-22 21:24:56 +02:00
|
|
|
Provides: google-perftools-devel
|
|
|
|
Obsoletes: google-perftools-devel
|
2012-02-07 19:33:51 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
%patch12 -p1
|
|
|
|
%patch14 -p1
|
2014-06-16 14:18:26 +02:00
|
|
|
%patch15 -p1
|
2012-02-07 19:33:51 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
2014-09-29 12:56:28 +02:00
|
|
|
export CXXFLAGS="%optflags -fno-strict-aliasing"
|
|
|
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
2012-02-18 12:12:04 +01:00
|
|
|
%configure --disable-static --with-gnu-ld --with-pic
|
2012-02-17 09:07:18 +01:00
|
|
|
make %{?_smp_mflags}
|
2012-02-07 19:33:51 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
|
|
|
|
2014-09-29 12:56:28 +02:00
|
|
|
%post -n libprofiler0 -p /sbin/ldconfig
|
|
|
|
%postun -n libprofiler0 -p /sbin/ldconfig
|
|
|
|
%post -n libtcmalloc4 -p /sbin/ldconfig
|
|
|
|
%postun -n libtcmalloc4 -p /sbin/ldconfig
|
2012-02-07 19:33:51 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-02-17 09:07:18 +01:00
|
|
|
%_bindir/pprof
|
2014-09-29 12:56:28 +02:00
|
|
|
%_mandir/man1/pprof.1.gz
|
|
|
|
%_docdir/%name
|
|
|
|
|
|
|
|
%files -n libprofiler0
|
|
|
|
%defattr(-,root,root)
|
2012-02-07 19:33:51 +01:00
|
|
|
%_libdir/libprofiler.so.0*
|
|
|
|
# %_libdir/libstacktrace.so.0* # libstacktrace.so got removed in 0.96
|
2014-09-29 12:56:28 +02:00
|
|
|
|
|
|
|
%files -n libtcmalloc4
|
|
|
|
%defattr(-,root,root)
|
2012-02-07 19:33:51 +01:00
|
|
|
%_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)
|
2012-02-17 09:07:18 +01:00
|
|
|
%_includedir/google
|
|
|
|
%_includedir/gperftools
|
2012-02-07 19:33:51 +01:00
|
|
|
%_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
|
2012-02-17 09:07:18 +01:00
|
|
|
%_libdir/pkgconfig/*.pc
|
2012-02-07 19:33:51 +01:00
|
|
|
|
|
|
|
%changelog
|