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

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

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

only message in thread, other threads:[~2026-11-10 22:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10 22:17 [rpms/luminance-hdr] 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