From 4bddbef1591a5f404dc5205537d044a91ffbc87b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Wed, 29 Jan 2025 14:10:11 +0100 Subject: [PATCH] Demonstrate oneliner bcond syntax (cherry picked from commit efae07c500596f58a624401568e2149a223f8c28) --- docs/manual/conditionalbuilds.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/manual/conditionalbuilds.md b/docs/manual/conditionalbuilds.md index 1b2ef05c37..f8c78c1dc4 100644 --- a/docs/manual/conditionalbuilds.md +++ b/docs/manual/conditionalbuilds.md @@ -83,6 +83,12 @@ BuildRequires: openssl-devel Alternatively, you can test the presence (or lack thereof) of `%with_foo` macros which is nicer in other situations, e.g.: +``` +%{!?with_bootstrap:BuildRequires: ...} +``` + +or + ``` %configure \ %{?with_static:--enable-static} \