Compare commits

...

14 Commits
master ... el6

Author SHA1 Message Date
Tom Callaway 6a3d8eb855 no imaginary patches 2013-07-31 11:43:43 -04:00
Tom Callaway 991304bb39 2.1 2013-07-31 11:42:41 -04:00
Tom Callaway c855f1233b disable -fexceptions, use libunwind 2013-07-10 16:14:52 -04:00
Tom Callaway 349cb0b606 pass -pthread 2013-06-25 11:58:31 -04:00
Tom Callaway cae9c1599b no ppc64 for epel 2013-06-04 11:51:21 -04:00
Tom Callaway 3483c9083f \--enable-frame-pointers 2013-06-04 11:34:30 -04:00
Tom Callaway bcf7772359 hack in autoconf ver 2013-06-04 11:06:12 -04:00
Tom Callaway e13b06f421 hack in autoconf ver 2013-06-04 10:52:28 -04:00
Tom Callaway 2f88ac8ddc update to svn218, add metapackage, fix compiler flags 2013-06-04 10:43:26 -04:00
Tom Callaway 156194f4b2 fix broken requires on devel package 2012-02-16 12:05:28 -05:00
Tom Callaway 8d01765d11 frame-pointers 2012-02-14 15:38:35 -05:00
Tom Callaway 6d58adf5aa disable libunwind BR on EPEL 2012-02-14 15:27:45 -05:00
Tom Callaway 81455006fa drop unnecessary Requires on -libs in pprof subpackage 2012-02-14 15:15:05 -05:00
Tom Callaway abcc032e95 initial import 2012-02-14 15:01:24 -05:00
4 changed files with 10270 additions and 0 deletions

File diff suppressed because it is too large Load Diff

8016
gperftools-svn-r190.patch Normal file

File diff suppressed because it is too large Load Diff

281
gperftools.spec Normal file
View File

