[google-perftools: 1/2] split out libraries
Tom Callaway
spot at fedoraproject.org
Mon Oct 24 19:36:17 UTC 2011
commit 0f625515b8259edab4efce55bfbe3c2601690664
Author: Tom "spot" Callaway <tcallawa at redhat.com>
Date: Mon Oct 24 15:33:37 2011 -0400
split out libraries
google-perftools.spec | 23 +++++++++++++++++------
1 files changed, 17 insertions(+), 6 deletions(-)
---
diff --git a/google-perftools.spec b/google-perftools.spec
index bb6c57b..8cfe22b 100644
--- a/google-perftools.spec
+++ b/google-perftools.spec
@@ -1,6 +1,6 @@
Name: google-perftools
Version: 1.8.3
-Release: 1%{?dist}
+Release: 2%{?dist}
License: BSD
Group: Development/Tools
Summary: Very fast malloc and performance analysis tools
@@ -12,6 +12,7 @@ ExclusiveArch: %{ix86} x86_64 ppc
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
@@ -22,11 +23,17 @@ 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
@@ -54,22 +61,26 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/NEWS
# 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
%{_bindir}/pprof
%{_mandir}/man1/*
%{_docdir}/%{name}-%{version}/
-%{_libdir}/*.so.*
%files devel
%{_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
More information about the scm-commits
mailing list