From d13b1bf256b2c4af926c104539d965acf7b5367e Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Fri, 29 Nov 2024 12:20:07 +0100 Subject: [PATCH] Do not enable man page generation when it is disabled. Signed-off-by: Jindrich Novy --- composefs.spec.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/composefs.spec.in b/composefs.spec.in index 3d14d087..ad72406a 100644 --- a/composefs.spec.in +++ b/composefs.spec.in @@ -44,7 +44,11 @@ Library files for %{name}. %autosetup -p1 %build -%meson --default-library=shared -Dfuse=enabled -Dman=enabled +%if %{with man} +%meson --default-library=shared -Dfuse=enabled -Dman=enabled +%else +%meson --default-library=shared -Dfuse=enabled -Dman=disabled +%endif %meson_build %install