2019-10-22 21:36:22 +00:00
|
|
|
Name: nvidia-container-toolkit
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
|
|
|
Group: Development Tools
|
|
|
|
|
|
|
|
Vendor: NVIDIA CORPORATION
|
|
|
|
Packager: NVIDIA CORPORATION <cudatools@nvidia.com>
|
|
|
|
|
2022-07-08 10:05:12 +00:00
|
|
|
Summary: NVIDIA Container Toolkit
|
|
|
|
URL: https://github.com/NVIDIA/nvidia-container-toolkit
|
2020-06-09 03:03:19 +00:00
|
|
|
License: Apache-2.0
|
2019-10-22 21:36:22 +00:00
|
|
|
|
2021-09-06 10:22:04 +00:00
|
|
|
Source0: nvidia-container-runtime-hook
|
2021-09-06 11:51:39 +00:00
|
|
|
Source1: nvidia-container-runtime
|
2022-04-06 18:53:51 +00:00
|
|
|
Source2: nvidia-ctk
|
|
|
|
Source3: config.toml
|
|
|
|
Source4: oci-nvidia-hook
|
|
|
|
Source5: oci-nvidia-hook.json
|
|
|
|
Source6: LICENSE
|
2021-09-06 11:51:39 +00:00
|
|
|
|
2021-09-23 12:32:54 +00:00
|
|
|
Obsoletes: nvidia-container-runtime <= 3.5.0-1, nvidia-container-runtime-hook
|
2021-09-06 11:51:39 +00:00
|
|
|
Provides: nvidia-container-runtime
|
2019-10-22 21:36:22 +00:00
|
|
|
Provides: nvidia-container-runtime-hook
|
2022-06-13 13:41:35 +00:00
|
|
|
Requires: libnvidia-container-tools >= %{libnvidia_container_tools_version}, libnvidia-container-tools < 2.0.0
|
2019-10-22 21:36:22 +00:00
|
|
|
|
2021-09-06 11:51:39 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
Requires: libseccomp2
|
|
|
|
Requires: libapparmor1
|
|
|
|
%else
|
|
|
|
Requires: libseccomp
|
|
|
|
%endif
|
|
|
|
|
2019-10-22 21:36:22 +00:00
|
|
|
%description
|
2022-07-08 10:05:12 +00:00
|
|
|
Provides tools and utilities to enable GPU support in containers.
|
2019-10-22 21:36:22 +00:00
|
|
|
|
|
|
|
%prep
|
2022-04-06 18:53:51 +00:00
|
|
|
cp %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} .
|
2019-10-22 21:36:22 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
2021-09-06 10:22:04 +00:00
|
|
|
install -m 755 -t %{buildroot}%{_bindir} nvidia-container-runtime-hook
|
2021-09-06 11:51:39 +00:00
|
|
|
install -m 755 -t %{buildroot}%{_bindir} nvidia-container-runtime
|
2022-04-06 18:53:51 +00:00
|
|
|
install -m 755 -t %{buildroot}%{_bindir} nvidia-ctk
|
2019-10-22 21:36:22 +00:00
|
|
|
|
|
|
|
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
|
2021-09-06 10:22:04 +00:00
|
|
|
ln -sf %{_bindir}/nvidia-container-runtime-hook %{_bindir}/nvidia-container-toolkit
|
2019-10-22 21:36:22 +00:00
|
|
|
|
|
|
|
%postun
|
2021-09-06 10:22:04 +00:00
|
|
|
rm -f %{_bindir}/nvidia-container-runtime-toolkit
|
2019-10-22 21:36:22 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
2021-09-06 10:22:04 +00:00
|
|
|
%{_bindir}/nvidia-container-runtime-hook
|
2021-09-06 11:51:39 +00:00
|
|
|
%{_bindir}/nvidia-container-runtime
|
2022-04-06 18:53:51 +00:00
|
|
|
%{_bindir}/nvidia-ctk
|
2020-07-22 13:38:40 +00:00
|
|
|
%config /etc/nvidia-container-runtime/config.toml
|
2019-10-22 21:36:22 +00:00
|
|
|
/usr/libexec/oci/hooks.d/oci-nvidia-hook
|
|
|
|
/usr/share/containers/oci/hooks.d/oci-nvidia-hook.json
|
|
|
|
|
|
|
|
%changelog
|
2022-05-18 11:54:46 +00:00
|
|
|
# As of 1.10.0-1 we generate the release information automatically
|
|
|
|
* %{release_date} NVIDIA CORPORATION <cudatools@nvidia.com> %{version}-%{release}
|
2022-05-18 13:16:32 +00:00
|
|
|
- See https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/blob/%{git_commit}/CHANGELOG.md
|
2022-06-13 13:41:35 +00:00
|
|
|
- Bump libnvidia-container dependency to libnvidia-container-tools >= %{libnvidia_container_tools_version}
|