Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
No build reason found for pool-leap-15.3:s390x
home:MaxxedSUSE:leap
nvidia-container-toolkit
nvidia-container-toolkit.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nvidia-container-toolkit.spec of Package nvidia-container-toolkit
# # spec file for package nvidia-container-toolkit # # Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define project github.com/NVIDIA/nvidia-container-toolkit Name: nvidia-container-toolkit Version: 1.11.0 Release: 0 Summary: NVIDIA Container Toolkit License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/NVIDIA/nvidia-container-toolkit Source0: nvidia-container-toolkit-%{version}.tar.gz Source1: vendor.tar.gz BuildRequires: libcontainers-common BuildRequires: go-go-md2man BuildRequires: golang(API) >= 1.16 BuildRequires: golang-packaging Requires: libnvidia-container-tools Provides: nvidia-container-runtime = %version Obsoletes: nvidia-container-runtime < %version %{go_nostrip} %{go_provides} %description Build and run containers leveraging NVIDIA GPUs. %prep %setup -q -a1 %build %{goprep} github.com/NVIDIA/nvidia-container-toolkit export GOPATH=$HOME/go mkdir -pv $HOME/go/src/%{project} rm -rf $HOME/go/src/%{project}/* cp -avr * $HOME/go/src/%{project} cd $HOME/go/src/%{project} go build -v -ldflags "-s -w" \ -o bin/nvidia-ctk \ ./cmd/nvidia-ctk go build -v -ldflags "-s -w" \ -o bin/nvidia-container-runtime-hook \ ./cmd/nvidia-container-runtime-hook go build -v -ldflags "-s -w" \ -o bin/nvidia-container-runtime \ ./cmd/nvidia-container-runtime %install install -D -m 0755 $HOME/go/src/%{project}/bin/nvidia-ctk %{buildroot}/%{_bindir}/nvidia-ctk install -D -m 0644 oci-nvidia-hook.json %{buildroot}/usr/share/containers/oci/hooks.d/oci-nvidia-hook.json install -D -m 0644 config/config.toml.opensuse-leap %{buildroot}/etc/nvidia-container-runtime/config.toml install -D -m 0755 $HOME/go/src/%{project}/bin/nvidia-container-runtime-hook %{buildroot}/%{_bindir}/nvidia-container-runtime-hook install -D -m 0755 $HOME/go/src/%{project}/bin/nvidia-container-runtime %{buildroot}/%{_bindir}/nvidia-container-runtime %files %license LICENSE %{_bindir}/nvidia-ctk %{_bindir}/nvidia-container-runtime %{_bindir}/nvidia-container-runtime-hook /usr/share/containers/oci/hooks.d/oci-nvidia-hook.json /etc/nvidia-container-runtime %config(noreplace) /etc/nvidia-container-runtime/config.toml %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor