summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-04-01 09:23:29 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-04-01 09:23:29 +0000
commita795c990c1c396e017f1ccc05170efd282828664 (patch)
treed1942c2c3e387823b4d0325404e700af6cf338fc
parentaeb67bf540cfcdad8558a8530089b8b799df5433 (diff)
automatic import of golang-github-cli-cryptoHEADmasterf38f37f36
-rw-r--r--.gitignore1
-rw-r--r--golang-github-cli-crypto.spec57
-rw-r--r--sources1
3 files changed, 59 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..786d8a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/sources b/sources
new file mode 100644
index 0000000..c164e57
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8b497872aa3faed8d2ec918f273b70c1 crypto-6be313f59b03fc6cb3202011232cd2ebeeb57c6f.tar.gz