Blob Blame History Raw
%bcond_without check
%global goipath     github.com/ema/qdisc
%global commit      b307c22d3ce761d351b6e6270b50195b44ee9248
Version:            0

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

%gometa

Name:    %{goname}
Release: 0.4%{?dist}
Summary: qdisc allows to get queuing discipline information via netlink
License: MIT
URL:     %{gourl}
Source:  %{gosource}

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

%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
%forgesetup
rm -rf vendor

%install
%goinstall

%check
%if %{with check}
  # Tests fail on s390x possibly due to endianess, for more info
  # 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
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4.gitb307c22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org>
- 0-0.3
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2.gitb307c22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

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