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:
parent
9ceef68d03
commit
88168bf6d3
@ -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
|
Mon Sep 15 00:33:02 CEST 2014 - ro@suse.de
|
||||||
|
|
||||||
|
@ -19,23 +19,24 @@
|
|||||||
Name: gperftools
|
Name: gperftools
|
||||||
Version: 2.2
|
Version: 2.2
|
||||||
Release: 0
|
Release: 0
|
||||||
|
Summary: Performance Tools for C++
|
||||||
|
License: BSD-3-Clause
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
Url: http://code.google.com/p/gperftools/
|
Url: http://code.google.com/p/gperftools/
|
||||||
|
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Patch4: %{name}-fix_docdir.patch
|
Patch4: %{name}-fix_docdir.patch
|
||||||
Patch12: %{name}_fix_unassigned_malloc_in_unittest.patch
|
Patch12: %{name}_fix_unassigned_malloc_in_unittest.patch
|
||||||
Patch14: %{name}_gcc46.patch
|
Patch14: %{name}_gcc46.patch
|
||||||
#PATCH-FIX-UPSTREAM https://code.google.com/p/gperftools/issues/detail?id=268
|
#PATCH-FIX-UPSTREAM https://code.google.com/p/gperftools/issues/detail?id=268
|
||||||
Patch15: missing_includes.patch
|
Patch15: missing_includes.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf >= 2.59
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: libunwind-devel
|
BuildRequires: libunwind-devel
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Summary: Performance Tools for C++
|
|
||||||
License: BSD-3-Clause
|
|
||||||
Group: System/Libraries
|
|
||||||
Provides: google-perftools
|
Provides: google-perftools
|
||||||
Obsoletes: google-perftools
|
Obsoletes: google-perftools
|
||||||
ExcludeArch: s390 s390x
|
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
|
performance of C++ programs. This includes an optimized thread-caching
|
||||||
malloc() and cpu and heap profiling utilities.
|
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
|
%package devel
|
||||||
Summary: Performance tools for C++
|
Summary: Performance tools for C++
|
||||||
Group: System/Libraries
|
Group: Development/Libraries/C and C++
|
||||||
Requires: gperftools = %{version}
|
Requires: %name = %version
|
||||||
|
Requires: libprofiler0 = %version
|
||||||
Requires: libstdc++-devel
|
Requires: libstdc++-devel
|
||||||
|
Requires: libtcmalloc4 = %version
|
||||||
Provides: google-perftools-devel
|
Provides: google-perftools-devel
|
||||||
Obsoletes: google-perftools-devel
|
Obsoletes: google-perftools-devel
|
||||||
|
|
||||||
@ -70,8 +86,8 @@ files for developing applications that use the gperftools package.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
export CXXFLAGS="%optflags -fno-strict-aliasing"
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
||||||
%configure --disable-static --with-gnu-ld --with-pic
|
%configure --disable-static --with-gnu-ld --with-pic
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -79,22 +95,29 @@ make %{?_smp_mflags}
|
|||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -n libprofiler0 -p /sbin/ldconfig
|
||||||
|
%postun -n libprofiler0 -p /sbin/ldconfig
|
||||||
%postun -p /sbin/ldconfig
|
%post -n libtcmalloc4 -p /sbin/ldconfig
|
||||||
|
%postun -n libtcmalloc4 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_bindir/pprof
|
%_bindir/pprof
|
||||||
|
%_mandir/man1/pprof.1.gz
|
||||||
|
%_docdir/%name
|
||||||
|
|
||||||
|
%files -n libprofiler0
|
||||||
|
%defattr(-,root,root)
|
||||||
%_libdir/libprofiler.so.0*
|
%_libdir/libprofiler.so.0*
|
||||||
# %_libdir/libstacktrace.so.0* # libstacktrace.so got removed in 0.96
|
# %_libdir/libstacktrace.so.0* # libstacktrace.so got removed in 0.96
|
||||||
|
|
||||||
|
%files -n libtcmalloc4
|
||||||
|
%defattr(-,root,root)
|
||||||
%_libdir/libtcmalloc.so.4*
|
%_libdir/libtcmalloc.so.4*
|
||||||
%_libdir/libtcmalloc_debug.so.4*
|
%_libdir/libtcmalloc_debug.so.4*
|
||||||
%_libdir/libtcmalloc_minimal.so.4*
|
%_libdir/libtcmalloc_minimal.so.4*
|
||||||
%_libdir/libtcmalloc_minimal_debug.so.4*
|
%_libdir/libtcmalloc_minimal_debug.so.4*
|
||||||
%_libdir/libtcmalloc_and_profiler.so.4*
|
%_libdir/libtcmalloc_and_profiler.so.4*
|
||||||
%_mandir/man1/pprof.1.gz
|
|
||||||
%_docdir/%name
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user