Name: nvidia-container-toolkit Version: %{version} Release: %{release} Group: Development Tools Vendor: NVIDIA CORPORATION Packager: NVIDIA CORPORATION Summary: NVIDIA container runtime hook URL: https://github.com/NVIDIA/nvidia-container-runtime License: Apache-2.0 Source0: nvidia-container-toolkit Source1: nvidia-container-runtime Source2: nvidia-ctk Source3: config.toml Source4: oci-nvidia-hook Source5: oci-nvidia-hook.json Source6: LICENSE Obsoletes: nvidia-container-runtime <= 3.5.0-1, nvidia-container-runtime-hook Provides: nvidia-container-runtime Provides: nvidia-container-runtime-hook Requires: libnvidia-container-tools >= %{libnvidia_container_version}, libnvidia-container-tools < 2.0.0 %if 0%{?suse_version} Requires: libseccomp2 Requires: libapparmor1 %else Requires: libseccomp %endif %description Provides a OCI hook to enable GPU support in containers. %prep cp %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} . %install mkdir -p %{buildroot}%{_bindir} install -m 755 -t %{buildroot}%{_bindir} nvidia-container-toolkit install -m 755 -t %{buildroot}%{_bindir} nvidia-container-runtime install -m 755 -t %{buildroot}%{_bindir} nvidia-ctk mkdir -p %{buildroot}/etc/nvidia-container-runtime install -m 644 -t %{buildroot}/etc/nvidia-container-runtime config.toml mkdir -p %{buildroot}/usr/libexec/oci/hooks.d install -m 755 -t %{buildroot}/usr/libexec/oci/hooks.d oci-nvidia-hook mkdir -p %{buildroot}/usr/share/containers/oci/hooks.d install -m 644 -t %{buildroot}/usr/share/containers/oci/hooks.d oci-nvidia-hook.json %posttrans ln -sf %{_bindir}/nvidia-container-toolkit %{_bindir}/nvidia-container-runtime-hook %postun rm -f %{_bindir}/nvidia-container-runtime-hook %files %license LICENSE %{_bindir}/nvidia-container-toolkit %{_bindir}/nvidia-container-runtime %{_bindir}/nvidia-ctk %config /etc/nvidia-container-runtime/config.toml /usr/libexec/oci/hooks.d/oci-nvidia-hook /usr/share/containers/oci/hooks.d/oci-nvidia-hook.json %changelog # As of 1.10.0-1 we generate the release information automatically * %{release_date} NVIDIA CORPORATION %{version}-%{release} - See https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/blob/%{git_commit}/CHANGELOG.md - Bump libnvidia-container dependency to libnvidia-container-tools >= %{libnvidia_container_version}