%global commit 8d79992d37764b6e487b7e7a16c83eab6f4b69ee %global shortcommit %(c=%{commit}; echo ${c:0:8}) %global snapdate 20261202 Name: cutefish-qt-plugins Version: 1.0 Release: 0.1.%{snapdate}git%{shortcommit}%{?dist} Summary: Qt 6 platform theme and plugins that make Qt apps follow Cutefish License: BSD-3-Clause URL: https://github.com/cutefishos/qt-plugins Source0: %{url}/archive/%{commit}/qt-plugins-%{commit}.tar.gz BuildRequires: perl-interpreter BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: pkgconfig BuildRequires: git BuildRequires: python3 BuildRequires: gettext BuildRequires: clang BuildRequires: curl BuildRequires: gtk-update-icon-cache BuildRequires: systemd-rpm-macros BuildRequires: /usr/bin/dbus-run-session BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-server) BuildRequires: pkgconfig(wayland-egl) BuildRequires: pkgconfig(wayland-scanner) BuildRequires: pkgconfig(wayland-protocols) >= 1.39 BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(glesv2) BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(harfbuzz) BuildRequires: pkgconfig(icu-uc) BuildRequires: pkgconfig(icu-i18n) BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(libwebp) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(libheif) BuildRequires: pkgconfig(libjxl) BuildRequires: pkgconfig(libjxl_threads) BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtbase-private-devel BuildRequires: qt6-qtdeclarative-devel BuildRequires: qt6-qtdeclarative-private-devel BuildRequires: pkgconfig(librsvg-2.0) BuildRequires: cutefish-toolkit-devel BuildRequires: cutefish-framework-devel %description Qt 6 platform theme and plugins that make Qt apps follow Cutefish. Built from the cutefishos/qt-plugins repository (snapshot of commit %{shortcommit}). %prep %autosetup -n qt-plugins-%{commit} # Qt 6.10 dropped the QWindow* argument of handleThemeChange(); the no-argument call works on older Qt too perl -0pi -e 's/for \(auto \*window : qGuiApp->allWindows\(\)\) \{\s*QWindowSystemInterface::handleThemeChange\(window\);\s*\}/QWindowSystemInterface::handleThemeChange();/' platformtheme/platformtheme.cpp grep -q 'handleThemeChange(window)' platformtheme/platformtheme.cpp && exit 1 || true %build %cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF %cmake_build %install %cmake_install find %{buildroot} \( -type f -o -type l \) -printf '/%%P\n' | sort > files.list cp files.list main.list %files -f main.list %license LICENSE %changelog * Wed Dec 02 2026 Packager - 1.0-0.1.%{snapdate}git%{shortcommit} - Initial COPR snapshot of %{commit}