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/libdivide] f44: Use the cmake declarative buildsystem
Date: Mon, 07 Sep 2026 05:54:26 GMT	[thread overview]
Message-ID: <178876046681.1.12452777388740549494.rpms-libdivide-e3effe66564d@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-09-07  5:54 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=178876046681.1.12452777388740549494.rpms-libdivide-e3effe66564d@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