Blob Blame History Raw
# Generated by go2rpm 1.10.0
%bcond_without check
%global debug_package %{nil}

# https://github.com/cloudflare/circl
%global goipath         github.com/cloudflare/circl
Version:                1.3.7

%gometa -L

%global common_description %{expand:
CIRCL: Cloudflare Interoperable Reusable Cryptographic Library.}

%global golicenses      LICENSE ecc-p384-LICENSE
%global godocs          README.md

Name:           golang-github-cloudflare-circl
Release:        %autorelease
Summary:        CIRCL: Cloudflare Interoperable Reusable Cryptographic Library

License:        BSD-3-Clause
URL:            %{gourl}
Source:         %{gosource}

%description %{common_description}

# This package has arch specific files, so it cannot be noarch like the rest of
# the golang-*-devel packages. %%gopkg does not currently support this usecase,
# so we create a manual subpackage definition
%package        devel
Summary:        %{summary}
BuildRequires:  go-rpm-macros

%description    devel %{common_description}

This package contains the source code needed for building packages that
reference the following Go import paths:
 – %{goipath}

%prep
%goprep -A
%autopatch -p1

%generate_buildrequires
%go_generate_buildrequires

%install
%gopkginstall
mv ecc/p384/LICENSE ecc-p384-LICENSE

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

%gopkgfiles

%changelog
%autochangelog