Compare commits

...

2 Commits
master ... f19

Author SHA1 Message Date
Tom Callaway cabf9ead3a update to 2.1 2013-07-31 11:21:16 -04:00
Tom Callaway 770513531e add metapackage, update to svn218 2013-06-04 12:00:59 -04:00
3 changed files with 2000 additions and 8 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +1,20 @@
# This package used to be called "google-perftools", but it was renamed on 2012-02-03. # This package used to be called "google-perftools", but it was renamed on 2012-02-03.
Name: gperftools Name: gperftools
Version: 2.0 Version: 2.1
Release: 10%{?dist} Release: 1%{?dist}
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
# Update to latest svn, since google forgets how to make releases
Patch0: gperftools-svn-r190.patch
ExclusiveArch: %{ix86} x86_64 ppc ppc64 %{arm} 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
@ -21,6 +22,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
@ -51,7 +55,6 @@ Pprof is a heap and CPU profiler tool, part of the gperftools suite.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .svn-r190
# Fix end-of-line encoding # Fix end-of-line encoding
sed -i 's/\r//' README_windows.txt sed -i 's/\r//' README_windows.txt
@ -59,8 +62,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| sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g'` CFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing -Wno-unused-local-typedefs -DTCMALLOC_LARGE_PAGES | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' | sed -e 's|-fexceptions||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' | sed -e 's|-fexceptions||g'`
%configure --disable-static %configure --disable-static
# Bad rpath! # Bad rpath!
@ -82,13 +88,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/*
@ -104,6 +112,18 @@ rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL
%{_libdir}/*.so.* %{_libdir}/*.so.*
%changelog %changelog
* Wed Jul 31 2013 Tom Callaway <spot@fedoraproject.org> - 2.1-1
- update to 2.1 (fixes arm)
- disable -fexceptions, as that breaks things on el6, possibly arm
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 2.0-12
- Perl 5.18 rebuild
* Tue Jun 4 2013 Tom Callaway <spot@fedoraproject.org> - 2.0-11
- pass -fno-strict-aliasing
- create "gperftools" metapackage.
- update to svn r218 (cleanups, some ARM fixes)
* Thu Mar 14 2013 Dan Horák <dan[at]danny.cz> - 2.0-10 * Thu Mar 14 2013 Dan Horák <dan[at]danny.cz> - 2.0-10
- build on ppc64 as well - build on ppc64 as well

View File

@ -1 +1 @@
13f6e8961bc6a26749783137995786b6 gperftools-2.0.tar.gz 5e5a981caf9baa9b4afe90a82dcf9882 gperftools-2.1.tar.gz