Blob Blame History Raw
# Generated by go2rpm
# Tests fail on s390x possibly due to endianess, for more info
# See: https://github.com/mdlayher/netlink/issues/77
%ifnarch s390x
%bcond_without check
%endif

# https://github.com/ema/qdisc
%global goipath         github.com/ema/qdisc
%global commit          62d0308e3e0068bcd33c1b6461384e93afb7be9c

%gometa

%global common_description %{expand:
Package qdisc allows to get queuing discipline information via netlink,
similarly to what tc (from iproute2) does.}

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

Name:           %{goname}
Version:        0
Release:        %autorelease
Summary:        Get queuing discipline information via netlink

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

BuildRequires:  golang(github.com/mdlayher/netlink)
BuildRequires:  golang(github.com/mdlayher/netlink/nlenc)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/mdlayher/netlink/nltest)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

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

%gopkgfiles

%changelog
%autochangelog