%global pkgname seer %if 0%{?rhel} == 9 && 0%{?epel} %global debug_package %{nil} %endif Name: %{pkgname} Version: 2.5 Release: %autorelease Summary: A modern GDB front-end License: GPL-3.0-or-later URL: https://github.com/epasveer/seer Source0: https://github.com/epasveer/seer/archive/refs/tags/v%{version}.tar.gz Source1: seergdb.1 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 BuildRequires: desktop-file-utils Requires: gdb Requires: hicolor-icon-theme %description Seer is a modern GDB front-end. %prep %setup -q %build %cmake -S src -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_SBINDIR=%{_bindir} \ -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 # Install minimum man page install -Dm0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/seergdb.1 %files %license LICENSE %{_bindir}/seergdb %{_datadir}/applications/%{pkgname}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{pkgname}.svg %{_mandir}/man1/seergdb.1* %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %changelog * Wed Aug 20 2025 Yonghang Wang - 2.5-1 - Initial build