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/fast_float] f44: Use the cmake declarative buildsystem
Date: Wed, 03 Jun 2026 05:51:28 GMT [thread overview]
Message-ID: <178046588891.1.593833828342976314.rpms-fast_float-cf466c668265@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-03 5:51 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=178046588891.1.593833828342976314.rpms-fast_float-cf466c668265@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