From 4a192f9082293952431c6f4bc8ed23ec9dd740c8 Mon Sep 17 00:00:00 2001 From: Aaron Conole Date: Wed, 30 Sep 2015 10:04:54 -0400 Subject: [PATCH] dpdk.spec: Allow builds to have the lightweight api-guide as well as the full pdf build The PDF guides drag a large amount of build requirements with them, and because of the reliance on the DejaVu texlive package, will not build on RHEL7. To keep the option of the PDF guide for Fedora, while allowing RH to build, make this a tunable which Fedora can default 'on'. Signed-off-by: Aaron Conole Acked-by: Neil Horman Acked-by: Panu Matilainen --- dpdk.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dpdk.spec b/dpdk.spec index 3bc2f72..46dff15 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -2,6 +2,8 @@ %bcond_without shared # Add option to build without tools %bcond_without tools +# Add option to build the PDF documentation separately (--with pdfdoc) +%bcond_with pdfdoc Name: dpdk Version: 2.1.0 @@ -34,14 +36,16 @@ ExclusiveArch: x86_64 -BuildRequires: kernel-headers, libpcap-devel, doxygen, texlive-dejavu -BuildRequires: python-sphinx inkscape texlive-latex-bin-bin +BuildRequires: kernel-headers, libpcap-devel, doxygen, python-sphinx +%if %{with pdfdoc} +BuildRequires: texlive-dejavu inkscape texlive-latex-bin-bin BuildRequires: texlive-kpathsea-bin texlive-metafont-bin texlive-cm BuildRequires: texlive-cmap texlive-ec texlive-babel-english BuildRequires: texlive-fancyhdr texlive-fancybox texlive-titlesec BuildRequires: texlive-framed texlive-threeparttable texlive-mdwtools BuildRequires: texlive-wrapfig texlive-parskip texlive-upquote texlive-multirow BuildRequires: texlive-helvetic texlive-times texlive-dvips +%endif %description The Data Plane Development Kit is a set of libraries and drivers for @@ -104,7 +108,7 @@ export EXTRA_CFLAGS="%{optflags} -Wformat -fPIC -Wno-error=array-bounds" make V=1 O=%{target} T=%{target} %{?_smp_mflags} config make V=1 O=%{target} %{?_smp_mflags} -make V=1 O=%{target} %{?_smp_mflags} doc +make V=1 O=%{target} %{?_smp_mflags} doc-api-html doc-guides-html %{?with_pdfdoc: guides-pdf} %install