From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 789709AA0 for ; Thu, 2 Apr 2015 21:59:14 +0200 (CEST) Received: by wgdm6 with SMTP id m6so95464126wgd.2 for ; Thu, 02 Apr 2015 12:59:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=BPobtMxzUySKAocC80qVGLOrU5hHP6OG6lb/JJXIofI=; b=KK44xPlW19L3mwT8qZTsItJ9GsiuQwIGkkfhW9jBnalidlk4nxX12Lq75yb517jjCa O8nw/zmkXDCbBJOGHNbS0InLM681HYkBBcMAh4Q4xgnj30NlhNM0Up0rSwDqKvH2tcoT EFstyPqCk2aVbSjvRkTzSJYJ2cw7i0B82CEYefjMCW+CX0KQPOX7DA4hNQxSwQAQpLLb lKa+0dMQUawiHTk5/G6K4MFjN3hndZF+2SKISoDJQ8vAn1j7KoE+ZHvBagKPsI6mqRPD rBPNDWCdcLMvgPB0u0md7Lq8nyPURRfEWiEOIYtyECL00ppX3K/cL7haCOr39aAV7j57 0F8A== X-Gm-Message-State: ALoCoQn5qJoFoq+hX20KCwUsxdY/QAu5q0Pn3UJudUjIqGNw3OlinoIg3qZFMCx1TmXDp+rRZDnH X-Received: by 10.194.5.37 with SMTP id p5mr98448381wjp.20.1428004754389; Thu, 02 Apr 2015 12:59:14 -0700 (PDT) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id dr7sm3932819wib.22.2015.04.02.12.59.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Apr 2015 12:59:13 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Thu, 2 Apr 2015 21:58:21 +0200 Message-Id: <1428004702-8987-5-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1428004702-8987-1-git-send-email-thomas.monjalon@6wind.com> References: <1428004702-8987-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-dev] [PATCH 4/5] pkg: update RPM X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2015 19:59:14 -0000 Enable vhost-user and build PDF doc. Inkscape and TeXLive are required to convert .svg and .rst to .pdf. Temporary sphinx files .* (.doctrees/ and .buildinfo) are cleaned. Tested on Fedora 20. Signed-off-by: Thomas Monjalon --- pkg/dpdk.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkg/dpdk.spec b/pkg/dpdk.spec index 9a92e95..56fccd0 100644 --- a/pkg/dpdk.spec +++ b/pkg/dpdk.spec @@ -44,7 +44,9 @@ ExclusiveArch: i686, x86_64 %global target %{_arch}-native-linuxapp-gcc %global machine default -BuildRequires: kernel-devel, kernel-headers, libpcap-devel, xen-devel, doxygen, python-sphinx +BuildRequires: kernel-devel, kernel-headers, libpcap-devel, xen-devel +BuildRequires: doxygen, python-sphinx, inkscape +BuildRequires: texlive-collection-latexextra, texlive-collection-fontsextra %description DPDK core includes kernel modules, core libraries and tools. @@ -65,7 +67,7 @@ Summary: Data Plane Development Kit API documentation BuildArch: noarch %description doc DPDK doc is divided in two parts: API details in doxygen HTML format -and guides in sphinx HTML format. +and guides in sphinx HTML/PDF formats. %global destdir %{buildroot}%{_prefix} %global moddir /lib/modules/%(uname -r)/extra @@ -80,6 +82,7 @@ make O=%{target} T=%{target} config sed -ri 's,(RTE_MACHINE=).*,\1%{machine},' %{target}/.config sed -ri 's,(RTE_APP_TEST=).*,\1n,' %{target}/.config sed -ri 's,(RTE_BUILD_SHARED_LIB=).*,\1y,' %{target}/.config +sed -ri 's,(LIBRTE_VHOST=).*,\1y,' %{target}/.config sed -ri 's,(LIBRTE_PMD_PCAP=).*,\1y,' %{target}/.config sed -ri 's,(LIBRTE_PMD_XENVIRT=).*,\1y,' %{target}/.config sed -ri 's,(LIBRTE_XEN_DOM0=).*,\1y,' %{target}/.config @@ -100,8 +103,10 @@ rmdir %{destdir}/%{target}/app mv %{destdir}/%{target}/include %{buildroot}%{_includedir} mv %{destdir}/%{target}/lib %{buildroot}%{_libdir} mkdir -p %{buildroot}%{docdir} -mv %{destdir}/%{target}/doc/* %{buildroot}%{docdir} -rmdir %{destdir}/%{target}/doc +rm -rf %{destdir}/%{target}/doc/*/*/.{build,doc}* +mv %{destdir}/%{target}/doc/html/* %{buildroot}%{docdir} +mv %{destdir}/%{target}/doc/*/*/*pdf %{buildroot}%{docdir}/guides +rm -rf %{destdir}/%{target}/doc mkdir -p %{buildroot}%{datadir} mv %{destdir}/%{target}/.config %{buildroot}%{datadir}/config mv %{destdir}/%{target} %{buildroot}%{datadir} -- 2.2.2