# Generated by go2rpm 1 %bcond_without check %global debug_package %{nil} # https://github.com/refraction-networking/utls %global goipath github.com/refraction-networking/utls %global commit 4ee624457953e3730be8cb012f0cc0450867d1c9 %gometa %global common_description %{expand: Fork of the Go standard TLS library, providing low-level access to the ClientHello for mimicry purposes.} %global golicenses LICENSE %global godocs examples CONTRIBUTORS_GUIDE.md README.md\\\ CONTRIBUTING.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Fork of the Go standard TLS library, providing low-level access to the ClientHello for mimicry purposes # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(golang.org/x/crypto/chacha20poly1305) BuildRequires: golang(golang.org/x/crypto/cryptobyte) BuildRequires: golang(golang.org/x/crypto/curve25519) BuildRequires: golang(golang.org/x/crypto/hkdf) BuildRequires: golang(golang.org/x/crypto/sha3) BuildRequires: golang(golang.org/x/net/http2) %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/utls %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %files %license LICENSE %doc examples CONTRIBUTORS_GUIDE.md README.md CONTRIBUTING.md %{_bindir}/* %gopkgfiles %changelog * Tue Jul 07 20:56:46 CST 2020 Qiyu Yan - 0-0.1.20200707gitada0bb9 - Initial package