%global pkgname seer %if 0%{?rhel} == 9 && 0%{?epel} %global debug_package %{nil} %endif Name: %{pkgname} Version: 2.5 Release: 1%{dist} Summary: A modern GDB frontend License: GPL-3.0-or-later URL: https://github.com/epasveer/seer Source0: %{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ %if 0%{?amzn} == 2023 BuildRequires: gcc14 BuildRequires: gcc14-c++ %global toolchain gcc14 %endif BuildRequires: cmake >= 3.5 BuildRequires: gdb BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtcharts-devel BuildRequires: qt6-qtsvg-devel %description Seer is a modern GDB frontend that provides a graphical user interface for debugging C++ and other languages. It aims to offer a user-friendly and feature-rich experience. %prep %setup -q %build %cmake -S src -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=Release \ -DQT_VERSION=QT6 %cmake_build %install %cmake_install # Install the existing desktop file from the source. install -Dm0644 src/resources/seergdb.desktop %{buildroot}%{_datadir}/applications/%{pkgname}.desktop # Install a relevant icon from the source. install -Dm0644 src/resources/thenounproject/fortune-teller.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{pkgname}.svg %files %license LICENSE %{_bindir}/seergdb %{_datadir}/applications/%{pkgname}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{pkgname}.svg %changelog * Wed Aug 20 2025 Yonghang Wang - 2.5-1 - Initial build