# Generated by go2rpm 1.13.1 %bcond_without check %global debug_package %{nil} # https://github.com/NVIDIA/go-nvlib %global goipath github.com/NVIDIA/go-nvlib Version: 0.2.0 %gometa -L -f %global common_description %{expand: A collection of useful Go libraries for use with NVIDIA GPU management tools.} %global golicenses LICENSE NOTICE %global godocs CONTRIBUTING.md README.md Name: %{goname} Release: %autorelease Summary: A collection of useful Go libraries for use with NVIDIA GPU management tools License: Apache-2.0 AND (BSD-3-Clause OR GPL-2.0-or-later) URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %install %gopkginstall install --mode 0644 --preserve-timestamps --verbose \ pkg/pciids/default_pci.ids \ %{buildroot}%{gopath}/src/%{goipath}/pkg/pciids/ %if %{with check} %check # The github.com/NVIDIA/go-nvlib/pkg/nvlib/device and # github.com/NVIDIA/go-nvlib/pkg/nvml tests fail with: # /tmp/go-build738952468/b001/device.test: symbol lookup error: # /tmp/go-build738952468/b001/device.test: undefined symbol: # nvmlGpuInstanceGetComputeInstanceProfileInfoV # # These were tried both with the proprietary NVIDIA driver version 550.78 and # without. %gocheck -d pkg/nvlib/device -d pkg/nvml %endif %gopkgfiles %{gopath}/src/%{goipath}/pkg/pciids/default_pci.ids %changelog %autochangelog