# Generated by go2rpm %bcond_without check # https://github.com/bifurcation/mint %global goipath github.com/bifurcation/mint %global commit 83ba9bc2ead9cdf8b0c8bd94e8a41243e5f6ed88 %gometa %global common_description %{expand: A Minimal TLS 1.3 Implementation in Go.} %global golicenses LICENSE.md %global godocs README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Minimal TLS 1.3 Implementation in Go License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(golang.org/x/crypto/curve25519) BuildRequires: golang(golang.org/x/crypto/hkdf) BuildRequires: golang(golang.org/x/net/http2) %description %{common_description} %gopkg %prep %goprep %build for cmd in bin/mint-client-https bin/mint-server-https bin/mint-server bin/mint-client; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check # https://github.com/bifurcation/mint/issues/204 %gocheck -d . %endif %files %license LICENSE.md %doc README.md %{_bindir}/* %gopkgfiles %changelog * Sat May 18 18:53:49 CEST 2019 Robert-André Mauchin - 0-0.1.20190518git83ba9bc - Initial package