summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2011-03-04 15:40:12 -0800
committerRoland McGrath <roland@redhat.com>2011-03-04 15:40:12 -0800
commit3c4ea9ad7f15a2dce27521c4bc5ae66464691039 (patch)
treead00be2b8010a148d0cada1c969efd9728e796f7
parent68c77e0c03c0e4936eab60219069345d85a9d267 (diff)
downloadkernel-3c4ea9ad7f15a2dce27521c4bc5ae66464691039.tar.gz
kernel-3c4ea9ad7f15a2dce27521c4bc5ae66464691039.tar.xz
kernel-3c4ea9ad7f15a2dce27521c4bc5ae66464691039.zip
Split out perf-debuginfo subpackage.
-rw-r--r--kernel.spec24
1 files changed, 23 insertions, 1 deletions
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 <roland@redhat.com> - 2.6.38-0.rc7.git2.3
+- Split out perf-debuginfo subpackage.
+
* Fri Mar 04 2011 Kyle McMartin <kmcmartin@redhat.com> 2.6.38-0.rc7.git2.2
- Disable drm-i915-gen4-has-non-power-of-two-strides.patch for now, breaks
my mutter.