update to svn218, add metapackage, fix compiler flags
This commit is contained in:
parent
156194f4b2
commit
2f88ac8ddc
1972
gperftools-2.0-svn190-to-svn218.patch
Normal file
1972
gperftools-2.0-svn190-to-svn218.patch
Normal file
File diff suppressed because it is too large
Load Diff
8016
gperftools-svn-r190.patch
Normal file
8016
gperftools-svn-r190.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,17 +2,22 @@
|
|||||||
|
|
||||||
Name: gperftools
|
Name: gperftools
|
||||||
Version: 2.0
|
Version: 2.0
|
||||||
Release: 3%{?dist}.2
|
Release: 11%{?dist}.1
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Summary: Very fast malloc and performance analysis tools
|
Summary: Very fast malloc and performance analysis tools
|
||||||
URL: http://code.google.com/p/gperftools/
|
URL: http://code.google.com/p/gperftools/
|
||||||
Source0: http://gperftools.googlecode.com/files/%{name}-%{version}.tar.gz
|
Source0: http://gperftools.googlecode.com/files/%{name}-%{version}.tar.gz
|
||||||
# ppc64 still broken, bz 238390
|
# Update to latest svn, since google forgets how to make releases
|
||||||
ExclusiveArch: %{ix86} x86_64 ppc
|
Patch0: gperftools-svn-r190.patch
|
||||||
|
Patch1: gperftools-2.0-svn190-to-svn218.patch
|
||||||
|
ExclusiveArch: %{ix86} x86_64 ppc ppc64 %{arm}
|
||||||
%ifnarch ppc ppc64
|
%ifnarch ppc ppc64
|
||||||
# BuildRequires: libunwind-devel
|
# BuildRequires: libunwind-devel
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: autoconf, automake, libtool
|
||||||
|
Requires: gperftools-devel = %{version}-%{release}
|
||||||
|
Requires: pprof = %{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Perf Tools is a collection of performance analysis tools, including a
|
Perf Tools is a collection of performance analysis tools, including a
|
||||||
@ -20,6 +25,9 @@ high-performance multi-threaded malloc() implementation that works
|
|||||||
particularly well with threads and STL, a thread-friendly heap-checker,
|
particularly well with threads and STL, a thread-friendly heap-checker,
|
||||||
a heap profiler, and a cpu-profiler.
|
a heap profiler, and a cpu-profiler.
|
||||||
|
|
||||||
|
This is a metapackage which pulls in all of the gperftools (and pprof)
|
||||||
|
binaries, libraries, and development headers, so that you can use them.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development libraries and headers for gperftools
|
Summary: Development libraries and headers for gperftools
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -50,6 +58,8 @@ Pprof is a heap and CPU profiler tool, part of the gperftools suite.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1 -b .svn-r190
|
||||||
|
%patch1 -p1 -b .svn-r218
|
||||||
|
|
||||||
# Fix end-of-line encoding
|
# Fix end-of-line encoding
|
||||||
sed -i 's/\r//' README_windows.txt
|
sed -i 's/\r//' README_windows.txt
|
||||||
@ -57,9 +67,11 @@ sed -i 's/\r//' README_windows.txt
|
|||||||
# No need to have exec permissions on source code
|
# No need to have exec permissions on source code
|
||||||
chmod -x src/sampler.h src/sampler.cc
|
chmod -x src/sampler.h src/sampler.cc
|
||||||
|
|
||||||
|
autoreconf -i
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CXXFLAGS=`echo $RPM_OPT_FLAGS -DTCMALLOC_LARGE_PAGES -fno-omit-frame-pointer| sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g'`
|
CXXFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -DTCMALLOC_LARGE_PAGES| sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g'`
|
||||||
%configure --disable-static --enable-frame-pointers
|
%configure --disable-static
|
||||||
|
|
||||||
# Bad rpath!
|
# Bad rpath!
|
||||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
@ -80,13 +92,15 @@ rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL
|
|||||||
%check
|
%check
|
||||||
# http://code.google.com/p/google-perftools/issues/detail?id=153
|
# http://code.google.com/p/google-perftools/issues/detail?id=153
|
||||||
%ifnarch ppc
|
%ifnarch ppc
|
||||||
# Their test suite is junk. Disabling.
|
# Their test suite is almost always broken.
|
||||||
# LD_LIBRARY_PATH=./.libs make check
|
# LD_LIBRARY_PATH=./.libs make check
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
|
||||||
%files -n pprof
|
%files -n pprof
|
||||||
%{_bindir}/pprof
|
%{_bindir}/pprof
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
@ -102,11 +116,31 @@ rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL
|
|||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Feb 16 2012 Tom Callaway <spot@fedoraproject.org> - 2.0-3.2
|
* Tue Jun 4 2013 Tom Callaway <spot@fedoraproject.org> - 2.0-11.1
|
||||||
- fix broken Requires on -devel package
|
- pass -fno-strict-aliasing
|
||||||
|
- create "gperftools" metapackage.
|
||||||
|
- update to svn r218 (cleanups, some ARM fixes)
|
||||||
|
|
||||||
* Tue Feb 14 2012 Tom Callaway <spot@fedoraproject.org> - 2.0-3.1
|
* Thu Mar 14 2013 Dan Horák <dan[at]danny.cz> - 2.0-10
|
||||||
- disable libunwind-devel BR on EPEL
|
- build on ppc64 as well
|
||||||
|
|
||||||
|
* Fri Mar 1 2013 Tom Callaway <spot@fedoraproject.org> - 2.0-9
|
||||||
|
- update to svn r190 (because google can't make releases)
|
||||||
|
|
||||||
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Aug 3 2012 Tom Callaway <spot@fedoraproject.org> - 2.0-7
|
||||||
|
- fix compile with glibc 2.16
|
||||||
|
|
||||||
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Feb 20 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 2.0-5
|
||||||
|
- Enable ARM as a supported arch
|
||||||
|
|
||||||
|
* Thu Feb 16 2012 Tom Callaway <spot@fedoraproject.org> - 2.0-4
|
||||||
|
- fix bug in -devel Requires
|
||||||
|
|
||||||
* Tue Feb 14 2012 Tom Callaway <spot@fedoraproject.org> - 2.0-3
|
* Tue Feb 14 2012 Tom Callaway <spot@fedoraproject.org> - 2.0-3
|
||||||
- pprof doesn't actually need gperftools-libs
|
- pprof doesn't actually need gperftools-libs
|
||||||
|
Loading…
Reference in New Issue
Block a user