DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 4/5] pkg: update RPM
Date: Thu,  2 Apr 2015 21:58:21 +0200	[thread overview]
Message-ID: <1428004702-8987-5-git-send-email-thomas.monjalon@6wind.com> (raw)
In-Reply-To: <1428004702-8987-1-git-send-email-thomas.monjalon@6wind.com>

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 <thomas.monjalon@6wind.com>
---
 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

  parent reply	other threads:[~2015-04-02 19:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-02 19:58 [dpdk-dev] [PATCH 0/5] packaging release 2.0.0 Thomas Monjalon
2015-04-02 19:58 ` [dpdk-dev] [PATCH 1/5] mk: remove fuse requirement for vhost-user Thomas Monjalon
2015-04-02 19:58 ` [dpdk-dev] [PATCH 2/5] mk: reduce PDF build commands Thomas Monjalon
2015-04-03  8:20   ` Butler, Siobhan A
2015-04-02 19:58 ` [dpdk-dev] [PATCH 3/5] pkg: remove -core file suffix Thomas Monjalon
2015-04-02 19:58 ` Thomas Monjalon [this message]
2015-04-02 19:58 ` [dpdk-dev] [PATCH 5/5] version: 2.0.0 Thomas Monjalon
2015-04-03 14:15 ` [dpdk-dev] [PATCH 0/5] packaging release 2.0.0 Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1428004702-8987-5-git-send-email-thomas.monjalon@6wind.com \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).