# Generated by go2rpm 1 %bcond_without check # https://github.com/ProtonMail/crypto %global goipath github.com/ProtonMail/crypto %global goialtpath golang.org/x/crypto %global commit 5c72a883971a4325f8c62bf07b6d38c20ea47a6a %gometa %global common_description %{expand: [mirror] Go supplementary cryptography libraries.} %global golicenses LICENSE PATENTS %global godocs AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: [mirror] Go supplementary cryptography libraries # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(golang.org/x/net/idna) BuildRequires: golang(golang.org/x/sys/cpu) BuildRequires: golang(golang.org/x/sys/unix) %description %{common_description} %gopkg %prep %goprep find -name '*.go' -exec sed -i 's/golang.org\/x\/crypto/github.com\/ProtonMail\/crypto/g' {} + for test_file in $(find . -name "*_test.go") do rm $test_file done %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Sat Sep 19 17:27:02 CST 2020 proletarius101 - 0-0.1.20200919git5c72a88 - Initial package