## START: Set by rpmautospec
## (rpmautospec version 0.3.0)
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
    release_number = 3;
    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
    print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec

# 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.6.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
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> 1.6.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Thu Oct 06 2022 Davide Cavalca <dcavalca@fedoraproject.org> 1.6.2-2
- Disable tests on s390x for now

* Thu Oct 06 2022 Davide Cavalca <dcavalca@fedoraproject.org> 1.6.2-1
- Update to 1.6.2; Fixes: RHBZ#1916484

* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Sun Jan  3 14:40:23 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 1.2.0-1
- Update to 1.2.0
- Close: rhbz#1887714

* Tue Jul 28 15:21:50 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.1.0-1
- Update to 1.1.0

* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Thu May 23 14:30:25 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.6.20190523git0087c77
- Bump to commit 0087c778e46953b58a4434583a8274f8e8aa2b78

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.5.git4883a4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org> - 0-0.4.git4883a4e
- 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.3.git4883a4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Mon May 14 2018 Paul Gier <pgier@redhat.com> - 0-0.2.20180514git4883a4e
- Remove special handling of s390x

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