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

A new commit has been pushed.

Repo   : rpms/gulrak-filesystem
Branch : f44
Commit : 279a536bc06d58eda015e12a18c7dd061816d0c9
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-05-17T19:12:14+01:00
Stats  : +7/-21 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/gulrak-filesystem/c/279a536bc06d58eda015e12a18c7dd061816d0c9?branch=f44

Log:
Use the cmake declarative buildsystem

---
diff --git a/gulrak-filesystem.spec b/gulrak-filesystem.spec
index afb3e45..0e05625 100644
--- a/gulrak-filesystem.spec
+++ b/gulrak-filesystem.spec
@@ -1,3 +1,4 @@
+%bcond ctest 1
 # Use the system Catch2? We need 2.x and cannot straightforwarly port to 3.x
 # (and upstream will not migrate to 3.x because they need to test C++11
 # support, https://github.com/gulrak/filesystem/issues/165). If a Catch2 2.x
@@ -18,9 +19,12 @@ License:        MIT
 URL:            https://github.com/gulrak/filesystem
 Source:         %{url}/archive/v%{version}/filesystem-%{version}.tar.gz
 
+BuildSystem:    cmake
+BuildOption(conf): %{shrink:
+    -DGHC_FILESYSTEM_BUILD_TESTING:BOOL=%{?with_ctest:ON}%{?!with_ctest:OFF}
+}
+
 BuildRequires:  gcc-c++
-BuildRequires:  cmake
-BuildRequires:  make
 
 %if %{with system_catch2}
 # Consider migrating to Catch2 v3
@@ -61,9 +65,7 @@ The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
 
-%prep
-%autosetup -n filesystem-%{version}
-
+%prep -a
 %if %{with system_catch2}
 # Remove bundled Catch library and use the system version
 rm -vf test/catch.hpp
@@ -72,22 +74,6 @@ sed -r -i 's|[[:blank:]]+catch\.hpp||' test/CMakeLists.txt
 %endif
 
 
-%conf
-%cmake
-
-
-%build
-%cmake_build
-
-
-%install
-%cmake_install
-
-
-%check
-%ctest
-
-
 %files devel
 %license LICENSE
 %doc README.md

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

only message in thread, other threads:[~2026-07-23 22:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-23 22:56 [rpms/gulrak-filesystem] 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