diff options
Diffstat (limited to 'redhat/build/get_source_files.sh')
-rwxr-xr-x | redhat/build/get_source_files.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/redhat/build/get_source_files.sh b/redhat/build/get_source_files.sh index b52c023e8..03a3598a0 100755 --- a/redhat/build/get_source_files.sh +++ b/redhat/build/get_source_files.sh @@ -11,10 +11,13 @@ SPECDIR="${SPECFILE%/*}" while read var val; do case "${var}" in + Version:*) VERSION="${val}";; Source[0-9]*:|Source:|Patch[0-9]*:) - FILE=$(rpm -E "${SPECDIR}/${val##*/}") + FILE=$(rpm --define "tde_pkg ${PKGNAME}" --define "tde_version ${TDE_VERSION}" --define "name ${PKGNAME}" --define "version ${VERSION}" -E "${SPECDIR}/${val##*/}") if [ -r "${FILE}" ]; then echo "${FILE}" + else + echo "Warning: cannot find '${FILE}'" >&2 fi ;; esac |