Blob Blame History Raw
# Generated by go2rpm 1
%bcond_without check

# https://github.com/jcmturner/gokrb5
%global goipath         github.com/jcmturner/gokrb5
Version:                8.4.2

%gometa

%global common_description %{expand:
Pure Go Kerberos library for clients and services.}

%global golicenses      LICENSE
%global godocs          examples CONTRIBUTING.md v8/README.md v8/USAGE.md

Name:           %{goname}
Release:        2%{?dist}
Summary:        Pure Go Kerberos library for clients and services

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/hashicorp/go-uuid)
BuildRequires:  golang(github.com/jcmturner/aescts/v2)
BuildRequires:  golang(github.com/jcmturner/dnsutils/v2)
BuildRequires:  golang(github.com/jcmturner/gofork/encoding/asn1)
BuildRequires:  golang(github.com/jcmturner/gofork/x/crypto/pbkdf2)
BuildRequires:  golang(github.com/jcmturner/goidentity/v6)
BuildRequires:  golang(github.com/jcmturner/rpc/v2/mstypes)
BuildRequires:  golang(github.com/jcmturner/rpc/v2/ndr)
BuildRequires:  golang(golang.org/x/crypto/md4)
BuildRequires:  golang(golang.org/x/crypto/pbkdf2)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/gorilla/sessions)
BuildRequires:  golang(github.com/stretchr/testify/assert)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep
rm -rf "*.go"
find . -mindepth 1 -maxdepth 1 -not -wholename './v8' -not -wholename './_build' -type d -exec rm -rf {} +

%install
%gopkginstall

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

%gopkgfiles

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

* Sun Jan 17 20:02:16 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 8.4.2-1
- Update to 8.4.2

* Tue Jul 28 21:59:36 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 8.4.1-1
- Initial package