Name: perftools Version: 0.98 Release: 1%{?dist} Summary: Tools for developing C++ apps especially multi-threaded or using templates Group: Development/Tools License: BSD URL: http://code.google.com/p/google-%{name}/ Source0: http://google-%{name}.googlecode.com/files/google-%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description These tools are for use by developers so that they can create more robust applications. Especially of use to those developing multi-threaded applications in C++ with templates. Includes TCMalloc, heap-checker, heap-profiler and cpu-profiler. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: automake Requires: %{name} = %{version}-%{release} %description devel This package contains development files for %{name}. %prep %setup -q -n google-%{name}-%{version} %build %configure --enable-static=no # Omit unused direct shared library dependencies. sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_includedir}/%{name} mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name} mv $RPM_BUILD_ROOT%{_docdir}/google-%{name}-%{version}/* $RPM_BUILD_ROOT%{_docdir}/%{name}/ mv $RPM_BUILD_ROOT%{_includedir}/google/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/ find $RPM_BUILD_ROOT -type f -name "*.la" -delete find $RPM_BUILD_ROOT -type f -name "*.a" -delete rm $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc COPYING %doc README %doc AUTHORS %dir %{_docdir}/%{name} %{_docdir}/%{name}/* %{_bindir}/pprof %{_libdir}/libtcmalloc.so.* %{_libdir}/libprofiler.so.* %{_libdir}/libtcmalloc_minimal.so.* %files devel %defattr(-,root,root,-) %{_libdir}/libtcmalloc.so %{_libdir}/libprofiler.so %{_libdir}/libtcmalloc_minimal.so %dir %{_includedir}/%{name} %{_includedir}/%{name}/*.h %{_mandir}/man1/pprof.1.gz %changelog * Thu Aug 07 2008 Rakesh Pandit 0.98-1 - Initial build