# SPDX-License-Identifier: MIT # ============================================================================= # Version definitions # ============================================================================= %global guiutils_version 0.2.1 %global hyprland_min_ver 0.54.2 %global hyprwayland_scanner_ver 0.4.5 %global hyprutils_ver 0.11.0 %global hyprlang_ver 0.6.8 %global hyprgraphics_ver 0.5.0 %global aquamarine_ver 0.10.0 %global hyprtoolkit_ver 0.5.3 Name: hyprland-guiutils Version: %{guiutils_version} Release: 1%{?dist} Summary: GUI utility apps for Hyprland (dialog, welcome, run launcher) License: BSD-3-Clause URL: https://github.com/hyprwm/hyprland-guiutils # Main source Source0: https://github.com/hyprwm/hyprland-guiutils/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz # Vendored Hyprland libs Source10: https://github.com/hyprwm/hyprwayland-scanner/archive/refs/tags/v%{hyprwayland_scanner_ver}.tar.gz#/hyprwayland-scanner-%{hyprwayland_scanner_ver}.tar.gz Source11: https://github.com/hyprwm/hyprutils/archive/refs/tags/v%{hyprutils_ver}.tar.gz#/hyprutils-%{hyprutils_ver}.tar.gz Source12: https://github.com/hyprwm/hyprlang/archive/refs/tags/v%{hyprlang_ver}.tar.gz#/hyprlang-%{hyprlang_ver}.tar.gz Source13: https://github.com/hyprwm/hyprgraphics/archive/refs/tags/v%{hyprgraphics_ver}.tar.gz#/hyprgraphics-%{hyprgraphics_ver}.tar.gz Source14: https://github.com/hyprwm/aquamarine/archive/refs/tags/v%{aquamarine_ver}.tar.gz#/aquamarine-%{aquamarine_ver}.tar.gz Source15: https://github.com/hyprwm/hyprtoolkit/archive/refs/tags/v%{hyprtoolkit_ver}.tar.gz#/hyprtoolkit-%{hyprtoolkit_ver}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconf-pkg-config BuildRequires: cairo-devel BuildRequires: file-devel BuildRequires: hwdata BuildRequires: iniparser-devel BuildRequires: libdisplay-info-devel BuildRequires: libdrm-devel BuildRequires: libglvnd-devel BuildRequires: libglvnd-gles BuildRequires: libinput-devel BuildRequires: libjpeg-turbo-devel BuildRequires: libliftoff-devel BuildRequires: libpng-devel BuildRequires: librsvg2-devel BuildRequires: libseat-devel BuildRequires: libspng-devel BuildRequires: libwebp-devel BuildRequires: libxkbcommon-devel BuildRequires: mesa-libgbm-devel BuildRequires: systemd-devel BuildRequires: pango-devel BuildRequires: pixman-devel BuildRequires: pugixml-devel BuildRequires: SDL2-devel BuildRequires: wayland-devel BuildRequires: wayland-protocols-devel Requires: hyprland >= %{hyprland_min_ver} # hyprland-qtutils installs the same binaries and is superseded upstream Conflicts: hyprland-qtutils %description hyprland-guiutils provides GUI utility applications for the Hyprland compositor: hyprland-dialog (crash recovery and system dialogs), hyprland-welcome (welcome screen), hyprland-run (application launcher), hyprland-donate-screen, and hyprland-update-screen. This is the C++ successor to hyprland-qtutils. It uses vendored Hyprland libraries installed by the hyprland package at /usr/libexec/hyprland/vendor/. %prep %autosetup -n %{name}-%{version} # Unpack vendored deps tar -xzf %{SOURCE10} tar -xzf %{SOURCE11} tar -xzf %{SOURCE12} tar -xzf %{SOURCE13} tar -xzf %{SOURCE14} tar -xzf %{SOURCE15} %build VENDOR_PREFIX="$(pwd)/vendor" export PKG_CONFIG_PATH="$VENDOR_PREFIX/lib64/pkgconfig:$VENDOR_PREFIX/lib/pkgconfig:%{_libdir}/pkgconfig:%{_datadir}/pkgconfig" export CMAKE_PREFIX_PATH="$VENDOR_PREFIX" GCC15_CXXFLAGS="%{optflags} -fpermissive" # OpenGL/EGL hints for libglvnd on Fedora export OPENGL_opengl_LIBRARY=%{_libdir}/libOpenGL.so export OPENGL_gles3_LIBRARY=%{_libdir}/libGLESv2.so export OPENGL_GLES3_INCLUDE_DIR=/usr/include export OPENGL_egl_LIBRARY=%{_libdir}/libEGL.so export OPENGL_EGL_INCLUDE_DIR=/usr/include export OPENGL_INCLUDE_DIR=/usr/include # 1) hyprwayland-scanner (build tool) pushd hyprwayland-scanner-%{hyprwayland_scanner_ver} cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$VENDOR_PREFIX" \ -DCMAKE_INSTALL_LIBDIR=lib64 cmake --build build --parallel %{_smp_build_ncpus} cmake --install build popd # 2) hyprutils pushd hyprutils-%{hyprutils_ver} cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$VENDOR_PREFIX" \ -DCMAKE_PREFIX_PATH="$VENDOR_PREFIX" -DCMAKE_INSTALL_LIBDIR=lib64 cmake --build build --parallel %{_smp_build_ncpus} cmake --install build popd # 3) hyprlang pushd hyprlang-%{hyprlang_ver} cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$VENDOR_PREFIX" \ -DCMAKE_PREFIX_PATH="$VENDOR_PREFIX" -DCMAKE_INSTALL_LIBDIR=lib64 cmake --build build --parallel %{_smp_build_ncpus} cmake --install build popd # 4) hyprgraphics pushd hyprgraphics-%{hyprgraphics_ver} cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$VENDOR_PREFIX" \ -DCMAKE_PREFIX_PATH="$VENDOR_PREFIX" -DCMAKE_INSTALL_LIBDIR=lib64 cmake --build build --parallel %{_smp_build_ncpus} cmake --install build popd # hwdata has no .pc file — synthesize one so aquamarine's cmake can find it mkdir -p "$(pwd)/pkgconfig" HWDATA_VERSION=$(rpm -q --qf '%{VERSION}' hwdata 2>/dev/null || echo "0.385") cat > "$(pwd)/pkgconfig/hwdata.pc" << 'EOF_HWDATA' prefix=/usr datarootdir=${prefix}/share pkgdatadir=${datarootdir}/hwdata Name: hwdata Description: Hardware identification databases Version: HWDATA_VERSION_PLACEHOLDER EOF_HWDATA sed -i "s/HWDATA_VERSION_PLACEHOLDER/$HWDATA_VERSION/" "$(pwd)/pkgconfig/hwdata.pc" export PKG_CONFIG_PATH="$VENDOR_PREFIX/lib64/pkgconfig:$VENDOR_PREFIX/lib/pkgconfig:$(pwd)/pkgconfig:%{_libdir}/pkgconfig:%{_datadir}/pkgconfig" # 5) aquamarine pushd aquamarine-%{aquamarine_ver} cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$VENDOR_PREFIX" \ -DCMAKE_PREFIX_PATH="$VENDOR_PREFIX" -DCMAKE_INSTALL_LIBDIR=lib64 \ -Dhyprwayland-scanner_DIR="$VENDOR_PREFIX/lib64/cmake/hyprwayland-scanner" \ -DCMAKE_CXX_FLAGS="$GCC15_CXXFLAGS" \ -DOpenGL_GL_PREFERENCE=GLVND \ -DOPENGL_opengl_LIBRARY=%{_libdir}/libOpenGL.so \ -DOPENGL_gles3_LIBRARY=%{_libdir}/libGLESv2.so \ -DOPENGL_GLES3_INCLUDE_DIR=/usr/include \ -DOPENGL_egl_LIBRARY=%{_libdir}/libEGL.so \ -DOPENGL_EGL_INCLUDE_DIR=/usr/include \ -DOPENGL_INCLUDE_DIR=/usr/include cmake --build build --parallel %{_smp_build_ncpus} cmake --install build popd # 6) hyprtoolkit pushd hyprtoolkit-%{hyprtoolkit_ver} cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$VENDOR_PREFIX" \ -DCMAKE_PREFIX_PATH="$VENDOR_PREFIX" -DCMAKE_INSTALL_LIBDIR=lib64 cmake --build build --parallel %{_smp_build_ncpus} cmake --install build popd # 7) hyprland-guiutils # rpath-link resolves hyprtoolkit's transitive vendor deps at link time export LDFLAGS="${LDFLAGS:+$LDFLAGS }-Wl,-rpath-link,$VENDOR_PREFIX/lib64" VENDOR_RPATH='%{_libexecdir}/hyprland/vendor/lib64:%{_libexecdir}/hyprland/vendor/lib' cmake -B build \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_PREFIX_PATH="$VENDOR_PREFIX" \ -DCMAKE_CXX_FLAGS="$GCC15_CXXFLAGS" \ -DCMAKE_INSTALL_RPATH="$VENDOR_RPATH" \ -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON cmake --build build --parallel %{_smp_build_ncpus} %install DESTDIR=%{buildroot} cmake --install build %files %license LICENSE %doc README.md %{_bindir}/hyprland-dialog %{_bindir}/hyprland-donate-screen %{_bindir}/hyprland-run %{_bindir}/hyprland-update-screen %{_bindir}/hyprland-welcome %changelog * Wed Mar 18 2026 Automated Build - 0.2.1-1 - Update to hyprland-guiutils 0.2.1 * Wed Mar 18 2026 Automated Build - 0.2.1-1 - Update to hyprland-guiutils 0.2.1 * Wed Mar 18 2026 Automated Build - 0.2.1-1 - Update to hyprland-guiutils 0.2.1 * Wed Mar 18 2026 Automated Build - 0.2.1-1 - Update to hyprland-guiutils 0.2.1 * Wed Mar 18 2026 Automated Build - 0.2.1-1 - Initial package for jwpkg/Hyprland-Fedora COPR