6b63240
# Run tests in check section
6b63240
%bcond_without check
6b63240
6b63240
%global goipath         github.com/jedisct1/xsecretbox
6b63240
%global commit          7a679c0bcd9a5bbfe097fb7d48497bc06d17be76
6b63240
6b63240
%global common_description %{expand:
6b63240
Go implementation of crypto_secretbox_xchacha20poly1305.}
6b63240
6b63240
%gometa
6b63240
6b63240
Name:           %{goname}
6b63240
Version:        0
6b63240
Release:        0.1%{?dist}
6b63240
Summary:        Go implementation of crypto_secretbox_xchacha20poly1305 
6b63240
License:        MIT
6b63240
URL:            %{gourl}
6b63240
Source0:        %{gosource}
6b63240
6b63240
BuildRequires: golang(github.com/aead/chacha20/chacha)
6b63240
BuildRequires: golang(github.com/aead/poly1305)
6b63240
BuildRequires: golang(golang.org/x/crypto/curve25519)
6b63240
6b63240
%description
6b63240
%{common_description}
6b63240
6b63240
6b63240
%package devel
6b63240
Summary:       %{summary}
6b63240
BuildArch:     noarch
6b63240
6b63240
%description devel
6b63240
%{common_description}
6b63240
6b63240
This package contains library source intended for
6b63240
building other packages which use import path with
6b63240
%{goipath} prefix.
6b63240
6b63240
6b63240
%prep
6b63240
%forgeautosetup
6b63240
6b63240
6b63240
%install
6b63240
%goinstall
6b63240
6b63240
6b63240
%if %{with check}
6b63240
%check
6b63240
%gochecks
6b63240
%endif
6b63240
6b63240
6b63240
%files devel -f devel.file-list
6b63240
%license LICENSE
6b63240
%doc README.md
6b63240
6b63240
6b63240
%changelog
6b63240
* Fri May 18 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20180518git7a679c0
6b63240
- First package for Fedora
6b63240