public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hardinfo2] epel10: Use Qt6 on Fedora and EPEL 10+
@ 2026-09-05 16:43 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-09-05 16:43 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/hardinfo2
Branch : epel10
Commit : 498abe6365381382e1e416eb62797337329e68c0
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date   : 2026-07-27T22:07:09-04:00
Stats  : +12/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/hardinfo2/c/498abe6365381382e1e416eb62797337329e68c0?branch=epel10

Log:
Use Qt6 on Fedora and EPEL 10+

---
diff --git a/hardinfo2.spec b/hardinfo2.spec
index af21244..1fd5cb2 100644
--- a/hardinfo2.spec
+++ b/hardinfo2.spec
@@ -52,10 +52,17 @@ Patch0:         %{url}/pull/294.patch
 BuildRequires:  gcc-c++
 BuildRequires:  cmake
 
+%if 0%{?fedora} || 0%{?rhel} >= 10
+BuildRequires:  cmake(Qt6Core)
+BuildRequires:  cmake(Qt6Gui)
+BuildRequires:  cmake(Qt6Widgets)
+BuildRequires:  cmake(Qt6OpenGLWidgets)
+%else
 BuildRequires:  cmake(Qt5Core)
 BuildRequires:  cmake(Qt5Gui)
 BuildRequires:  cmake(Qt5Widgets)
 BuildRequires:  cmake(Qt5OpenGL)
+%endif
 BuildRequires:  /usr/bin/glslangValidator
 BuildRequires:  /usr/bin/glslc
 BuildRequires:  libdecor-devel
@@ -108,7 +115,11 @@ Features include:
 sed -i -e '/^SET.CMAKE_INSTALL_PREFIX/d' CMakeLists.txt
 
 %build
-%cmake -DCMAKE_BUILD_TYPE=Release
+%cmake -DCMAKE_BUILD_TYPE=Release \
+%if 0%{?fedora} || 0%{?rhel} >= 10
+  -DHARDINFO2_QT6=1 \
+%endif
+  %{nil}
 %cmake_build
 
 %install

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

only message in thread, other threads:[~2026-09-05 16:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-05 16:43 [rpms/hardinfo2] epel10: Use Qt6 on Fedora and EPEL 10+ Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox