diff --git a/a/argon2-cffi-bindings/argon2-cffi-bindings_ubi_10.1.sh b/a/argon2-cffi-bindings/argon2-cffi-bindings_ubi_10.1.sh new file mode 100644 index 0000000000..721b270676 --- /dev/null +++ b/a/argon2-cffi-bindings/argon2-cffi-bindings_ubi_10.1.sh @@ -0,0 +1,64 @@ +#!/bin/bash -e +# +# ----------------------------------------------------------------------------- +# +# Package : argon2-cffi-bindings +# Version : 21.2.0 +# Source repo : https://github.com/hynek/argon2-cffi-bindings +# Tested on : UBI:10.1 +# Language : Python +# Ci-Check : True +# Script License : Apache License, Version 2.0 +# Maintainer : tejasBadjateIBM +# +# Disclaimer : This script has been tested in root mode on given +# ========== platform using the mentioned version of the package. +# It may not work as expected with newer versions of the +# package and/or distribution. In such case, please +# contact "Maintainer" of this script. +# +# ---------------------------------------------------------------------------- +# Variables +PACKAGE_NAME=argon2-cffi-bindings +PACKAGE_VERSION=${1:-21.2.0} +PACKAGE_URL=https://github.com/hynek/argon2-cffi-bindings +PACKAGE_DIR=./argon2-cffi-bindings +CURRENT_DIR="${PWD}" + +#install dependencies +yum install -y wget gcc gcc-c++ gcc-gfortran git make python3.12 python3.12-devel python3.12-pip openssl-devel cmake unzip + +#build and install libargon2 +git clone https://github.com/P-H-C/phc-winner-argon2.git +cd phc-winner-argon2 +make +make install +cd $CURRENT_DIR + +#clone and build argon2-cffi-bindings +git clone $PACKAGE_URL +cd $PACKAGE_NAME +git checkout $PACKAGE_VERSION +git submodule update --init --recursive + +pip install tox wheel build argon2-cffi setuptools setuptools-scm + +if ! pip install . ; then + echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_Fails" + exit 1 +fi + +# Run test cases +if ! tox -e py3 ; then + echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_success_but_test_Fails" + exit 2 +else + echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Pass | Both_Install_and_Test_Success" + exit 0 +fi diff --git a/a/argon2-cffi-bindings/build_info.json b/a/argon2-cffi-bindings/build_info.json index 1cf0f5e817..c9fb14af2f 100644 --- a/a/argon2-cffi-bindings/build_info.json +++ b/a/argon2-cffi-bindings/build_info.json @@ -1,5 +1,5 @@ { - "maintainer": "aastha-sharma2", + "maintainer": "tejasBadjateIBM", "package_name": "argon2-cffi-bindings", "github_url": "https://github.com/hynek/argon2-cffi-bindings", "version": "21.2.0", @@ -11,6 +11,9 @@ "validate_build_script": true, "use_non_root_user": false, "*" : { - "build_script": "argon2-cffi-bindings_ubi_9.3.sh" + "build_script":[ + "argon2-cffi-bindings_ubi_9.3.sh", + "argon2-cffi-bindings_ubi_10.1.sh" + ] } }