]> git.pld-linux.org Git - packages/kmod.git/commitdiff
- docs aren't built despite of configure options, make it bcond and
authorMarcin Krol <hawk@tld-linux.org>
Sun, 9 May 2021 15:37:41 +0000 (15:37 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 9 May 2021 15:37:41 +0000 (15:37 +0000)
  disabled by default

kmod.spec

index 1557bf1a7a511bcd7366eb042f9527769c6330de..5aab23a1e1e0396ea884ee8c2fc2cae5567ddd34 100644 (file)
--- 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} \
This page took 0.305749 seconds and 4 git commands to generate.