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: BSD Source0: nvidia-container-toolkit Source1: config.toml Source2: oci-nvidia-hook Source3: oci-nvidia-hook.json Source4: LICENSE Obsoletes: nvidia-container-runtime < 2.0.0, nvidia-container-runtime-hook Provides: nvidia-container-runtime-hook Requires: libnvidia-container-tools >= 1.1.1, libnvidia-container-tools < 2.0.0 %description Provides a OCI hook to enable GPU support in containers. %prep cp %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} . %install mkdir -p %{buildroot}%{_bindir} install -m 755 -t %{buildroot}%{_bindir} nvidia-container-toolkit 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 /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 * Tue May 19 2020 NVIDIA CORPORATION 1.1.1-1 - d202aded Update dependence to libnvidia-container 1.1.1 * Fri May 15 2020 NVIDIA CORPORATION 1.1.0-1 - 4e4de762 Update build system to support multi-arch builds - fcc1d116 Add support for MIG (Multi-Instance GPUs) - d4ff0416 Add ability to merge envars of the form NVIDIA_VISIBLE_DEVICES_* - 60f165ad Add no-pivot option to toolkit