summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2013-12-14 09:52:27 -0500
committerJosh Boyer <jwboyer@redhat.com>2013-12-14 09:52:27 -0500
commited7ef3454161b3ba6f106bc3831ea695dd415335 (patch)
tree169ba95a7eb996829e36d2629bd7ecf7648b3aec
parent54dc996fcb49d75e7de8550c1f5f8995026b900a (diff)
downloadkernel-ed7ef3454161b3ba6f106bc3831ea695dd415335.tar.gz
kernel-ed7ef3454161b3ba6f106bc3831ea695dd415335.tar.xz
kernel-ed7ef3454161b3ba6f106bc3831ea695dd415335.zip
Wrap doc BR in with_doc
- Stop building perf in build AND install because that's stupid - Use prebuilt perf man pages
-rw-r--r--.gitignore1
-rw-r--r--kernel.spec20
-rw-r--r--sources1
3 files changed, 17 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index a23ef2db8..0dad218b0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ clog
*.rpm
*.orig
kernel-[23].*/
+/perf-man.tar.gz
diff --git a/kernel.spec b/kernel.spec
index 306aeb582..8f7198853 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -488,12 +488,14 @@ BuildRequires: kmod, patch, bash, sh-utils, tar
BuildRequires: bzip2, xz, findutils, gzip, m4, perl, perl-Carp, make, diffutils, gawk
BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc
BuildRequires: net-tools, hostname, bc
+%if %{with_doc}
BuildRequires: xmlto, asciidoc
+%endif
%if %{with_sparse}
BuildRequires: sparse
%endif
%if %{with_perf}
-BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed) bison
+BuildRequires: elfutils-devel zlib-devel binutils-devel newt-devel python-devel perl(ExtUtils::Embed) bison flex
BuildRequires: audit-libs-devel
%endif
%if %{with_tools}
@@ -517,6 +519,7 @@ BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-%{kversion}.tar.xz
+Source10: perf-man.tar.gz
Source11: x509.genkey
Source15: merge.pl
@@ -1747,8 +1750,7 @@ BuildKernel %make_target %kernel_image smp
make -s %{?cross_opts} %{?_smp_mflags} -C tools/perf V=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_LIBNUMA=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=%{_prefix}
%if %{with_perf}
# perf
-%{perf_make} all
-%{perf_make} man || %{doc_build_fail}
+%{perf_make} DESTDIR=$RPM_BUILD_ROOT all
%endif
%if %{with_tools}
@@ -1892,7 +1894,7 @@ find $RPM_BUILD_ROOT/usr/include \
%if %{with_perf}
# perf tool binary and supporting scripts/binaries
-%{perf_make} DESTDIR=$RPM_BUILD_ROOT install
+%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-bin
# remove the 'trace' symlink.
rm -f %{buildroot}%{_bindir}/trace
@@ -1900,7 +1902,10 @@ rm -f %{buildroot}%{_bindir}/trace
%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-python_ext
# perf man pages (note: implicit rpm magic compresses them later)
-%{perf_make} DESTDIR=$RPM_BUILD_ROOT install-man || %{doc_build_fail}
+mkdir -p %{buildroot}/%{_mandir}/man1
+pushd %{buildroot}/%{_mandir}/man1
+tar -xf %{SOURCE10}
+popd
%endif
%if %{with_tools}
@@ -2204,6 +2209,11 @@ fi
# ||----w |
# || ||
%changelog
+* Sat Dec 14 2014 Josh Boyer <jwboyer@fedoraproject.org>
+- Wrap doc BR in with_doc
+- Stop building perf in build AND install because that's stupid
+- Use prebuilt perf man pages
+
* Fri Dec 13 2013 Josh Boyer <jwboyer@fedoraproject.org>
- More keys fixes from upstream to fix keyctl_get_persisent crash (rhbz 1043033)
diff --git a/sources b/sources
index b1c1b5ac6..04a600e44 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,4 @@
cc6ee608854e0da4b64f6c1ff8b6398c linux-3.12.tar.xz
be2604350d32ab4967f9773920de1ec8 patch-3.13-rc3.xz
9455f561b79edc6ae7487ebabb456b87 patch-3.13-rc3-git4.xz
+a1a1e715cc0c95b4c90d432290b4ee96 perf-man.tar.gz