- ha-cloud-support: fix aliyun-cli
Resolves: RHEL-28097
This commit is contained in:
parent
bd85a43160
commit
2eee8b9d92
@ -79,12 +79,21 @@ Source901: botocore-2.0.0dev123.zip
|
|||||||
# aliyun
|
# aliyun
|
||||||
Source1000: aliyun-python-sdk-core-2.11.5.tar.gz
|
Source1000: aliyun-python-sdk-core-2.11.5.tar.gz
|
||||||
Source1001: aliyun_python_sdk_ecs-4.24.7-py2.py3-none-any.whl
|
Source1001: aliyun_python_sdk_ecs-4.24.7-py2.py3-none-any.whl
|
||||||
Source1002: aliyuncli-2.1.10-py2.py3-none-any.whl
|
Source1002: cffi-1.14.5-cp39-cp39-manylinux1_x86_64.whl
|
||||||
Source1003: cffi-1.14.5-cp39-cp39-manylinux1_x86_64.whl
|
Source1003: colorama-0.3.3.tar.gz
|
||||||
Source1004: colorama-0.3.3.tar.gz
|
Source1004: jmespath-0.7.1-py2.py3-none-any.whl
|
||||||
Source1005: jmespath-0.7.1-py2.py3-none-any.whl
|
Source1005: pycryptodome-3.20.0.tar.gz
|
||||||
Source1006: pycryptodome-3.20.0.tar.gz
|
Source1006: pycparser-2.20-py2.py3-none-any.whl
|
||||||
Source1007: pycparser-2.20-py2.py3-none-any.whl
|
# aliyun-cli
|
||||||
|
Source2000: aliyun-cli-3.0.198.tar.gz
|
||||||
|
## TAG=$(git log --pretty="format:%h" -n 1)
|
||||||
|
## distdir="aliyun-openapi-meta-${TAG}"
|
||||||
|
## TARFILE="${distdir}.tar.gz"
|
||||||
|
## rm -rf $TARFILE $distdir
|
||||||
|
## git archive --prefix=$distdir/ HEAD | gzip > $TARFILE
|
||||||
|
Source2001: aliyun-openapi-meta-5cf98b660.tar.gz
|
||||||
|
## go mod vendor
|
||||||
|
Source2002: aliyun-cli-go-vendor.tar.gz
|
||||||
# awscli
|
# awscli
|
||||||
Source1008: awscrt-0.11.13-cp39-cp39-manylinux2014_x86_64.whl
|
Source1008: awscrt-0.11.13-cp39-cp39-manylinux2014_x86_64.whl
|
||||||
Source1009: colorama-0.4.3-py2.py3-none-any.whl
|
Source1009: colorama-0.4.3-py2.py3-none-any.whl
|
||||||
@ -317,9 +326,9 @@ BuildRequires: gcc
|
|||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
## Python dependencies
|
## Python dependencies
|
||||||
%if 0%{?fedora} || 0%{?centos} > 7 || 0%{?rhel} > 7 || 0%{?suse_version}
|
%if 0%{?fedora} || 0%{?centos} > 7 || 0%{?rhel} > 7 || 0%{?suse_version}
|
||||||
BuildRequires: python3-devel python3-pip
|
BuildRequires: python3-devel
|
||||||
# wheel for HA support subpackages
|
# dependencies for building HA support subpackages
|
||||||
BuildRequires: python3-wheel
|
BuildRequires: python3-pip python3-wheel golang
|
||||||
BuildRequires: python3-pycurl python3-requests
|
BuildRequires: python3-pycurl python3-requests
|
||||||
%if 0%{?fedora} || 0%{?centos} > 7 || 0%{?rhel} > 7
|
%if 0%{?fedora} || 0%{?centos} > 7 || 0%{?rhel} > 7
|
||||||
BuildRequires: openwsman-python3
|
BuildRequires: openwsman-python3
|
||||||
@ -419,6 +428,22 @@ sed -i.orig 's|FENCE_ZVM=1|FENCE_ZVM=0|' configure.ac
|
|||||||
export PYTHON="%{__python3}"
|
export PYTHON="%{__python3}"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# aliyun-cli
|
||||||
|
tar zxf %SOURCE2000
|
||||||
|
pushd aliyun-cli-*
|
||||||
|
git init
|
||||||
|
rmdir aliyun-openapi-meta
|
||||||
|
tar zxf %SOURCE2001
|
||||||
|
tar zxf %SOURCE2002
|
||||||
|
mv aliyun-openapi-meta-* aliyun-openapi-meta
|
||||||
|
%define aliyun_cli_version 3.0.198
|
||||||
|
# based on https://github.com/containers/podman/blob/main/rpm/podman.spec
|
||||||
|
%define gobuild(o:) go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags' -X github.com/aliyun/aliyun-cli/cli.Version=%{aliyun_cli_version}" -a -v -x -mod=vendor %{?**};
|
||||||
|
%gobuild -o out/aliyun main/main.go
|
||||||
|
mkdir -p ../support/aliyun/aliyun-cli
|
||||||
|
install -m 0755 out/aliyun ../support/aliyun/aliyun-cli/
|
||||||
|
popd
|
||||||
|
|
||||||
# support libs
|
# support libs
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
LIBS="%{_sourcedir}/requirements-*.txt"
|
LIBS="%{_sourcedir}/requirements-*.txt"
|
||||||
@ -433,7 +458,7 @@ done
|
|||||||
|
|
||||||
# fix incorrect #! detected by CI
|
# fix incorrect #! detected by CI
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
sed -i -e "/^#\!\/Users/c#\!%{__python3}" support/aws/bin/jp support/aliyun/bin/jp support/awscli/bin/jp
|
sed -i -e "/^#\!\/Users/c#\!%{__python3}" support/aws/bin/jp support/awscli/bin/jp
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
@ -579,12 +604,13 @@ Summary: Support libraries for HA Cloud agents
|
|||||||
# aliyun
|
# aliyun
|
||||||
Provides: bundled(python-aliyun-python-sdk-core) = 2.11.5
|
Provides: bundled(python-aliyun-python-sdk-core) = 2.11.5
|
||||||
Provides: bundled(python-aliyun-python-sdk-ecs) = 4.24.7
|
Provides: bundled(python-aliyun-python-sdk-ecs) = 4.24.7
|
||||||
Provides: bundled(aliyuncli) = 2.1.10
|
|
||||||
Provides: bundled(python-cffi) = 1.14.5
|
Provides: bundled(python-cffi) = 1.14.5
|
||||||
Provides: bundled(python-colorama) = 0.3.3
|
Provides: bundled(python-colorama) = 0.3.3
|
||||||
Provides: bundled(python-jmespath) = 0.7.1
|
Provides: bundled(python-jmespath) = 0.7.1
|
||||||
Provides: bundled(python-pycryptodome) = 3.20.0
|
Provides: bundled(python-pycryptodome) = 3.20.0
|
||||||
Provides: bundled(python-pycparser) = 2.20
|
Provides: bundled(python-pycparser) = 2.20
|
||||||
|
Provides: bundled(aliyun-cli) = 3.0.198
|
||||||
|
Provides: bundled(aliyun-openapi-meta) = 5cf98b660
|
||||||
# awscli
|
# awscli
|
||||||
Provides: bundled(awscli) = 2.2.15
|
Provides: bundled(awscli) = 2.2.15
|
||||||
Provides: bundled(python-awscrt) = 0.11.13
|
Provides: bundled(python-awscrt) = 0.11.13
|
||||||
@ -1489,6 +1515,8 @@ are located on corosync cluster nodes.
|
|||||||
* Tue Mar 5 2024 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.10.0-63
|
* Tue Mar 5 2024 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.10.0-63
|
||||||
- Add missing licenses to spec-file
|
- Add missing licenses to spec-file
|
||||||
Resolves: RHEL-27929
|
Resolves: RHEL-27929
|
||||||
|
- ha-cloud-support: fix aliyun-cli
|
||||||
|
Resolves: RHEL-28097
|
||||||
|
|
||||||
* Thu Jan 18 2024 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.10.0-62
|
* Thu Jan 18 2024 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.10.0-62
|
||||||
- bundled urllib3: fix CVE-2023-45803
|
- bundled urllib3: fix CVE-2023-45803
|
||||||
|
6
sources
6
sources
@ -1,19 +1,21 @@
|
|||||||
SHA512 (fence-agents-4.10.0.tar.gz) = 9b867c420730106c07c8d9352b5d17c473642443bb0ff9bd94597722198b295c3b41663fa5c8267bdf44153dbbafe644c3701728b39293fcb9a67b9734d488c2
|
SHA512 (fence-agents-4.10.0.tar.gz) = 9b867c420730106c07c8d9352b5d17c473642443bb0ff9bd94597722198b295c3b41663fa5c8267bdf44153dbbafe644c3701728b39293fcb9a67b9734d488c2
|
||||||
SHA512 (awscli-2.2.15.tar.gz) = 4fe4f360e7b25ab3fa7b6659a7300875cf7a9c0bad2c9dbcbec25b85bda6ccb25511a44d24ebc60db8eee59de81fe586254f2990339bda8dcab93f9f1253e39e
|
SHA512 (awscli-2.2.15.tar.gz) = 4fe4f360e7b25ab3fa7b6659a7300875cf7a9c0bad2c9dbcbec25b85bda6ccb25511a44d24ebc60db8eee59de81fe586254f2990339bda8dcab93f9f1253e39e
|
||||||
SHA512 (botocore-2.0.0dev123.zip) = 72e436421010f54b45aeb7d0b9dd2c22f4273f2ba702b30a214288a0c83d9a6da99ecb70f6d9aeb054c536acd0bb9ce9e9a89bf794de81020fea75d0eae16eca
|
SHA512 (botocore-2.0.0dev123.zip) = 72e436421010f54b45aeb7d0b9dd2c22f4273f2ba702b30a214288a0c83d9a6da99ecb70f6d9aeb054c536acd0bb9ce9e9a89bf794de81020fea75d0eae16eca
|
||||||
SHA512 (requirements-aliyun.txt) = 7d2f192a9d3a7e5272a85bcb65d96dc5037799d8a068f80a6ebecccdad7af40096a75e89e7d25171b215e35730ddaeea8b7ebb1d5c4f160ad29b2ddcbb30c3c8
|
SHA512 (requirements-aliyun.txt) = 0c4f89de63246c406535ee73310232f3986b37dedbeed52f25000386d73af6735e1bf8e7ecaa97419df98f55058d76e4ff289d856b815afaaaf69744c5924f7e
|
||||||
SHA512 (requirements-aws.txt) = ca39604d09f4b05589ddaa437be13b7f5d1868218745df107564d73a6c32efb7e4761436197a69653edc47a78f40dd7d5f0894935ec21b8f23b7c7bc71dfd0d1
|
SHA512 (requirements-aws.txt) = ca39604d09f4b05589ddaa437be13b7f5d1868218745df107564d73a6c32efb7e4761436197a69653edc47a78f40dd7d5f0894935ec21b8f23b7c7bc71dfd0d1
|
||||||
SHA512 (requirements-azure.txt) = 8071c96bb3e2b82852b10fd68b77b69a7fce6153ab315298ceb07456fe66f3aca056d3273f11eb87ff30049759e8b4fddf62e39acb91953d36e933e44dce8c9b
|
SHA512 (requirements-azure.txt) = 8071c96bb3e2b82852b10fd68b77b69a7fce6153ab315298ceb07456fe66f3aca056d3273f11eb87ff30049759e8b4fddf62e39acb91953d36e933e44dce8c9b
|
||||||
SHA512 (requirements-google.txt) = d916eb72588e55f5243b9e5391ab07d65eaafe583e073ef79d0e865f4c5e911d7b10310f7ccb98b5fdc1383c2214cc0cc082fa3c5fac6aa3d1931e4779149241
|
SHA512 (requirements-google.txt) = d916eb72588e55f5243b9e5391ab07d65eaafe583e073ef79d0e865f4c5e911d7b10310f7ccb98b5fdc1383c2214cc0cc082fa3c5fac6aa3d1931e4779149241
|
||||||
SHA512 (requirements-common.txt) = 48725599ca3e019f34ce59b78a6ac1deb0cc459e062cd87d5bc96dc2a47f9ef86cc46d50c318c3cd83765882fab40bdfcc03feff82933ed3bdce35b50fbb696e
|
SHA512 (requirements-common.txt) = 48725599ca3e019f34ce59b78a6ac1deb0cc459e062cd87d5bc96dc2a47f9ef86cc46d50c318c3cd83765882fab40bdfcc03feff82933ed3bdce35b50fbb696e
|
||||||
SHA512 (aliyun-python-sdk-core-2.11.5.tar.gz) = 4178056b2b94b314924c671c26a15696493412ab0a61c13ff64eeff72f0e0c80960269db34471adce34d35e23578b8b54953a242fd575560c2312d672871b951
|
SHA512 (aliyun-python-sdk-core-2.11.5.tar.gz) = 4178056b2b94b314924c671c26a15696493412ab0a61c13ff64eeff72f0e0c80960269db34471adce34d35e23578b8b54953a242fd575560c2312d672871b951
|
||||||
SHA512 (aliyun_python_sdk_ecs-4.24.7-py2.py3-none-any.whl) = e479191136e74eaa1f52ba0b317c721cdb1fc1972f074377dd6a7616ef79d93b8b494a53d7d745d8438be748e3d14dbbab6e8433381d1ea589fa073d1ed0e52e
|
SHA512 (aliyun_python_sdk_ecs-4.24.7-py2.py3-none-any.whl) = e479191136e74eaa1f52ba0b317c721cdb1fc1972f074377dd6a7616ef79d93b8b494a53d7d745d8438be748e3d14dbbab6e8433381d1ea589fa073d1ed0e52e
|
||||||
SHA512 (aliyuncli-2.1.10-py2.py3-none-any.whl) = d777881a0235986da7b8954b01a671ac2da3c4578566672ce77b4769e2df04ebc943ea2aaf03c170ea607dce4cbb90fe71aff87f8ac97a307e79824bd5419234
|
|
||||||
SHA512 (cffi-1.14.5-cp39-cp39-manylinux1_x86_64.whl) = 3c73e06bef8e9646beacc584d59ecf42de013034194d6eb59f1abf279e8fe5468e106fcd47802ce1d264d3c1d9122af3c66ea1229db78a768f7ea069ddc2fd72
|
SHA512 (cffi-1.14.5-cp39-cp39-manylinux1_x86_64.whl) = 3c73e06bef8e9646beacc584d59ecf42de013034194d6eb59f1abf279e8fe5468e106fcd47802ce1d264d3c1d9122af3c66ea1229db78a768f7ea069ddc2fd72
|
||||||
SHA512 (colorama-0.3.3.tar.gz) = 8e6177ea60ab8f1267ce982f23803a9d2eb0c4550d7eac4776416d62a99d1ce03254fc64cc959ca95e2409ceeff081d4d19359c383e969dfb921b44c56914495
|
SHA512 (colorama-0.3.3.tar.gz) = 8e6177ea60ab8f1267ce982f23803a9d2eb0c4550d7eac4776416d62a99d1ce03254fc64cc959ca95e2409ceeff081d4d19359c383e969dfb921b44c56914495
|
||||||
SHA512 (jmespath-0.7.1-py2.py3-none-any.whl) = e035bbd4e716066fc6a6282505a51dac8ec738a2794db958aef9edefb9871aa2424ead0ffb80d8cda75436b23ebc02f96201b3960e48d3ea3299e9b4aa8a6958
|
SHA512 (jmespath-0.7.1-py2.py3-none-any.whl) = e035bbd4e716066fc6a6282505a51dac8ec738a2794db958aef9edefb9871aa2424ead0ffb80d8cda75436b23ebc02f96201b3960e48d3ea3299e9b4aa8a6958
|
||||||
SHA512 (pycryptodome-3.20.0.tar.gz) = 9fed02190db9ae71b6895af2525d7670858817acf213c494969104da81138dacb11bc00be83b308e070a2c90766cd763e25a611ada402b32f6160a8ac9283f85
|
SHA512 (pycryptodome-3.20.0.tar.gz) = 9fed02190db9ae71b6895af2525d7670858817acf213c494969104da81138dacb11bc00be83b308e070a2c90766cd763e25a611ada402b32f6160a8ac9283f85
|
||||||
SHA512 (pycparser-2.20-py2.py3-none-any.whl) = 06dc9cefdcde6b97c96d0452a77db42a629c48ee545edd7ab241763e50e3b3c56d21f9fcce4e206817aa1a597763d948a10ccc73572490d739c89eea7fede0a1
|
SHA512 (pycparser-2.20-py2.py3-none-any.whl) = 06dc9cefdcde6b97c96d0452a77db42a629c48ee545edd7ab241763e50e3b3c56d21f9fcce4e206817aa1a597763d948a10ccc73572490d739c89eea7fede0a1
|
||||||
|
SHA512 (aliyun-cli-3.0.198.tar.gz) = d39f36205c1325ab7596da836d59db458beb877f870ddb9e61e85bc6a2be07c1db9042417fc0ef0edd82d307b0f45577ca62f977f37701215f50a806a4dc6473
|
||||||
|
SHA512 (aliyun-cli-go-vendor.tar.gz) = 0e545d545245051efc10acdb3d0f22d3b81f60c5946f8479e5a0df16a8bcb390763212ca59ff9298633432434ebb221cce9a35e1bf00db9245eba32bfb84eb23
|
||||||
|
SHA512 (aliyun-openapi-meta-5cf98b660.tar.gz) = 0476feef9085f77a60ef80ae06ca703af0be807d3bdf1a9a7dfffb415409c1c45fcd184c86346c22a48b5794f84cebc410eeee2dfbf7dcef91c79c6fea8e15b9
|
||||||
SHA512 (awscrt-0.11.13-cp39-cp39-manylinux2014_x86_64.whl) = f071293fd9710e8661f2a3a3ac4ad63748ab922fa8f9914be3b67844570c0b6f58696dd3335958369a828c35467312f1e77970039917923057624e5821cd68fa
|
SHA512 (awscrt-0.11.13-cp39-cp39-manylinux2014_x86_64.whl) = f071293fd9710e8661f2a3a3ac4ad63748ab922fa8f9914be3b67844570c0b6f58696dd3335958369a828c35467312f1e77970039917923057624e5821cd68fa
|
||||||
SHA512 (colorama-0.4.3-py2.py3-none-any.whl) = 7cb2e248fbda31049e23431a921c71d3ecca650011ba25290ce0bfabb616faa0f0185e49deda10a9a358d3b9355392864b51ef764a4020c33d0980af97a33024
|
SHA512 (colorama-0.4.3-py2.py3-none-any.whl) = 7cb2e248fbda31049e23431a921c71d3ecca650011ba25290ce0bfabb616faa0f0185e49deda10a9a358d3b9355392864b51ef764a4020c33d0980af97a33024
|
||||||
SHA512 (cryptography-3.3.2-cp36-abi3-manylinux2010_x86_64.whl) = d6cb4ee14cdfbf17226c5caec3ee182c1e812b6630dcab07dc5869d29a828f0fded2c2e2d85be2c5952dc2b1c0a0cedcd01d520f3e1c4aa385badb07a17d62c4
|
SHA512 (cryptography-3.3.2-cp36-abi3-manylinux2010_x86_64.whl) = d6cb4ee14cdfbf17226c5caec3ee182c1e812b6630dcab07dc5869d29a828f0fded2c2e2d85be2c5952dc2b1c0a0cedcd01d520f3e1c4aa385badb07a17d62c4
|
||||||
|
Loading…
Reference in New Issue
Block a user