Blob Blame History Raw
# Generated by go2rpm 1.8.1
%ifarch s390x
# Disable tests on s390x for now
# https://github.com/mdlayher/netlink/issues/201
%bcond_with check
%else
%bcond_without check
%endif
%global debug_package %{nil}

# https://github.com/mdlayher/netlink
%global goipath         github.com/mdlayher/netlink
Version:                1.7.2

%gometa -f

%global common_description %{expand:
Package netlink provides low-level access to Linux netlink sockets.}

%global golicenses      LICENSE.md
%global godocs          CHANGELOG.md README.md

Name:           %{goname}
Release:        %autorelease
Summary:        Low-level access to Linux netlink sockets

License:        MIT
URL:            %{gourl}
Source:         %{gosource}

%if %{with check}
BuildRequires:  iproute
%endif

%description %{common_description}

%gopkg

%prep
%goprep

%generate_buildrequires
%go_generate_buildrequires

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
%autochangelog