diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-04-01 09:23:29 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-04-01 09:23:29 +0000 |
commit | a795c990c1c396e017f1ccc05170efd282828664 (patch) | |
tree | d1942c2c3e387823b4d0325404e700af6cf338fc | |
parent | aeb67bf540cfcdad8558a8530089b8b799df5433 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | golang-github-cli-crypto.spec | 57 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 59 insertions, 0 deletions
@@ -0,0 +1 @@ +/crypto-6be313f59b03fc6cb3202011232cd2ebeeb57c6f.tar.gz diff --git a/golang-github-cli-crypto.spec b/golang-github-cli-crypto.spec new file mode 100644 index 0000000..5ee5596 --- /dev/null +++ b/golang-github-cli-crypto.spec @@ -0,0 +1,57 @@ +# Generated by go2rpm 1.9.0 +%bcond_with check +%global debug_package %{nil} + +# https://github.com/cli/crypto +%global goipath github.com/cli/crypto +%global commit 6be313f59b03fc6cb3202011232cd2ebeeb57c6f + +%gometa -f + + +%global common_description %{expand: +GitHub's golang-crypto fork required for gh.} + +%global golicenses PATENTS LICENSE +%global godocs AUTHORS CONTRIBUTING.md README.md CONTRIBUTORS + +Name: %{goname} +Version: 0 +Release: %autorelease -p +Summary: GitHub's golang-crypto fork required for gh + +License: BSD-3-Clause +URL: %{gourl} +Source: %{gosource} + +%description %{common_description} + +%gopkg + +%prep +%goprep +%autopatch -p1 + +# Remove unneeded modules for the usage of the fork +rm -rf acme argon2 bcrypt blake2b blake2s bn256 cast5 chacha20poly1305 \ + cryptobyte hkdf md4 nacl ocsp openpgp otr pbkdf2 pkcs12 poly1305 \ + ripemd160 salsa20 scrypt sha3 tea twofish xtea xts + +# replace module name to avoid conflict +sed -i "s|golang.org/x/crypto|github.com/cli/crypto|" $(find . -name "*.go" -type f) + +%generate_buildrequires +%go_generate_buildrequires + +%install +%gopkginstall + +%if %{with check} +%check +%gocheck +%endif + +%gopkgfiles + +%changelog +%autochangelog @@ -0,0 +1 @@ +8b497872aa3faed8d2ec918f273b70c1 crypto-6be313f59b03fc6cb3202011232cd2ebeeb57c6f.tar.gz |