Home Home > GIT Browse > stable-xen
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-08-02 15:44:30 +0200
committerTakashi Iwai <tiwai@suse.de>2017-08-02 15:49:28 +0200
commite18c03ebae83cbe2e37dcd7767f9ab3646075c07 (patch)
tree36730bb95fa35373026c454710747ab70f4643de
parent4ef483a9ab15cb7be27a7f36cfd8d716283f66d6 (diff)
rpm/kernel-docs.spec.in: Fix package list and enable building PDFs
Finally it works! Added some missing pieces (ImageMagick, some texlive subpkgs) in addition to use explicitly python3-Sphinx stuff.
-rw-r--r--rpm/kernel-docs.spec.in15
1 files changed, 10 insertions, 5 deletions
diff --git a/rpm/kernel-docs.spec.in b/rpm/kernel-docs.spec.in
index 6854200a3c..4d9adfd924 100644
--- a/rpm/kernel-docs.spec.in
+++ b/rpm/kernel-docs.spec.in
@@ -22,8 +22,7 @@
%include %_sourcedir/kernel-spec-macros
%define build_html 1
-# still something wrong with Tex Live 2017...
-%define build_pdf 0
+%define build_pdf 1
# copy the whole tree to generate some images (sigh...)
%define local_copy 1
@@ -48,11 +47,18 @@ BuildRequires: kernel-source%variant
%if %build_pdf || %build_html
# ReST handling
BuildRequires: graphviz
-BuildRequires: python-Sphinx
+BuildRequires: graphviz-gd
+BuildRequires: graphviz-gnome
+BuildRequires: ImageMagick
+BuildRequires: python3-Sphinx
BuildRequires: texlive-anyfontsize
%if %build_pdf
-BuildRequires: python2-Sphinx-latex
+BuildRequires: python3-Sphinx-latex
+BuildRequires: texlive-adjustbox
BuildRequires: texlive-dejavu
+BuildRequires: texlive-dejavu-fonts
+BuildRequires: texlive-glyphlist
+BuildRequires: texlive-makeindex
BuildRequires: texlive-xetex
BuildRequires: texlive-zapfding
%endif
@@ -116,7 +122,6 @@ cp -a html/Documentation/output/* $RPM_BUILD_ROOT%{_datadir}/doc/kernel/html/rst
%if %build_pdf
install -d $RPM_BUILD_ROOT%{_datadir}/doc/kernel/pdf
-# copy PDF files generated by sphinx (once when it really works...)
for i in pdf/Documentation/output/latex/*.pdf; do
cp -a $i $RPM_BUILD_ROOT%{_datadir}/doc/kernel/pdf
done