From 4c3d45c259365dc8e002a9f295c303ed5173743a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Wed, 20 Nov 2019 13:26:50 +0100 Subject: [PATCH] docs: disabled docs generation on RHEL, there is no asciidoctor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And asciidoc doesn't seem to be compatible, so disable the docs generation for now on RHEL. Signed-off-by: Jaroslav Škarvada --- tuned.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tuned.spec b/tuned.spec index 5babd56..3264d44 100644 --- a/tuned.spec +++ b/tuned.spec @@ -238,7 +238,11 @@ It can be also used to fine tune your system for specific scenarios. %setup -q -n %{name}-%{version}%{?prerel2} %build +# Docs cannot be generated on RHEL now due to missing asciidoctor dependency +# asciidoc doesn't seem to be compatible +%if ! 0%{?rhel} make html %{make_python_arg} +%endif %install make install DESTDIR=%{buildroot} DOCDIR=%{docdir} %{make_python_arg} @@ -246,8 +250,10 @@ make install DESTDIR=%{buildroot} DOCDIR=%{docdir} %{make_python_arg} sed -i 's/\(dynamic_tuning[ \t]*=[ \t]*\).*/\10/' %{buildroot}%{_sysconfdir}/tuned/tuned-main.conf %endif +%if ! 0%{?rhel} # manual make install-html DESTDIR=%{buildroot} DOCDIR=%{docdir} +%endif # conditional support for grub2, grub2 is not available on all architectures # and tuned is noarch package, thus the following hack is needed