Name: df-wayqt Version: 0.3.0_96feb10c Release: 1%{?dist} Summary: Qt6-based Wayland library for Desktop Frameworks License: GPLv3 URL: https://gitlab.com/desktop-frameworks/wayqt Source0: wayqt-v%{version}.tar.gz # 引入针对 v0.3.0 源码修正的补丁 Patch0: df-wayqt-%{version}-fedora-paths.patch # 构建依赖 BuildRequires: meson BuildRequires: ninja-build BuildRequires: gcc-c++ # 根据 README:Qt6 (Core, WaylandClient) BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtwayland-devel BuildRequires: qt6-qtbase-private-devel BuildRequires: qt6-qttools-devel # 根据 README:Wayland (Client) 和 wayland-protocols BuildRequires: wayland-devel BuildRequires: wayland-protocols-devel BuildRequires: pkgconfig(Qt6Core) # 关键修复:添加缺失的图像处理库依赖 BuildRequires: pkgconfig(libpng) %description A Qt6-based helper library for Wayland, used by the Desktop Frameworks. It provides convenient wrappers for Wayland client protocols. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} # 这里的依赖也需要链式指向 df-utils-devel Requires: df-utils-devel%{?_isa} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep # 确保解压目录名与 tar 包一致 %autosetup -n wayqt-v%{version} -p0 # 方式1:标准方式 #%1setup -q -n wayqt-v%{version} #%1patch 0 -p0 %build %meson %meson_build %install %meson_install %files %{_libdir}/*.so* %files devel # 头文件通常会安装到 DFL 目录下 %{_includedir}/DFL/DF6/wayqt %{_libdir}/pkgconfig/*.pc %changelog * Sun Jan 04 2026 yoayo lll - 0.3.0-1 - Initial build for Fedora 43