Blob Blame History Raw
%bcond_without check

%global goipath     github.com/mdlayher/netlink
%global commit      f8bbad5585a18dfa832c763803d63abf42190ceb
Version:            0

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

%gometa

Name:    %{goname}
Release: 0.1%{?dist}
Summary: Package netlink provides low-level access to Linux netlink sockets
License: MIT
URL:     %{gourl}
Source:  %{gosource}

%if %{with check}
BuildRequires: golang(golang.org/x/net/bpf)
BuildRequires: golang(golang.org/x/sys/unix)
%endif

%description
%{common_description}

%package   devel
Summary:   %{summary}

%description devel
%{common_description}

This package contains the source code needed for building packages that import
the %{goipath} Go namespace.

%prep
%gosetup -q
rm -rf vendor

%install
%goinstall

%check
%if %{with check}
  # See: https://github.com/mdlayher/netlink/issues/77
  %ifnarch s390x
    %gochecks
  %endif
%endif

%files devel -f devel.file-list
%license LICENSE.md
%doc *\.md

%changelog
* Tue May 08 2018 Paul Gier <pgier@redhat.com> - 0-0.1.20180508gitdc21697
- First package for Fedora