Accepting request 252716 from home:jengelh:branches:devel:libraries:c_c++

- Implement shlib packaging guidelines: split libraries
- Improve on RPM group classification

OBS-URL: https://build.opensuse.org/request/show/252716
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gperftools?expand=0&rev=25
This commit is contained in:
Ismail Dönmez 2014-09-29 10:56:28 +00:00 committed by Git OBS Bridge
parent 9ceef68d03
commit 88168bf6d3
2 changed files with 42 additions and 13 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Sep 28 18:44:03 UTC 2014 - jengelh@inai.de
- Implement shlib packaging guidelines: split libraries
- Improve on RPM group classification
-------------------------------------------------------------------
Mon Sep 15 00:33:02 CEST 2014 - ro@suse.de

View File

@ -19,23 +19,24 @@
Name: gperftools
Version: 2.2
Release: 0
Summary: Performance Tools for C++
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://code.google.com/p/gperftools/
Source0: %{name}-%{version}.tar.gz
Patch4: %{name}-fix_docdir.patch
Patch12: %{name}_fix_unassigned_malloc_in_unittest.patch
Patch14: %{name}_gcc46.patch
#PATCH-FIX-UPSTREAM https://code.google.com/p/gperftools/issues/detail?id=268
Patch15: missing_includes.patch
BuildRequires: autoconf
BuildRequires: autoconf >= 2.59
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
ExcludeArch: s390 s390x
@ -45,13 +46,28 @@ 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: System/Libraries
Requires: gperftools = %{version}
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
@ -70,8 +86,8 @@ files for developing applications that use the gperftools package.
%build
autoreconf -fi
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
export CXXFLAGS="%optflags -fno-strict-aliasing"
export CFLAGS="%optflags -fno-strict-aliasing"
%configure --disable-static --with-gnu-ld --with-pic
make %{?_smp_mflags}
@ -79,22 +95,29 @@ make %{?_smp_mflags}
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%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.gz
%_docdir/%name
%files -n libprofiler0
%defattr(-,root,root)
%_libdir/libprofiler.so.0*
# %_libdir/libstacktrace.so.0* # libstacktrace.so got removed in 0.96
%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*
%_mandir/man1/pprof.1.gz
%_docdir/%name
%files devel
%defattr(-,root,root)