public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/google-benchmark] rawhide: Better BuildOption formatting
@ 2026-09-08 20:01 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-08 20:01 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/google-benchmark
Branch : rawhide
Commit : 6ae422047c57ede713bcb8af3973f2e31c136392
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-08T20:59:16+01:00
Stats : +22/-14 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/google-benchmark/c/6ae422047c57ede713bcb8af3973f2e31c136392?branch=rawhide
Log:
Better BuildOption formatting
---
diff --git a/google-benchmark.spec b/google-benchmark.spec
index 17544f7..ca22853 100644
--- a/google-benchmark.spec
+++ b/google-benchmark.spec
@@ -22,23 +22,31 @@ Source: %{url}/archive/v%{version}/benchmark-%{version}.tar.gz
Patch: 0001-In-PerfCountersTest.MultiThreaded-serialize-worker-t.patch
BuildSystem: cmake
+
+BuildOption(conf): -DCMAKE_BUILD_TYPE=Release
+BuildOption(conf): -DGIT_VERSION='%{version}'
+BuildOption(conf): -DBENCHMARK_DOWNLOAD_DEPENDENCIES:BOOL=OFF
# Do not enable BENCHMARK_ENABLE_ASSEMBLY_TESTS, since it is for a very
# specific OS and compiler:
# https://github.com/google/benchmark/issues/1326#issuecomment-1015221235
-BuildOption(conf): %{shrink:
- -DCMAKE_BUILD_TYPE=Release
- -DGIT_VERSION='%{version}'
- -DBENCHMARK_DOWNLOAD_DEPENDENCIES:BOOL=OFF
- -DBENCHMARK_ENABLE_DOXYGEN:BOOL=OFF
- -DBENCHMARK_ENABLE_GTEST_TESTS:BOOL=%{?with_ctest:ON}%{?!with_ctest:OFF}
- -DBENCHMARK_ENABLE_ASSEMBLY_TESTS:BOOL=OFF
- -DBENCHMARK_ENABLE_LIBPFM:BOOL=%{?with_libfpm:ON}%{?!with_libfpm:OFF}
- -DBENCHMARK_ENABLE_INSTALL:BOOL=ON
- -DBENCHMARK_ENABLE_TESTING:BOOL=%{?with_ctest:ON}%{?!with_ctest:OFF}
- -DBENCHMARK_INSTALL_DOCS:BOOL=OFF
- -DBENCHMARK_INSTALL_TOOLS:BOOL=OFF
- -DBENCHMARK_USE_BUNDLED_GTEST:BOOL=OFF
- }
+BuildOption(conf): -DBENCHMARK_ENABLE_ASSEMBLY_TESTS:BOOL=OFF
+BuildOption(conf): -DBENCHMARK_ENABLE_DOXYGEN:BOOL=OFF
+BuildOption(conf): -DBENCHMARK_ENABLE_INSTALL:BOOL=ON
+BuildOption(conf): -DBENCHMARK_INSTALL_DOCS:BOOL=OFF
+BuildOption(conf): -DBENCHMARK_INSTALL_TOOLS:BOOL=OFF
+BuildOption(conf): -DBENCHMARK_USE_BUNDLED_GTEST:BOOL=OFF
+%if %{with libfpm}
+BuildOption(conf): -DBENCHMARK_ENABLE_LIBPFM:BOOL=ON
+%else
+BuildOption(conf): -DBENCHMARK_ENABLE_LIBPFM:BOOL=OFF
+%endif
+%if %{with ctest}
+BuildOption(conf): -DBENCHMARK_ENABLE_GTEST_TESTS:BOOL=ON
+BuildOption(conf): -DBENCHMARK_ENABLE_TESTING:BOOL=ON
+%else
+BuildOption(conf): -DBENCHMARK_ENABLE_GTEST_TESTS:BOOL=OFF
+BuildOption(conf): -DBENCHMARK_ENABLE_TESTING:BOOL=OFF
+%endif
%ifarch s390x
# [BUG] Multiple PerfCountersTest failures with counter.num_counters() zero on
# some s390x systems
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-08 20:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-08 20:01 [rpms/google-benchmark] 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