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

A new commit has been pushed.

Repo   : rpms/libdivide
Branch : f44
Commit : e3effe66564d304c6c6ebfb67420aaada219f3a8
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-05-17T20:31:12+01:00
Stats  : +8/-20 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/libdivide/c/e3effe66564d304c6c6ebfb67420aaada219f3a8?branch=f44

Log:
Use the cmake declarative buildsystem

---
diff --git a/libdivide.spec b/libdivide.spec
index a525819..cf2982b 100644
--- a/libdivide.spec
+++ b/libdivide.spec
@@ -1,3 +1,5 @@
+%bcond ctest 1
+
 Name:           libdivide
 Version:        5.3.0
 Release:        %autorelease
@@ -9,11 +11,15 @@ URL:            https://libdivide.com/
 VCS:            git:%{forgeurl}.git
 Source:         %{forgeurl}/archive/v%{version}/libdivide-%{version}.tar.gz
 
+BuildSystem:    cmake
+BuildOption(conf): %{shrink:
+    -DLIBDIVIDE_BUILD_TESTS:BOOL=%{?with_ctest:ON}%{?!with_ctest:OFF}
+    }
+
 # There are no ELF objects in this package, so turn off debuginfo generation.
 %global debug_package %{nil}
 
 BuildRequires:  gcc-c++
-BuildRequires:  cmake
 
 %global _description %{expand:
 This package contains a header-only C/C++ library for optimizing integer
@@ -41,29 +47,11 @@ Provides:       libdivide-static = %{version}-%{release}
 %description    devel %_description
 
 
-%prep
-%autosetup -p1
-
+%prep -a
 # Disable -Werror
 sed -i 's/;-Werror//;/-Werror/d' CMakeLists.txt
 
 
-%conf
-%cmake
-
-
-%build
-%cmake_build
-
-
-%install
-%cmake_install
-
-
-%check
-%ctest
-
-
 %files devel
 %license LICENSE.txt
 %doc README.md

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

only message in thread, other threads:[~2026-09-07  5:54 UTC | newest]

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