public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/earcut-hpp] f45: Better BuildOption formatting
@ 2026-09-09 8:56 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-09 8:56 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/earcut-hpp
Branch : f45
Commit : eed04d1f8a30f15e388094b08cbd0bfbf3eed637
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-07T21:10:18+01:00
Stats : +9/-7 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/earcut-hpp/c/eed04d1f8a30f15e388094b08cbd0bfbf3eed637?branch=f45
Log:
Better BuildOption formatting
---
diff --git a/earcut-hpp.spec b/earcut-hpp.spec
index 6c862f9..dcc3934 100644
--- a/earcut-hpp.spec
+++ b/earcut-hpp.spec
@@ -18,13 +18,15 @@ Source1: https://github.com/mapbox/earcut/archive/v%{version}/earcut-%{ve
BuildSystem: cmake
# We do want to build the tests, but we have no use for the benchmarks or the
# visualizer program.
-BuildOption(conf): %{shrink:
- -DFETCHCONTENT_FULLY_DISCONNECTED:BOOL=ON
- -DEARCUT_BUILD_TESTS:BOOL=%{?with_ctest:ON}%{?!with_ctest:OFF}
- -DEARCUT_BUILD_BENCH:BOOL=OFF
- -DEARCUT_BUILD_VIZ:BOOL=OFF
- -DEARCUT_WARNING_IS_ERROR:BOOL=OFF
- }
+BuildOption(conf): -DFETCHCONTENT_FULLY_DISCONNECTED:BOOL=ON
+%if %{with ctest}
+BuildOption(conf): -DEARCUT_BUILD_TESTS:BOOL=ON
+%else
+BuildOption(conf): -DEARCUT_BUILD_TESTS:BOOL=OFF
+%endif
+BuildOption(conf): -DEARCUT_BUILD_BENCH:BOOL=OFF
+BuildOption(conf): -DEARCUT_BUILD_VIZ:BOOL=OFF
+BuildOption(conf): -DEARCUT_WARNING_IS_ERROR:BOOL=OFF
BuildRequires: gcc-c++
# We need picojson for a “fixtures” convenience library that is used by tests,
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-09 8:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-09 8:56 [rpms/earcut-hpp] f45: 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