[packages/kmod] - docs aren't built despite of configure options, make it bcond and disabled by default
hawk
hawk at pld-linux.org
Sun May 9 17:38:25 CEST 2021
commit ae89445f0eca5415597a79a8e2a057662239322a
Author: Marcin Krol <hawk at tld-linux.org>
Date: Sun May 9 15:37:41 2021 +0000
- docs aren't built despite of configure options, make it bcond and
disabled by default
kmod.spec | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/kmod.spec b/kmod.spec
index 1557bf1..5aab23a 100644
--- a/kmod.spec
+++ b/kmod.spec
@@ -8,6 +8,7 @@
%bcond_without openssl # OpenSSL support for PKCS7 signatures in modinfo
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
+%bcond_with docs # Docs
%bcond_without tests # perform "make check" (init_module seems to require root for mkdir)
Summary: Linux kernel module handling
@@ -26,7 +27,7 @@ Patch1: %{name}-depmod.d-kver.patch
URL: https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
BuildRequires: autoconf >= 2.64
BuildRequires: automake >= 1:1.11
-BuildRequires: gtk-doc >= 1.14
+%{?with_docs:BuildRequires: gtk-doc >= 1.14}
%if %{with tests}
BuildRequires: kernel-module-build
%endif
@@ -162,6 +163,7 @@ cd build
../%configure \
--disable-silent-rules \
--disable-test-modules \
+ %{?with_docs:--enable-gtk-doc} \
%{?with_python2:--enable-python} \
%{?with_openssl:--with-openssl} \
--with-rootlibdir=/%{_lib} \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kmod.git/commitdiff/ae89445f0eca5415597a79a8e2a057662239322a
More information about the pld-cvs-commit
mailing list