diff --git a/knot-resolver.spec b/knot-resolver.spec index cfeff21..badd654 100644 --- a/knot-resolver.spec +++ b/knot-resolver.spec @@ -87,6 +87,9 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The package contains development headers for Knot DNS Resolver. +%if 0%{?fedora} +# Disable doc package in EPEL - it missing fonts in sphinx_rtd_theme +# https://bugzilla.redhat.com/show_bug.cgi?id=1492884 %package doc Summary: Documentation for Knot DNS Resolver BuildArch: noarch @@ -94,6 +97,7 @@ Requires: %{name} = %{version}-%{release} %description doc Documentation for Knot DNS Resolver +%endif %prep export GNUPGHOME=./gpg-keyring @@ -109,8 +113,10 @@ rm -v scripts/bootstrap-depends.sh %global build_flags V=1 CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" %{build_paths} HAS_go=no %make_build %{build_flags} +%if 0%{?fedora} # build documentation make doc +%endif %install %make_install %{build_flags} @@ -185,8 +191,10 @@ exit 0 %{_libdir}/pkgconfig/libkres.pc %{_libdir}/libkres.so +%if 0%{?fedora} %files doc %doc doc/html +%endif %changelog * Tue Jan 23 2018 Tomas Krizek - 1.5.3-1