1 | Name: gperftools |
---|
2 | Version: 2.0 |
---|
3 | Release: 3%{?_dist_release} |
---|
4 | License: BSD |
---|
5 | Group: Development/Tools |
---|
6 | Summary: Very fast malloc and performance analysis tools |
---|
7 | Summary(ja): 超高速な malloc と性能分析ツール |
---|
8 | URL: http://code.google.com/p/gperftools/ |
---|
9 | Source0: http://gperftools.googlecode.com/files/%{name}-%{version}.tar.gz |
---|
10 | # http://code.google.com/p/gperftools/issues/detail?id=444 |
---|
11 | Patch0: gperftools-2.0-glibc216.patch |
---|
12 | # ppc64 still broken, bz 238390 |
---|
13 | ExclusiveArch: %{ix86} x86_64 ppc %{arm} |
---|
14 | %ifnarch ppc ppc64 |
---|
15 | BuildRequires: libunwind-devel >= 1.0.1 |
---|
16 | %endif |
---|
17 | |
---|
18 | %description |
---|
19 | Perf Tools is a collection of performance analysis tools, including a |
---|
20 | high-performance multi-threaded malloc() implementation that works |
---|
21 | particularly well with threads and STL, a thread-friendly heap-checker, |
---|
22 | a heap profiler, and a cpu-profiler. |
---|
23 | |
---|
24 | %package devel |
---|
25 | Summary: Development libraries and headers for gperftools |
---|
26 | Summary(ja): gperftools の開発用ライブラリとヘッダ |
---|
27 | Group: Development/Libraries |
---|
28 | Requires: %{name}-libs = %{version}-%{release} |
---|
29 | Provides: google-perftools-devel = %{version}-%{release} |
---|
30 | Obsoletes: google-perftools-devel < 2.0 |
---|
31 | |
---|
32 | %description devel |
---|
33 | Libraries and headers for developing applications that use gperftools. |
---|
34 | |
---|
35 | %package libs |
---|
36 | Summary: Libraries provided by gperftools |
---|
37 | Summary(ja): gperftools ライブラリ |
---|
38 | Provides: google-perftools = %{version}-%{release} |
---|
39 | Obsoletes: google-perftools < 2.0 |
---|
40 | |
---|
41 | %description libs |
---|
42 | Libraries provided by gperftools, including libtcmalloc and libprofiler. |
---|
43 | |
---|
44 | %package -n pprof |
---|
45 | Summary: CPU and Heap Profiler tool |
---|
46 | Summary(ja): CPU および Heap プロファイルツール |
---|
47 | Requires: gv, graphviz |
---|
48 | BuildArch: noarch |
---|
49 | Provides: google-perftools = %{version}-%{release} |
---|
50 | Obsoletes: google-perftools < 2.0 |
---|
51 | |
---|
52 | %description -n pprof |
---|
53 | Pprof is a heap and CPU profiler tool, part of the gperftools suite. |
---|
54 | |
---|
55 | %prep |
---|
56 | %setup -q |
---|
57 | %patch0 -p1 -b .glibc216 |
---|
58 | |
---|
59 | # Fix end-of-line encoding |
---|
60 | sed -i 's/\r//' README_windows.txt |
---|
61 | |
---|
62 | # No need to have exec permissions on source code |
---|
63 | chmod -x src/sampler.h src/sampler.cc |
---|
64 | |
---|
65 | %build |
---|
66 | CXXFLAGS=`echo $RPM_OPT_FLAGS -DTCMALLOC_LARGE_PAGES| sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g'` |
---|
67 | %configure --disable-static |
---|
68 | |
---|
69 | # Bad rpath! |
---|
70 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
71 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
72 | # Can't build with smp_mflags |
---|
73 | make |
---|
74 | |
---|
75 | %install |
---|
76 | make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-%{version}/ install |
---|
77 | find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' |
---|
78 | |
---|
79 | # Zero files |
---|
80 | rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/NEWS |
---|
81 | |
---|
82 | # Delete useless files |
---|
83 | rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL |
---|
84 | |
---|
85 | %check |
---|
86 | # http://code.google.com/p/google-perftools/issues/detail?id=153 |
---|
87 | %ifnarch ppc |
---|
88 | # Their test suite is junk. Disabling. |
---|
89 | # LD_LIBRARY_PATH=./.libs make check |
---|
90 | %endif |
---|
91 | |
---|
92 | %post libs -p /sbin/ldconfig |
---|
93 | %postun libs -p /sbin/ldconfig |
---|
94 | |
---|
95 | %files -n pprof |
---|
96 | %{_bindir}/pprof |
---|
97 | %{_mandir}/man1/* |
---|
98 | |
---|
99 | %files devel |
---|
100 | %{_docdir}/%{name}-%{version}/ |
---|
101 | %{_includedir}/google/ |
---|
102 | %{_includedir}/gperftools/ |
---|
103 | %{_libdir}/*.so |
---|
104 | %{_libdir}/pkgconfig/*.pc |
---|
105 | |
---|
106 | %files libs |
---|
107 | %{_libdir}/*.so.* |
---|
108 | |
---|
109 | %changelog |
---|
110 | * Sun Jul 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0-3 |
---|
111 | - rebuild with gcc-5.4.0 |
---|
112 | |
---|
113 | * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-2 |
---|
114 | - rebuild with libunwind-1.0.1 |
---|
115 | |
---|
116 | * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-1 |
---|
117 | - update to 2.0, rename to gperftools |
---|
118 | |
---|
119 | * Wed Oct 14 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4-1 |
---|
120 | - new upstream release |
---|
121 | |
---|
122 | * Tue Jun 19 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.91-0vl1 |
---|
123 | - initial build for Vine Linux |
---|
124 | |
---|
125 | * Sun Apr 29 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-3 |
---|
126 | - The tests work fine for me locally, but some of them fail inside mock. |
---|
127 | |
---|
128 | * Sun Apr 29 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-2 |
---|
129 | - no support for ppc yet |
---|
130 | |
---|
131 | * Mon Apr 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.91-1 |
---|
132 | - alright, lets see if this works now. |
---|
133 | |
---|
134 | * Wed Oct 13 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.3-2 |
---|
135 | - change group to Development/Tools |
---|
136 | |
---|
137 | * Mon Oct 10 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.3-1 |
---|
138 | - initial package for Fedora Extras |
---|