public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libportal] pr7: Disable qt5 in RHEL 10 builds
@ 2026-10-26 19:04 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-26 19:04 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/libportal
Branch : pr7
Commit : 33fe564b3d095dcd5d6a9b746e838d9f12995ab2
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2023-06-22T16:58:03-04:00
Stats : +17/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/libportal/c/33fe564b3d095dcd5d6a9b746e838d9f12995ab2?branch=pr7
Log:
Disable qt5 in RHEL 10 builds
RHEL 10 is dropping Qt 5 in favor of Qt 6.
---
diff --git a/libportal.spec b/libportal.spec
index c7a9900..e4a3145 100644
--- a/libportal.spec
+++ b/libportal.spec
@@ -1,6 +1,8 @@
+%bcond qt5 %[%{undefined rhel} || 0%{?rhel} < 10]
+
Name: libportal
Version: 0.6
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Flatpak portal library
License: LGPLv3
Url: https://github.com/flatpak/libportal
@@ -17,10 +19,12 @@ BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtk4)
+%if %{with qt5}
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
+%endif
# Backport from post-0.6 fixes
Patch0: 0.6-backports.patch
@@ -46,6 +50,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
This package provides files for GTK 4 and %name.
+%if %{with qt5}
%package qt5
Summary: Qt5 libraries for %name
Requires: %{name}%{?_isa} = %{version}-%{release}
@@ -54,6 +59,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%name provides GIO-style asynchronous APIs for most Flatpak portals.
This package provides files for Qt 5 and %name.
+%endif
%package devel
Summary: Development files and libraries for %name
@@ -84,6 +90,7 @@ Requires: %{name}-gtk4%{?_isa} = %{version}-%{release}
This package provides files for development with GTK 4 and %name.
+%if %{with qt5}
%package qt5-devel
Summary: Qt 5 development files and libraries for %name
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
@@ -93,6 +100,7 @@ Requires: %{name}-qt5%{?_isa} = %{version}-%{release}
%name provides GIO-style asynchronous APIs for most Flatpak portals.
This package provides files for development with Qt 5 and %name.
+%endif
%package devel-doc
Summary: Development documentation for libportal
@@ -111,7 +119,7 @@ This package provides development documentations for libportal.
%autosetup -p1 -S git_am
%build
-%meson
+%meson -Dbackends=gtk3,gtk4%{?with_qt5:,qt5}
%meson_build
%install
@@ -131,8 +139,10 @@ This package provides development documentations for libportal.
%{_libdir}/girepository-1.0/XdpGtk4-1.0.typelib
%{_libdir}/libportal-gtk4.so.1*
+%if %{with qt5}
%files qt5
%{_libdir}/libportal-qt5.so.1*
+%endif
%files devel
%{_datadir}/gir-1.0/Xdp-1.0.gir
@@ -158,15 +168,20 @@ This package provides development documentations for libportal.
%{_libdir}/libportal-gtk4.so
%{_libdir}/pkgconfig/libportal-gtk4.pc
+%if %{with qt5}
%files qt5-devel
%{_includedir}/libportal-qt5
%{_libdir}/libportal-qt5.so
%{_libdir}/pkgconfig/libportal-qt5.pc
+%endif
%files devel-doc
%{_datadir}/doc/libportal-1
%changelog
+* Thu Jun 22 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.6-7
+- Disable qt5 in RHEL 10 builds
+
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-26 19:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-26 19:04 [rpms/libportal] pr7: Disable qt5 in RHEL 10 builds Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox