Blob Blame History Raw
# Generated by go2rpm 1.9.0
%bcond_without check
%global debug_package %{nil}

# https://github.com/shirou/gopsutil
%global goipath         github.com/shirou/gopsutil
Version:                3.23.12

%gometa

%global goaltipaths     github.com/shirou/gopsutil/v3

%global common_description %{expand:
Psutil for golang.}

%global golicenses      LICENSE
%global godocs          README.md windows_memo.rst\\\
                        _tools/v3migration/v3Changes.md

Name:           %{goname}
Release:        %autorelease
Summary:        Psutil for golang

License:        BSD-3-Clause
URL:            %{gourl}
Source:         %{gosource}

BuildRequires:	/usr/bin/pgrep

%description %{common_description}

%gopkg

%prep
%goprep
%autopatch -p1

%generate_buildrequires
%go_generate_buildrequires

%install
%gopkginstall

%if %{with check}
%check
# TestUsers: needs access to /var/run
for test in "TestUsers" "Test_Process_Cwd" \
; do
awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
done
%gocheck
%endif

%gopkgfiles

%changelog
%autochangelog