public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/qt6-qtgrpc] epel9: Turn off and obsolete examples for RHEL < 10
@ 2026-10-08 18:16 Troy Dawson
  0 siblings, 0 replies; only message in thread
From: Troy Dawson @ 2026-10-08 18:16 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/qt6-qtgrpc
Branch : epel9
Commit : 9e629cf6fd5c012ce9ad0b39aa0a35e4b091923e
Author : Troy Dawson <tdawson@redhat.com>
Date   : 2026-10-08T11:15:53-07:00
Stats  : +17/-3 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/qt6-qtgrpc/c/9e629cf6fd5c012ce9ad0b39aa0a35e4b091923e?branch=epel9

Log:
Turn off and obsolete examples for RHEL < 10

---
diff --git a/qt6-qtgrpc.spec b/qt6-qtgrpc.spec
index d3b7640..b9bd98f 100644
--- a/qt6-qtgrpc.spec
+++ b/qt6-qtgrpc.spec
@@ -6,12 +6,16 @@
 %global prerelease rc
 %endif
 
+%if 0%{?rhel} && 0%{?rhel} < 10
+%global examples 0
+%else
 %global examples 1
+%endif
 
 Summary: Qt6 - Support for using gRPC and Protobuf
 Name:    qt6-%{qt_module}
 Version: 6.10.3
-Release: 1%{?dist}
+Release: 1.1%{?dist}
 
 License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
 Url:     http://www.qt.io
@@ -41,6 +45,8 @@ BuildRequires: pkgconfig(protobuf)
 BuildRequires: zlib-static
 
 BuildRequires: qt6-qtbase-private-devel
+
+Obsoletes: %{name}-examples < %{version}
 %{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}}
 
 %description
@@ -72,8 +78,13 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
 
 %build
 %cmake_qt6 \
-    -DQT_BUILD_EXAMPLES:BOOL=%{?examples:ON}%{!?examples:OFF} \
-    -DQT_INSTALL_EXAMPLES_SOURCES=%{?examples:ON}%{!?examples:OFF}
+%if 0%{?examples}
+    -DQT_BUILD_EXAMPLES:BOOL=ON \
+    -DQT_INSTALL_EXAMPLES_SOURCES=ON
+%else
+    -DQT_BUILD_EXAMPLES:BOOL=OFF \
+    -DQT_INSTALL_EXAMPLES_SOURCES=OFF
+%endif
 
 %cmake_build
 
@@ -166,6 +177,9 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
 %endif
 
 %changelog
+* Thu Sep 10 2026 Troy Dawson <tdawson@redhat.com> - 6.11.3-1.1
+- Turn off and obsolete examples for RHEL < 10
+
 * Tue Mar 31 2026 Jan Grulich <jgrulich@redhat.com> - 6.10.3-1
 - 6.10.3
 

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

only message in thread, other threads:[~2026-10-08 18:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 18:16 [rpms/qt6-qtgrpc] epel9: Turn off and obsolete examples for RHEL < 10 Troy Dawson

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