google-perftools-vl.spec 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Summary: Very fast malloc and performance analysis tools
  2. Summary(ja): 超高速な malloc と性能分析ツール
  3. Name: google-perftools
  4. Version: 1.4
  5. Release: 1%{?_dist_release}
  6. License: BSD
  7. Group: Development/Tools
  8. URL: http://code.google.com/p/google-perftools/
  9. Source0: http://google-perftools.googlecode.com/files/google-perftools-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  11. # Still broken, RH bz 238390
  12. ExcludeArch: ppc64
  13. %ifnarch ppc ppc64
  14. BuildRequires: libunwind-devel
  15. %endif
  16. %description
  17. Perf Tools is a collection of performance analysis tools, including a
  18. high-performance multi-threaded malloc() implementation that works
  19. particularly well with threads and STL, a thread-friendly heap-checker,
  20. a heap profiler, and a cpu-profiler.
  21. %package devel
  22. Summary: Development libraries and headers for google-perftools
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. %description devel
  26. Libraries and headers for developing applications that use google-perftools.
  27. %prep
  28. %setup -q
  29. %build
  30. %configure --disable-static
  31. # Bad rpath!
  32. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  33. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  34. # Can't build with smp_mflags
  35. make
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. make DESTDIR=$RPM_BUILD_ROOT docdir=%{_docdir}/%{name}-%{version}/ install
  39. find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
  40. # Zero files
  41. rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/NEWS
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %check
  45. # The libraries aren't installed on the system yet. :P
  46. # The tests work fine for me locally, but some of them fail inside mock.
  47. # LD_LIBRARY_PATH=./.libs make check
  48. %post -p /sbin/ldconfig
  49. %postun -p /sbin/ldconfig
  50. %files
  51. %defattr(-,root,root,-)
  52. %{_bindir}/pprof
  53. %{_mandir}/man1/*
  54. %{_docdir}/%{name}-%{version}/
  55. %{_libdir}/*.so.*
  56. %files devel
  57. %defattr(-,root,root,-)
  58. %{_includedir}/google
  59. %{_libdir}/*.so
  60. %changelog
  61. * Wed Oct 14 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4-1
  62. - new upstream release
  63. * Tue Jun 19 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.91-0vl1
  64. - initial build for Vine Linux
  65. * Sun Apr 29 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-3
  66. - The tests work fine for me locally, but some of them fail inside mock.
  67. * Sun Apr 29 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-2
  68. - no support for ppc yet
  69. * Mon Apr 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-1
  70. - alright, lets see if this works now.
  71. * Wed Oct 13 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.3-2
  72. - change group to Development/Tools
  73. * Mon Oct 10 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.3-1
  74. - initial package for Fedora Extras