<commit_before>#!/bin/bash
#
# Packages Keystone SPASSWORD extension as RPM
#

BASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

source $BASE/get_version_string.sh
#read ver rel < <(get_rpm_version_string)
string=$(get_rpm_version_string)
ver=${string% *}
rel=${string#* }

RPM_DIR=$BASE/build/rpm
mkdir -p $RPM_DIR/BUILD

rpmbuild -bb keystone-spassword.spec \
  --define "_topdir $RPM_DIR" \
  --define "_root $BASE"\
  --define "_version $ver"\
  --define "_release $rel"<commit_msg>add with_python27 option<commit_after>#!/bin/bash
#
# Packages Keystone SPASSWORD extension as RPM
#

BASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

source $BASE/get_version_string.sh
#read ver rel < <(get_rpm_version_string)
string=$(get_rpm_version_string)
ver=${string% *}
rel=${string#* }

PYTHON27_VALUE=0
PYTHON27_ARG=${1}

if [ "$PYTHON27_ARG" == "with_python27" ]; then
    PYTHON27_VALUE=1
fi

RPM_DIR=$BASE/build/rpm
mkdir -p $RPM_DIR/BUILD

rpmbuild -bb keystone-spassword.spec \
  --define "_topdir $RPM_DIR" \
  --define "_root $BASE"\
  --define "_version $ver"\
  --define "_release $rel"\
  --define "with_python27 $PYTHON27_VALUE"
{'fraction_non_alphanumeric': 0.171875, 'fraction_numerical': 0.018229166666666668, 'mean_word_length': 4.765, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4013789', 'n_tokens_mistral': 481, 'n_tokens_neox': 447, 'n_words': 92}