# # Copyright Fedora Project Authors. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN # THE SOFTWARE. # %global upstreamname ROCgdb %global rocm_release 7.2 %global rocm_patch 4 %global rocm_version %{rocm_release}.%{rocm_patch} %global toolchain clang Name: rocgdb Version: %{rocm_version} Release: 1%{?dist} Summary: The ROCm source-level debugger for Linux, based on GDB # copied from gdb License: GPL-3.0-or-later AND BSD-3-Clause AND FSFAP AND LGPL-2.1-or-later AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain AND GFDL-1.3-or-later AND LGPL-2.0-or-later WITH GCC-exception-2.0 AND GPL-3.0-or-later WITH GCC-exception-3.1 AND GPL-2.0-or-later WITH GNU-compiler-exception AND MIT URL: https://github.com/ROCm/%{upstreamname} Source0: %{url}/archive/rocm-%{version}.tar.gz#/%{upstreamname}-%{version}.tar.gz ExclusiveArch: x86_64 BuildRequires: binutils BuildRequires: bison BuildRequires: expat-devel BuildRequires: flex BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gettext BuildRequires: gmp-devel BuildRequires: libquadmath BuildRequires: mpfr-devel BuildRequires: ncurses-devel BuildRequires: readline-devel BuildRequires: rocdbgapi-devel BuildRequires: xz-devel BuildRequires: zlib-devel BuildRequires: hipcc BuildRequires: rocm-compilersupport-macros %description %{summary}. %package doc Summary: Documentation ${name} %description doc %{summary}. %prep %setup -q -n %{upstreamname}-rocm-%{version} %build mkdir build cd build export CC=%{rocmllvm_bindir}/amdclang export CXX=%{rocmllvm_bindir}/amdclang++ ../configure \ --disable-binutils \ --disable-gas \ --disable-gdbserver \ --disable-gdbtk \ --disable-gprof \ --disable-gprofng \ --disable-ld \ --disable-shared \ --disable-sim \ --disable-tui \ --enable-64-bit-bfd \ --enable-targets="x86_64-pc-linux-gnu,amdgcn-amd-amdhsa" \ --prefix=%{_prefix} \ --program-prefix=roc \ --with-expat \ --with-lzma \ --with-system-readline \ --with-system-zlib \ --without-babeltrace \ --without-guile \ --without-python %make_build MAKEINFO=true %install cd build %make_install MAKEINFO=true # No devel package rm -rf %{buildroot}/%{_prefix}/{include,lib} # No conflicting docs rm -rf %{buildroot}/%{_datadir}/{gdb,info,locale} %files %doc README README-ROCM.md %license COPYING3 COPYING COPYING.LIB COPYING3.LIB %{_bindir}/roc* %files doc %{_datarootdir}/* %changelog * Mon Jun 15 2026 Tom Rix - Initial package