public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/optional-lite] rawhide: Better BuildOption formatting
@ 2026-09-09 10:57 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-09 10:57 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/optional-lite
Branch : rawhide
Commit : 0e467c305dcbf1b274aabd434c84560adf737957
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-09-09T11:55:43+01:00
Stats  : +5/-3 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/optional-lite/c/0e467c305dcbf1b274aabd434c84560adf737957?branch=rawhide

Log:
Better BuildOption formatting

---
diff --git a/optional-lite.spec b/optional-lite.spec
index 4f928e6..efab0cd 100644
--- a/optional-lite.spec
+++ b/optional-lite.spec
@@ -10,9 +10,11 @@ URL:            https://github.com/martinmoene/optional-lite
 Source:         %{url}/archive/v%{version}/optional-lite-%{version}.tar.gz
 
 BuildSystem:    cmake
-BuildOption(conf): %{shrink:
-    -DOPTIONAL_LITE_OPT_BUILD_TESTS:BOOL=%{?with_ctest:ON}%{?!with_ctest:OFF}
-    }
+%if %{with ctest}
+BuildOption(conf): -DOPTIONAL_LITE_OPT_BUILD_TESTS:BOOL=ON
+%else
+BuildOption(conf): -DOPTIONAL_LITE_OPT_BUILD_TESTS:BOOL=OFF
+%endif
 
 BuildRequires:  gcc-c++
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-09 10:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-09 10:57 [rpms/optional-lite] rawhide: Better BuildOption formatting Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox