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/luminance-hdr] f44: Use the cmake declarative buildsystem
Date: Tue, 10 Nov 2026 22:17:57 GMT	[thread overview]
Message-ID: <179434907791.1.34250072063907413.rpms-luminance-hdr-97c97efa061a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/luminance-hdr
Branch : f44
Commit : 97c97efa061a117ab8801c0a82f82ce0eff62308
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-05-18T15:32:36+01:00
Stats  : +15/-16 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/luminance-hdr/c/97c97efa061a117ab8801c0a82f82ce0eff62308?branch=f44

Log:
Use the cmake declarative buildsystem

---
diff --git a/luminance-hdr.spec b/luminance-hdr.spec
index 4fd152b..1bec409 100644
--- a/luminance-hdr.spec
+++ b/luminance-hdr.spec
@@ -1,3 +1,5 @@
+%bcond ctest 1
+
 Name:           luminance-hdr
 Version:        2.6.1.1
 Release:        %autorelease
@@ -132,7 +134,13 @@ Patch:          %{forgeurl}/pull/288.patch
 # https://github.com/LuminanceHDR/LuminanceHDR/pull/284
 Patch:          %{forgeurl}/pull/284.patch
 
-BuildRequires:  cmake
+BuildSystem:    cmake
+BuildOption(conf): %{shrink:
+    -DCMAKE_BUILD_TYPE=RelWithDebInfo
+    -DENABLE_UNIT_TEST:BOOL=%{?with_ctest:ON}%{?!with_ctest:OFF}
+    }
+BuildOption(check): --exclude-regex "^Test(${x})\$"
+
 BuildRequires:  gcc-c++
 
 BuildRequires:  desktop-file-utils
@@ -195,7 +203,9 @@ BuildRequires:  (pkgconfig(eigen3) with eigen3-static)
 
 BuildRequires:  librtprocess-devel
 
+%if %{with ctest}
 BuildRequires:  gtest-devel
+%endif
 
 Obsoletes:      qtpfsgui < 2.2.0
 Provides:       qtpfsgui = %{version}-%{release}
@@ -270,9 +280,7 @@ Architecture-independent data files for luminance-hdr, such as HTML help and
 translations.
 
 
-%prep
-%autosetup -n LuminanceHDR-v.%{version} -p1
-
+%prep -a
 # Just in case the bundled librtprocess shows up in the tarball:
 rm --recursive --force --verbose librtprocess
 
@@ -305,22 +313,14 @@ sed --regexp-extended --in-place \
     build_files/Modules/CompilerSettings.cmake
 
 
-%conf
+%conf -p
 # Since Fedora 44 / eigen3 5.0, we actually need to set the proper include path
 # for eigen3. There are still no linker flags for eigen3, but we check anyway.
 export CXXFLAGS="${CXXFLAGS} $(pkgconf --cflags eigen3)"
 export LDFLAGS="${LDFLAGS} $(pkgconf --libs eigen3)"
 
-%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_UNIT_TEST:BOOL=ON
-
-
-%build
-%cmake_build
-
-
-%install
-%cmake_install
 
+%install -a
 # Upstream installs AUTHORS, Changelog, LICENSE, and README.md. We install
 # documentation and license files with the %%doc and %%license macros instead,
 # putting them in the usual locations favored by Fedora.
@@ -358,7 +358,7 @@ rm --recursive --force --verbose \
 ln --symbolic ../pfstools '%{buildroot}%{_datadir}/luminance-hdr/hdrhtml'
 
 
-%check
+%check -p
 # https://github.com/LuminanceHDR/LuminanceHDR/issues/154
 x='Mantiuk06Pyramid'
 %ifarch %{ix86}
@@ -367,7 +367,6 @@ x='Mantiuk06Pyramid'
 # solution.
 x="${x}|PoissonSolver"
 %endif
-%ctest --exclude-regex "^Test(${x})\$"
 
 
 %files

                 reply	other threads:[~2026-11-10 22:17 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=179434907791.1.34250072063907413.rpms-luminance-hdr-97c97efa061a@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