[google-perftools/f15] split out libraries

Tom Callaway spot at fedoraproject.org
Mon Oct 24 19:33:04 UTC 2011


commit 2f6d5fecf3396aedbce4ddb1d781bd74c006c2fb
Author: Tom "spot" Callaway <tcallawa at redhat.com>
Date:   Mon Oct 24 15:33:00 2011 -0400

    split out libraries

 google-perftools.spec |   51 ++++++++++++++++++++++++++++++++----------------
 sources               |    2 +-
 2 files changed, 35 insertions(+), 18 deletions(-)
---
diff --git a/google-perftools.spec b/google-perftools.spec
index b796fa7..8cfe22b 100644
--- a/google-perftools.spec
+++ b/google-perftools.spec
@@ -1,20 +1,18 @@
 Name:		google-perftools
-Version:	1.7
-Release:	3%{?dist}
+Version:	1.8.3
+Release:	2%{?dist}
 License:	BSD
 Group:		Development/Tools
 Summary:	Very fast malloc and performance analysis tools
 URL:		http://code.google.com/p/google-perftools/
 Source0:	http://google-perftools.googlecode.com/files/google-perftools-%{version}.tar.gz
-# http://code.google.com/p/google-perftools/issues/detail?id=309
-Patch0:		google-perftools-1.7-broken-comment-style.patch
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # ppc64 still broken, bz 238390
 ExclusiveArch:	%{ix86} x86_64 ppc
 %ifnarch ppc ppc64
 BuildRequires:	libunwind-devel
 %endif
 Requires:	gv, graphviz
+Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
 
 %description
 Perf Tools is a collection of performance analysis tools, including a 
@@ -25,14 +23,19 @@ a heap profiler, and a cpu-profiler.
 %package devel
 Summary:	Development libraries and headers for google-perftools
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}%{?_isa} = %{version}-%{release}
 
 %description devel
 Libraries and headers for developing applications that use google-perftools.
 
+%package libs
+Summary:	Libraries provided by google-perftools
+
+%description libs
+Libraries provided by google-perftools, including libtcmalloc and libprofiler.
+
 %prep
 %setup -q
-%patch0 -p1 -b .commentfix
 
 %build
 CXXFLAGS=`echo $RPM_OPT_FLAGS -DTCMALLOC_LARGE_PAGES| sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g'`
@@ -45,16 +48,12 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 make 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT docdir=%{_docdir}/%{name}-%{version}/ install
 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
 
 # Zero files
 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/NEWS
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %check
 # http://code.google.com/p/google-perftools/issues/detail?id=153
 %ifnarch ppc
@@ -62,24 +61,42 @@ rm -rf $RPM_BUILD_ROOT
 # LD_LIBRARY_PATH=./.libs make check
 %endif
 
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root,-)
 %{_bindir}/pprof
 %{_mandir}/man1/*
 %{_docdir}/%{name}-%{version}/
-%{_libdir}/*.so.*
 
 %files devel
-%defattr(-,root,root,-)
 %{_includedir}/google
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*.pc
 
+%files libs
+%{_libdir}/*.so.*
+
 %changelog
+* Mon Oct 24 2011 Tom Callaway <spot at fedoraproject.org> - 1.8.3-2
+- split libraries out into subpackage to minimize dependencies
+
+* Tue Aug 30 2011 Tom Callaway <spot at fedoraproject.org> - 1.8.3-1
+- update to 1.8.3
+
+* Mon Aug 22 2011 Tom Callaway <spot at fedoraproject.org> - 1.8.2-1
+- update to 1.8.2
+
+* Thu Jul 28 2011 Tom Callaway <spot at fedoraproject.org> - 1.8.1-1
+- update to 1.8.1
+
+* Mon Jul 18 2011 Tom Callaway <spot at fedoraproject.org> - 1.8-1
+- update to 1.8
+
+* Wed Jun 29 2011 Tom Callaway <spot at 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 at fedoraproject.org> - 1.7-3
 - add Requires: graphviz, gv for pprof
 
diff --git a/sources b/sources
index 284e8a9..0bf23c6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5839cab3723e68a86ed327ebb54d54bc  google-perftools-1.7.tar.gz
+70c95322c9bac97e67f0162e4cc55996  google-perftools-1.8.3.tar.gz


More information about the scm-commits mailing list