public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fast_float] f44: Use the cmake declarative buildsystem
@ 2026-06-03  5:51 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-03  5:51 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/fast_float
Branch : f44
Commit : cf466c66826580715e7aae98eec235673b946cd7
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-05-17T15:58:19+01:00
Stats  : +11/-21 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/fast_float/c/cf466c66826580715e7aae98eec235673b946cd7?branch=f44

Log:
Use the cmake declarative buildsystem

---
diff --git a/fast_float.spec b/fast_float.spec
index df087e8..5dd0e38 100644
--- a/fast_float.spec
+++ b/fast_float.spec
@@ -1,4 +1,5 @@
-# Build and run exhaustive tests?
+%bcond ctest 1
+# Build and run exhaustive tests? (Only if ctest bcond is enabled.)
 #
 # These really do take a long time—at least an hour on the fastest machines,
 # and over ten hours on s390x (affected also by limited parallelism). Some
@@ -28,8 +29,15 @@ Source0:        %{url}/archive/v%{version}/fast_float-%{version}.tar.gz
 %global stf_url https://github.com/fastfloat/supplemental_test_files
 Source1:        %{stf_url}/archive/%{stf_commit}/supplemental_test_files-%{stf_commit}.tar.gz
 
+BuildSystem:    cmake
+BuildOption(conf): %{shrink:
+    -DFETCHCONTENT_FULLY_DISCONNECTED:BOOL=ON
+    -DSYSTEM_DOCTEST:BOOL=ON
+    -DFASTFLOAT_TEST:BOOL=%{?with_ctest:ON}%{?!with_ctest:OFF}
+    -DFASTFLOAT_EXHAUSTIVE:BOOL=%{?with_exhaustive:ON}%{?!with_exhaustive:OFF}
+    }
+
 BuildRequires:  gcc-c++
-BuildRequires:  cmake
 
 BuildRequires:  cmake(doctest)
 # Doctest is header-only, so we must BR:
@@ -68,31 +76,13 @@ Provides:       fast_float-static = %{version}-%{release}
 sed -r -i 's/-Werror//' tests/CMakeLists.txt
 
 
-%conf
+%conf -p
 # Partially emulate the activity of FetchContent_Declare() in
 # tests/CMakeLists.txt so that we can run the tests offline.
 mkdir -p '%{_vpath_builddir}/_deps'
 ln -s "${PWD}/../supplemental_test_files-%{stf_commit}/" \
     '%{_vpath_builddir}/_deps/supplemental_test_files-src'
 
-%cmake \
-    -DFETCHCONTENT_FULLY_DISCONNECTED:BOOL=ON \
-    -DSYSTEM_DOCTEST:BOOL=ON \
-    -DFASTFLOAT_TEST:BOOL=ON \
-    -DFASTFLOAT_EXHAUSTIVE:BOOL=%{?with_exhaustive:ON}%{?!with_exhaustive:OFF}
-
-
-%build
-%cmake_build
-
-
-%install
-%cmake_install
-
-
-%check
-%ctest
-
 
 %files devel
 %license LICENSE-APACHE

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

only message in thread, other threads:[~2026-06-03  5:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03  5:51 [rpms/fast_float] f44: Use the cmake declarative buildsystem 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