Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:acdc:as_python3_module
libnvidia-container.26522
libnvidia-container.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libnvidia-container.spec of Package libnvidia-container.26522
# # spec file for package libnvidia-container # # 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 sover 1 %define modprobe_version 495.44 Name: libnvidia-container Version: 1.11.0 Release: 0 Summary: NVIDIA container runtime library License: BSD-3-Clause AND Apache-2.0 AND GPL-3.0-or-later AND LGPL-3.0-or-later AND MIT AND GPL-2.0-only # elftoolchain is licensed under BSD-3-Clause # https://github.com/elftoolchain/elftoolchain#copyright-and-license # libnvidia-container is licensed under apache-2.0 # https://github.com/NVIDIA/libnvidia-container/blob/master/LICENSE # libnvidia-container includes the GLPv3 license # https://github.com/NVIDIA/libnvidia-container/blob/master/COPYING # libnvidia-container includes the LGPLv3 license # https://github.com/NVIDIA/libnvidia-container/blob/master/COPYING.LESSER # nvidia-modprobe is licensed under GPLv2 # https://github.com/NVIDIA/nvidia-modprobe/blob/master/COPYING # several nvidia-modprobe files contain the MIT license header # https://github.com/NVIDIA/nvidia-modprobe/blob/master/utils.mk URL: https://github.com/NVIDIA/libnvidia-container Source: libnvidia-container-%{version}.tar.xz Source1: https://github.com/NVIDIA/nvidia-modprobe/archive/%{modprobe_version}.tar.gz#/nvidia-modprobe-%{modprobe_version}.tar.gz Patch1: libnvidia-container-fix-makefile.patch Patch2: no-manual-debuginfo.patch BuildRequires: bmake BuildRequires: curl BuildRequires: distribution-release BuildRequires: git BuildRequires: go-go-md2man BuildRequires: golang(API) >= 1.16 BuildRequires: golang-packaging BuildRequires: groff BuildRequires: libcap-devel BuildRequires: libelf-devel BuildRequires: libseccomp-devel BuildRequires: libtirpc-devel BuildRequires: lsb-release BuildRequires: m4 BuildRequires: rpcgen ExcludeArch: i586 s390x %description The nvidia-container library provides an interface to configure GNU/Linux containers leveraging NVIDIA hardware. The implementation relies on several kernel subsystems and is designed to be agnostic of the container runtime. %package -n %{name}%{sover} Summary: NVIDIA container runtime library %description -n %{name}%{sover} The nvidia-container library provides an interface to configure GNU/Linux containers leveraging NVIDIA hardware. The implementation relies on several kernel subsystems and is designed to be agnostic of the container runtime. This package requires the NVIDIA driver (>= 340.29) to be installed separately. %package devel Summary: NVIDIA container runtime library (development files) Requires: %{name}%{sover} = %{version}-%{release} %description devel The nvidia-container library provides an interface to configure GNU/Linux containers leveraging NVIDIA hardware. The implementation relies on several kernel subsystems and is designed to be agnostic of the container runtime. This package contains the files required to compile programs with the library. %package static Summary: NVIDIA container runtime library (static library) Requires: %{name}-devel = %{version}-%{release} %description static The nvidia-container library provides an interface to configure GNU/Linux containers leveraging NVIDIA hardware. The implementation relies on several kernel subsystems and is designed to be agnostic of the container runtime. This package requires the NVIDIA driver (>= 340.29) to be installed separately. %package tools Summary: NVIDIA container runtime library (command-line tools) Requires: %{name}%{sover} >= %{version}-%{release} %description tools The nvidia-container library provides an interface to configure GNU/Linux containers leveraging NVIDIA hardware. The implementation relies on several kernel subsystems and is designed to be agnostic of the container runtime. This package contains command-line tools that facilitate using the library. %prep %setup -q -T -D -b 0 -a 1 -n libnvidia-container-%{version} %patch1 -p1 %patch2 -p1 %build # META_NOECHO=echo is required to work around a bug in Leap 15's version of bmake, # see also https://github.com/ptt/pttbbs/issues/30 export META_NOECHO="echo" export REVISION=%{version} REVISION=%{version} make distclean # NVIDIA modprobe configuration based on mk/nvidia-modprobe.mk mkdir -p deps/src/nvidia-modprobe-%{modprobe_version} tar -v -C deps/src/nvidia-modprobe-%{modprobe_version} --strip-components=1 -xz nvidia-modprobe-%{modprobe_version}/modprobe-utils -f %{SOURCE1} patch -d deps/src/nvidia-modprobe-%{modprobe_version} -p1 < mk/nvidia-modprobe.patch touch deps/src/nvidia-modprobe-%{modprobe_version}/.download_stamp %make_build REVISION=%{version} WITH_LIBELF=yes %install # META_NOECHO=echo is required to work around a bug in Leap 15's version of bmake, # see also https://github.com/ptt/pttbbs/issues/30 export META_NOECHO="echo" make install DESTDIR=%{buildroot} REVISION=%{version} WITH_LIBELF=yes \ LDCONFIG=/bin/true \ prefix=%{_prefix} \ exec_prefix=%{_exec_prefix} \ bindir=%{_bindir} \ libdir=%{_libdir} \ includedir=%{_includedir} \ docdir=%{_licensedir} # Add the missing link ln -s libnvidia-container.so.%{version} %{buildroot}%{_libdir}/libnvidia-container.so.1 %post -n %{name}%{sover} -p /sbin/ldconfig %postun -n %{name}%{sover} -p /sbin/ldconfig %files -n %{name}%{sover} %doc README.md %license %{_licensedir}/* %{_libdir}/libnvidia-container.so.* %{_libdir}/libnvidia-container-go.so %{_libdir}/libnvidia-container-go.so.* %files devel %{_includedir}/nvc.h %{_libdir}/libnvidia-container.so %{_libdir}/pkgconfig/libnvidia-container.pc %files static %{_libdir}/libnvidia-container.a %files tools %{_bindir}/nvidia-container-cli %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