public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/google-benchmark] rawhide: Better BuildOption formatting
Date: Tue, 08 Sep 2026 20:01:01 GMT	[thread overview]
Message-ID: <178889766145.1.12526559649079078828.rpms-google-benchmark-6ae422047c57@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-09-08 20:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178889766145.1.12526559649079078828.rpms-google-benchmark-6ae422047c57@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox