%bcond qt5 %[%{undefined rhel} || 0%{?rhel} < 10] Name: qgnomeplatform Version: 0.9.1 Release: 8%{?dist} Summary: Qt Platform Theme aimed to accommodate Gnome settings License: LGPL-2.0-or-later URL: https://github.com/FedoraQt/QGnomePlatform Source0: https://github.com/FedoraQt/QGnomePlatform/archive/%{version}/QGnomePlatform-%{version}.tar.gz # Upstream patches Patch0: qgnomeplatform-only-set-qqc2-style-on-qt5.patch BuildRequires: make BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(xkbcommon) BuildRequires: gtk3-devel BuildRequires: gsettings-desktop-schemas-devel BuildRequires: libinput-devel BuildRequires: libXrender-devel %description QGnomePlatform is a Qt Platform Theme aimed to accommodate as much of GNOME settings as possibleand utilize them in Qt applications without modifying them - making them fit into the environment as well as possible. %if %{with qt5} %package qt5 Summary: Qt5 Platform Theme aimed to accommodate Gnome settings BuildRequires: qt5-qtbase-devel >= 5.15.2 BuildRequires: qt5-qtbase-static >= 5.15.2 BuildRequires: qt5-qtquickcontrols2-devel >= 5.15.2 BuildRequires: qt5-qtwayland-devel >= 5.15.2 BuildRequires: qt5-qtbase-private-devel >= 5.15.2 %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} BuildRequires: libadwaita-qt5-devel >= 1.4.2 Requires: adwaita-qt5%{?_isa} %if (0%{?fedora} && 0%{?fedora} <= 38) # Replace QGnomePlatform package with this as it was the Qt5 flavor Obsoletes: %{name} < 0.8.4-5 Provides: %{name} = %{version}-%{release} Provides: %{name}%{?_isa} = %{version}-%{release} %endif # When GNOME Shell and Qt 5 are installed, we want this by default Supplements: (qt5-qtbase and gnome-shell) %description qt5 QGnomePlatform is a Qt5 Platform Theme aimed to accommodate as much of GNOME settings as possibleand utilize them in Qt applications without modifying them - making them fit into the environment as well as possible. %endif %package qt6 Summary: Qt6 Platform Theme aimed to accommodate Gnome settings BuildRequires: qt6-qtbase-devel >= 6.2.0 BuildRequires: qt6-qtbase-static >= 6.2.0 BuildRequires: qt6-qtquickcontrols2-devel >= 6.2.0 BuildRequires: qt6-qtwayland-devel >= 6.2.0 BuildRequires: qt6-qtbase-private-devel >= 6.2.0 BuildRequires: libadwaita-qt6-devel >= 1.4.1 %{?_qt6:Requires: %{_qt6}%{?_isa} = %{_qt6_version}} Requires: adwaita-qt6%{?_isa} # When GNOME Shell and Qt 6 are installed, we want this by default Supplements: (qt6-qtbase and gnome-shell) %description qt6 QGnomePlatform is a Qt6 Platform Theme aimed to accommodate as much of GNOME settings as possibleand utilize them in Qt applications without modifying them - making them fit into the environment as well as possible. %prep %autosetup -p1 -n QGnomePlatform-%{version} %build %if %{with qt5} %global _vpath_builddir %{_target_platform}-qt5 %cmake -DDECORATION_SHADOWS_SUPPORT=true %cmake_build %endif %global _vpath_builddir %{_target_platform}-qt6 %cmake -DUSE_QT6=true %cmake_build %install %if %{with qt5} %global _vpath_builddir %{_target_platform}-qt5 %cmake_install %endif %global _vpath_builddir %{_target_platform}-qt6 %cmake_install %if %{with qt5} %files qt5 %doc README.md %license LICENSE %{_datadir}/color-schemes/*.colors %{_qt5_libdir}/libqgnomeplatform.so %{_qt5_plugindir}/platformthemes/libqgnomeplatformtheme.so %{_qt5_plugindir}/wayland-decoration-client/libqgnomeplatformdecoration.so %endif %files qt6 %doc README.md %license LICENSE %{_qt6_libdir}/libqgnomeplatform6.so %{_qt6_plugindir}/platformthemes/libqgnomeplatformtheme.so %{_qt6_plugindir}/wayland-decoration-client/libqgnomeplatformdecoration.so %exclude %{_datadir}/color-schemes/*.colors %changelog * Mon Jul 24 2023 Jan Grulich - 0.9.1-8 - Rebuild (qt6) * Fri Jul 21 2023 Fedora Release Engineering - 0.9.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jul 12 2023 Jan Grulich - 0.9.1-6 - Rebuild for qtbase private API version change * Wed Jul 12 2023 Jan Grulich - 0.9.1-5 - Rebuild for qtbase private API version change * Wed Jun 14 2023 Jan Grulich - 0.9.1-4 - Rebuild (qt5) * Fri May 26 2023 Jan Grulich - 0.9.1-3 - Rebuild (qt6) * Mon May 15 2023 Jan Grulich - 0.9.1-2 - Only set the QtQuick Controls Style on Qt5 * Thu May 11 2023 Jan Grulich - 0.9.1-1 - 0.9.1 * Wed Apr 26 2023 Jan Grulich - 0.9.0-14 - Rebuild (qt6) * Wed Apr 12 2023 Jan Grulich - 0.9.0-13 - Rebuild (qt5) * Tue Apr 04 2023 Jan Grulich - 0.9.0-12 - Rebuild (qt6) * Mon Mar 27 2023 Jan Grulich - 0.9.0-11 - Rebuild (qt6) * Fri Mar 10 2023 Jan Grulich - 0.9.0-10 - Add support for KColorScheme using Adwaita-like color schemes * Tue Jan 31 2023 Jan Grulich - 0.9.0-9 - migrated to SPDX license * Fri Jan 20 2023 Fedora Release Engineering - 0.9.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Jan 17 2023 Jan Grulich - 0.9.0-7 - Rebuild (qt6) * Fri Jan 06 2023 Jan Grulich - 0.9.0-6 - Rebuild (qt5) * Thu Nov 24 2022 Jan Grulich - 0.9.0-5 - Rebuild (qt6) * Wed Nov 02 2022 Jan Grulich - 0.9.0-4 - Restore old patch for client-side window decorations * Mon Oct 31 2022 Jan Grulich - 0.9.0-3 - Rebuild (qt5) * Thu Sep 22 2022 Jan Grulich - 0.9.0-2 - Fix window content geometry for Qt5 when shadows are enabled * Wed Sep 21 2022 Jan Grulich - 0.9.0-1 - 0.9.0 * Wed Sep 21 2022 Jan Grulich - 0.8.4-13 - Rebuild (qt5) * Thu Aug 25 2022 Jan Grulich - 0.8.4-12 - CSD: re-enable shadows support for Qt5 * Fri Jul 22 2022 Fedora Release Engineering - 0.8.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jul 14 2022 Jan Grulich - 0.8.4-10 - Rebuild (qt5) * Tue May 17 2022 Jan Grulich - 0.8.4-9 - Rebuild (qt5) * Mon Apr 25 2022 Jan Grulich - 0.8.4-8 - Rebuild (qtwayland) * Thu Apr 21 2022 Jan Grulich - 0.8.4-7 - Rebuild (Qt6) * Tue Mar 08 2022 Jan Grulich - 0.8.4-6 - Rebuild (qt5) * Sat Mar 05 2022 Neal Gompa - 0.8.4-5 - Rework packaging for consistency - Add rich supplements for installing QGnomePlatform modules * Mon Feb 07 2022 Jan Grulich - 0.8.4-4 - Rebuild (qt6) * Mon Jan 24 2022 Jan Grulich - 0.8.4-3 - Rebuild (qt5-qtwayland) * Fri Jan 21 2022 Fedora Release Engineering - 0.8.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jan 12 2022 Jan Grulich - 0.8.4-1 - 0.8.4 * Wed Dec 15 2021 Jan Grulich - 0.8.3-2 - Rebuild (qt6) * Mon Nov 22 2021 Jan Grulich - 0.8.3-1 - 0.8.3 * Mon Nov 15 2021 Jan Grulich - 0.8.2-1 - 0.8.2 * Wed Nov 10 2021 Jan Grulich - 0.8.1-1 - 0.8.1 + Add Qt6 version * Tue Sep 07 2021 Jan Grulich - 0.8.0-4 - Disable decoration shadows because of a Qt bug * Mon Aug 30 2021 Jan Grulich - 0.8.0-3 - Enable decoration shadows * Fri Jul 23 2021 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jun 02 2021 Jan Grulich - 0.8.0-1 - 0.8.0 * Mon Apr 12 2021 Jan Grulich - 0.7.1-2 - Improve double-click on titlebar to maximize/unmaximize reliability * Thu Apr 08 2021 Jan Grulich - 0.7.1-1 - 0.7.1 * Wed Jan 27 2021 Fedora Release Engineering - 0.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jan 05 2021 Jan Grulich - 0.7.0-2 - QXdgDesktopFileDialog: backport upstream fixes * Thu Dec 17 2020 Jan Grulich - 0.7.0-1 - 0.7.0 * Fri Nov 27 10:56:10 CET 2020 Jan Grulich - 0.6.90-3 - rebuild (qt5) for eln * Mon Nov 23 07:54:44 CET 2020 Jan Grulich - 0.6.90-2 - rebuild (qt5) * Wed Sep 30 2020 Jan Grulich - 0.6.90-1 - 0.6.90 * Fri Sep 11 2020 Jan Grulich - 0.6.1-3 - rebuild (qt5) * Wed Jul 29 2020 Fedora Release Engineering - 0.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 11 2020 Jan Grulich - 0.6.1-1 - 0.6.1 * Mon Apr 06 2020 Rex Dieter - 0.6.0-4 - rebuild (qt5) * Thu Jan 30 2020 Fedora Release Engineering - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Dec 09 2019 Jan Grulich - 0.6.0-2 - rebuild (qt5) * Wed Nov 20 2019 Jan Grulich - 0.6.0-1 - Update to 0.6.0 * Fri Oct 04 2019 Jan Grulich - 0.5.90-1 - Update to 0.5.90 * Thu Oct 03 2019 Jan Grulich - 0.5-17 - Link decorations against qtx11extras * Fri Sep 27 2019 Jan Grulich - 0.5-16 - Set XCURSOR_SIZE only on wayland * Fri Sep 27 2019 Jan Grulich - 0.5-15 - Add support for double-click to maximize windows * Wed Sep 25 2019 Jan Grulich - 0.5-14 - rebuild (qt5) * Wed Aug 28 2019 Jan Grulich - 0.5-13 - Fix cursor size on wayland * Thu Aug 15 2019 Jan Grulich - 0.5-12 - Add Gnome-like wayland decorations BUG: bz#1732129 * Fri Jul 26 2019 Fedora Release Engineering - 0.5-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jun 17 2019 Jan Grulich - 0.5-10 - rebuild (qt5) * Wed Jun 05 2019 Rex Dieter - 0.5-9 - rebuild (qt5) * Sun Mar 03 2019 Rex Dieter - 0.5-8 - rebuild (qt5), use %%make_build * Sat Feb 02 2019 Fedora Release Engineering - 0.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Dec 12 2018 Rex Dieter - 0.5-6 - rebuild (qt5) * Wed Dec 05 2018 Jan Grulich - 0.5-1 - Update to 0.5 * Fri Sep 21 2018 Jan Grulich - 0.4-3 - rebuild (qt5) * Fri Aug 24 2018 Rex Dieter - 0.4-2 - rebuild * Tue Jul 24 2018 Jan Grulich - 0.4-1 - Update to 0.4 * Sat Jul 14 2018 Fedora Release Engineering - 0.3-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 20 2018 Rex Dieter - 0.3-11 - rebuild (qt5) * Sun May 27 2018 Rex Dieter - 0.3-10 - rebuild (qt5) * Wed Feb 14 2018 Jan Grulich - 0.3-9 - rebuild (qt5) * Fri Feb 09 2018 Fedora Release Engineering - 0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Dec 20 2017 Jan Grulich - 0.3-7 - rebuild (qt5) * Sun Nov 26 2017 Rex Dieter - 0.3-6 - rebuild (qt5) * Mon Oct 09 2017 Rex Dieter - 0.3-5 - rebuild (qt5) * Thu Aug 03 2017 Fedora Release Engineering - 0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jul 19 2017 Rex Dieter - 0.3-2 - rebuild (qt5) * Mon May 08 2017 Rex Dieter - 0.3-1 - Update to 0.3 * Mon May 08 2017 Rex Dieter - 0.2-17.20170206git - rebuild (Qt 5.9) * Fri Mar 31 2017 Rex Dieter - 0.2-16.20170206git - fresh 20170206 snapshot (#1438024) * Thu Mar 30 2017 Rex Dieter - 0.2-15.20161205git - rebuild (Qt 5.8) * Sat Feb 11 2017 Fedora Release Engineering - 0.2-14.20161205git - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jan 02 2017 Jan Grulich - 0.2-13.20161205git - Fix crash in font dialog (bz#1378003) * Thu Dec 15 2016 Rex Dieter - 0.2-12.20161024git - rebuild (qt5) * Thu Nov 17 2016 Rex Dieter 0.2-11.20161024git - release++ * Thu Nov 17 2016 Rex Dieter 0.2-10.20161024git.2 - branch rebuild (qt5) * Mon Oct 24 2016 Jan Grulich - 0.2-10.20161024git - Fix Gtk3 dialogs on wayland * Mon Jul 18 2016 Jan Grulich - 0.2-9.20160718git - Fix not working dialogs * Sun Jul 17 2016 Rex Dieter 0.2-8.20160621git - rebuild (qt5-qtbase) * Wed Jul 13 2016 Jan Grulich - 0.2-7.20160621git - Remove runtime dependency on GDM * Wed Jun 29 2016 Rex Dieter 0.2-6.20160621git - rebuild (qt5) * Tue Jun 21 2016 Jan Grulich - 0.2-5.20160621git - Don't fallback to gtk+ style * Fri Jun 10 2016 Rex Dieter - 0.2-4.20160531git - arch'd adwaita-qt5 runtime dep - use system %%_qt5_version macro, instead of by-hand one here - BR: qt5-qtbase-private-devel (helps track hard qt5-qtbase runtime dep) * Fri Jun 10 2016 Jan Grulich - 0.2-3.20160531git - rebuild (qt5-qtbase) * Mon Jun 06 2016 Jan Grulich - 0.2-2.20160531git - Add runtime dependency on adwaita-qt5 (bz#1332103) * Tue May 31 2016 Jan Grulich - 0.2-1.20160531git - Update to latest git snapshot * Wed Apr 20 2016 Jan Grulich - 0.1-5 - Pull in upstream changes * Wed Mar 16 2016 Jan Grulich - 0.1-4 - Improve font size * Thu Feb 25 2016 Jan Grulich - 0.1-3 - Revert usage of qgnomeplatform.env in GDM * Thu Feb 25 2016 Jan Grulich - 0.1-2 - Install qgnomeplatform.env to gdm to automatically use it after we log in * Tue Feb 16 2016 Jan Grulich - 0.1-1 - First version