%global debug_package %{nil} Name: omasnap Version: 1.21.0 Release: 3%{?dist} Summary: Wayland screenshot and annotation overlay for Hyprland License: MIT AND OFL-1.1 AND ISC URL: https://github.com/omacom/omasnap Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: ninja-build BuildRequires: gcc-c++ BuildRequires: pkgconf-pkg-config BuildRequires: qt6-qtbase-devel BuildRequires: layer-shell-qt-devel BuildRequires: wayland-devel BuildRequires: wayland-protocols-devel BuildRequires: tesseract BuildRequires: tesseract-langpack-eng BuildRequires: google-noto-sans-fonts Requires: hyprland Requires: layer-shell-qt Requires: tesseract Requires: tesseract-langpack-eng Requires: wl-clipboard %description Omasnap captures and annotates screenshots on the Hyprland desktop. %prep %autosetup %build cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_LIBDIR=%{_lib} -DBUILD_TESTING=ON cmake --build build --parallel 4 %install DESTDIR=%{buildroot} cmake --install build %check runtime_dir=$(mktemp -d /dev/shm/omasnap-runtime.XXXXXX) trap 'rm -rf "$runtime_dir"' EXIT sync XDG_RUNTIME_DIR="$runtime_dir" QT_QPA_PLATFORM=offscreen QT_QPA_PLATFORMTHEME= QT_STYLE_OVERRIDE= QT_FORCE_STDERR_LOGGING=1 ctest --test-dir build --output-on-failure %files %license LICENSE %doc README.md %{_bindir}/omasnap %{_datadir}/applications/omasnap.desktop %{_datadir}/licenses/omasnap/*.txt %changelog * Mon Sep 28 2026 kamm3r - 1.21.0-3 - Install the OCR engine, English model, and test font in the buildroot. * Mon Sep 28 2026 kamm3r - 1.21.0-2 - Provide an XDG runtime directory for the smoke test in clean builds. * Mon Sep 28 2026 kamm3r - 1.21.0-1 - Port the upstream Omarchy screenshot overlay to Fedora.