mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-05 19:32:18 +00:00
61 lines
2.1 KiB
RPMSpec
61 lines
2.1 KiB
RPMSpec
%global real_name cuda_gdb
|
|
%global debug_package %{nil}
|
|
%global __strip /bin/true
|
|
%global _missing_build_ids_terminate_build 0
|
|
%global _build_id_links none
|
|
%global major_package_version 13-0
|
|
|
|
Name: %(echo %real_name | tr '_' '-')
|
|
Epoch: 1
|
|
Version: 13.1.115
|
|
Release: 1%?dist
|
|
Summary: CUDA GDB
|
|
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL
|
|
URL: https://developer.nvidia.com/cuda-toolkit
|
|
ExclusiveArch: x86_64 aarch64
|
|
|
|
Source0: https://developer.download.nvidia.com/compute/cuda/redist/%{real_name}/linux-x86_64/%{real_name}-linux-x86_64-%{version}-archive.tar.xz
|
|
Source1: https://developer.download.nvidia.com/compute/cuda/redist/%{real_name}/linux-sbsa/%{real_name}-linux-sbsa-%{version}-archive.tar.xz
|
|
|
|
BuildRequires: chrpath
|
|
Requires: gdb
|
|
Conflicts: %{name}-%{major_package_version} < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
%description
|
|
CUDA-GDB is the NVIDIA tool for debugging CUDA applications. It's an extension
|
|
to GDB, the GNU Project debugger. The tool provides developers with a mechanism
|
|
for debugging CUDA applications running on actual hardware. This enables
|
|
developers to debug applications without the potential variations introduced by
|
|
simulation and emulation environments.
|
|
|
|
%prep
|
|
%ifarch x86_64
|
|
%setup -q -n %{real_name}-linux-x86_64-%{version}-archive
|
|
%endif
|
|
|
|
%ifarch aarch64
|
|
%setup -q -T -b 1 -n %{real_name}-linux-sbsa-%{version}-archive
|
|
%endif
|
|
|
|
chrpath -d bin/cuda-gdb-minimal
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
install -p -m 0755 -D bin/cuda-gdb-minimal %{buildroot}%{_bindir}/cuda-gdb
|
|
install -p -m 0755 -D bin/cuda-gdbserver %{buildroot}%{_bindir}/cuda-gdbserver
|
|
cp -f extras/Debugger/include/* %{buildroot}%{_includedir}/
|
|
|
|
%files
|
|
%license LICENSE
|
|
%{_bindir}/cuda-gdb
|
|
%{_bindir}/cuda-gdbserver
|
|
%{_includedir}/cudacoredump.h
|
|
%{_includedir}/cudadebugger.h
|
|
%{_includedir}/cuda_stdint.h
|
|
|
|
%changelog
|
|
%autochangelog
|