mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-05 03:12:18 +00:00
45 lines
1.3 KiB
RPMSpec
45 lines
1.3 KiB
RPMSpec
%global real_name cuda_ctadvisor
|
|
|
|
%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.2.78
|
|
Release: 1%{?dist}
|
|
Summary: CUDA ctadvisor
|
|
License: CUDA Toolkit
|
|
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
|
|
|
|
Conflicts: %{name}-%{major_package_version} < %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
%description
|
|
CUDA ctadvisor is a tool that analyzes trace files generated by NVCC and NVRTC,
|
|
and emits advices to reduce compilation time.
|
|
|
|
%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
|
|
|
|
%install
|
|
install -p -m 0755 -D bin/ctadvisor %{buildroot}%{_bindir}/ctadvisor
|
|
|
|
%files
|
|
%license LICENSE
|
|
%{_bindir}/ctadvisor
|
|
|
|
%changelog
|
|
%autochangelog
|