@ -0,0 +1,281 @@
# This package used to be called "google-perftools", but it was renamed on 2012-02-03.
Name: gperftools
Version: 2.1
Release: 1%{?dist}
License: BSD
Group: Development/Tools
Summary: Very fast malloc and performance analysis tools
URL: http://code.google.com/p/gperftools/
Source0: http://gperftools.googlecode.com/files/%{name}-%{version}.tar.gz
ExclusiveArch: %{ix86} x86_64 ppc %{arm}
BuildRequires: autoconf, automake, libtool
BuildRequires: libunwind-devel
Requires: gperftools-devel = %{version}-%{release}
Requires: pprof = %{version}-%{release}
%description
Perf Tools is a collection of performance analysis tools, including a
high-performance multi-threaded malloc() implementation that works
particularly well with threads and STL, a thread-friendly heap-checker,
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
Summary: Development libraries and headers for gperftools
Group: Development/Libraries
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Provides: google-perftools-devel = %{version}-%{release}
Obsoletes: google-perftools-devel < 2.0
%description devel
Libraries and headers for developing applications that use gperftools.
%package libs
Summary: Libraries provided by gperftools
Provides: google-perftools-libs = %{version}-%{release}
Obsoletes: google-perftools-libs < 2.0
%description libs
Libraries provided by gperftools, including libtcmalloc and libprofiler.
%package -n pprof
Summary: CPU and Heap Profiler tool
Requires: gv, graphviz
BuildArch: noarch
Provides: google-perftools = %{version}-%{release}
Obsoletes: google-perftools < 2.0
%description -n pprof
Pprof is a heap and CPU profiler tool, part of the gperftools suite.
%prep
%setup -q
# Fix end-of-line encoding
sed -i 's/\r//' README_windows.txt
# No need to have exec permissions on source code
chmod -x src/sampler.h src/sampler.cc
%if 0%{?rhel} == 6
# Hey, I bet this still works.
sed -i 's|2.68|2.63|g' configure.ac
autoreconf -i
%endif
%build
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
# Bad rpath!
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
# Can't build with smp_mflags
make
%install
make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-%{version}/ install
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
# Zero files
rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/NEWS
# Delete useless files
rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL
%check
# http://code.google.com/p/google-perftools/issues/detail?id=153
%ifnarch ppc
# Their test suite is almost always broken.
# LD_LIBRARY_PATH=./.libs make check
%endif
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files
%files -n pprof
%{_bindir}/pprof
%{_mandir}/man1/*
%files devel
%{_docdir}/%{name}-%{version}/
%{_includedir}/google/
%{_includedir}/gperftools/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files libs
%{_libdir}/*.so.*
%changelog
* Wed Jul 31 2013 Tom Callaway <spot@fedoraproject.org> - 2.1-1
- update to 2.1
* Wed Jul 10 2013 Tom Callaway <spot@fedoraproject.org> - 2.0-11.3
- use libunwind
- disable -fexceptions, as that breaks things on el6
* Tue Jun 25 2013 Tom Callaway <spot@fedoraproject.org> - 2.0-11.2
- pass -pthread
* Tue Jun 4 2013 Tom Callaway <spot@fedoraproject.org> - 2.0-11.1
- 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
- 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
- pprof doesn't actually need gperftools-libs
* Tue Feb 14 2012 Tom Callaway <spot@fedoraproject.org> - 2.0-2
- rework package so that pprof is a noarch subpackage, while still
enforcing the ExclusiveArch for the libs
* Tue Feb 14 2012 Tom Callaway <spot@fedoraproject.org> - 2.0-1
- rename to gperftools
- update to 2.0
* Wed Jan 4 2012 Tom Callaway <spot@fedoraproject.org> - 1.9.1-1
- update to 1.9.1
* Mon Oct 24 2011 Tom Callaway <spot@fedoraproject.org> - 1.8.3-3
- split libraries out into subpackage to minimize dependencies
* Wed Sep 21 2011 Remi Collet <remi@fedoraproject.org> - 1.8.3-2
- rebuild for new libunwind
* Tue Aug 30 2011 Tom Callaway <spot@fedoraproject.org> - 1.8.3-1
- update to 1.8.3
* Mon Aug 22 2011 Tom Callaway <spot@fedoraproject.org> - 1.8.2-1
- update to 1.8.2
* Thu Jul 28 2011 Tom Callaway <spot@fedoraproject.org> - 1.8.1-1
- update to 1.8.1
* Mon Jul 18 2011 Tom Callaway <spot@fedoraproject.org> - 1.8-1
- update to 1.8
* Wed Jun 29 2011 Tom Callaway <spot@fedoraproject.org> - 1.7-4
- fix tcmalloc compile against current glibc, fix derived from:
http://src.chromium.org/viewvc/chrome?view=rev&revision=89800
* Thu May 12 2011 Tom Callaway <spot@fedoraproject.org> - 1.7-3
- add Requires: graphviz, gv for pprof
* Fri Mar 11 2011 Dan Horák <dan[at]danny.cz> - 1.7-2
- switch to ExclusiveArch
* Fri Feb 18 2011 Tom Callaway <spot@fedoraproject.org> - 1.7-1
- update to 1.7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Dec 2 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6-2
- fix pprof to work properly with jemalloc (bz 657118)
* Fri Aug 6 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.6-1
- update to 1.6
* Wed Jan 20 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.5-1
- update to 1.5
- disable broken test suite
* Sat Sep 12 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.4-1
- update to 1.4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Jul 2 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-2
- disable tests for ppc, upstream ticket #153
* Thu Jul 2 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3-1
- update to 1.3
* Wed May 20 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.2-1
- update to 1.2
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Mon Sep 22 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.99.1-1
- update to 0.99.1
- previous patches in 0.98-1 were taken upstream
* Mon Aug 25 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.98-1
- update to 0.98
- fix linuxthreads.c compile (upstream issue 74)
- fix ppc compile (upstream issue 75)
- enable ppc
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.95-4
- Autorebuild for GCC 4.3
* Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.95-3
- re-disable ppc/ppc64
* Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.95-2
- ppc/ppc64 doesn't have libunwind
* Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.95-1
- 0.95 (all patches taken upstream)
- enable ppc support
- workaround broken ptrace header (no typedef for u32)
* Fri Jan 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.94.1-1
- bump to 0.94.1
- fix for gcc4.3
- fix unittest link issue
* Thu Aug 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.93-1
- upstream merged my patch!
- rebuild for BuildID
* Wed Aug 1 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.92-1
- bump to 0.92
* Thu May 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-3.1
- excludearch ppc64
* Sun Apr 29 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-3
- The tests work fine for me locally, but some of them fail inside mock.
* Sun Apr 29 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-2
- no support for ppc yet
* Mon Apr 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-1
- alright, lets see if this works now.
* Wed Oct 13 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.3-2
- change group to Development/Tools
* Mon Oct 10 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.3-1
- initial package for Fedora Extras

View File

@ -0,0 +1 @@
5e5a981caf9baa9b4afe90a82dcf9882 gperftools-2.1.tar.gz