From 3c4ea9ad7f15a2dce27521c4bc5ae66464691039 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 4 Mar 2011 15:40:12 -0800 Subject: [PATCH] Split out perf-debuginfo subpackage. --- kernel.spec | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/kernel.spec b/kernel.spec index b8b00ff1c..ea9d3f3bc 100644 --- a/kernel.spec +++ b/kernel.spec @@ -51,7 +51,7 @@ Summary: The Linux kernel # For non-released -rc kernels, this will be prepended with "0.", so # for example a 3 here will become 0.3 # -%global baserelease 2 +%global baserelease 3 %global fedora_build %{baserelease} # base_sublevel is the kernel version we're starting with and patching @@ -802,6 +802,20 @@ Group: Development/System License: GPLv2 %description -n perf This package provides the perf tool and the supporting documentation. + +%package -n perf-debuginfo +Summary: Debug information for package perf +Group: Development/Debug +Requires: %{name}-debuginfo-common-%{_target_cpu} = %{version}-%{release} +AutoReqProv: no +%description -n perf-debuginfo +This package provides debug information for package perf. + +# Note that this pattern only works right to match the .build-id +# symlinks because of the trailing nonmatching alternation and +# the leading .*, because of find-debuginfo.sh's buggy handling +# of matching the pattern against the symlinks file. +%{expand:%%global debuginfo_args %{?debuginfo_args} -p '.*%%{_bindir}/perf(\.debug)?|.*%%{_libexecdir}/perf-core/.*|XXX' -o perf-debuginfo.list} %endif @@ -1886,6 +1900,11 @@ fi %dir %{_libexecdir}/perf-core %{_libexecdir}/perf-core/* %{_mandir}/man[1-8]/* + +%if %{with_debuginfo} +%files -f perf-debuginfo.list -n perf-debuginfo +%defattr(-,root,root) +%endif %endif # This is %%{image_install_path} on an arch where that includes ELF files, @@ -1950,6 +1969,9 @@ fi # and build. %changelog +* Fri Mar 04 2011 Roland McGrath - 2.6.38-0.rc7.git2.3 +- Split out perf-debuginfo subpackage. + * Fri Mar 04 2011 Kyle McMartin 2.6.38-0.rc7.git2.2 - Disable drm-i915-gen4-has-non-power-of-two-strides.patch for now, breaks my mutter.