summaryrefslogtreecommitdiffstats
path: root/redhat/build/get_source_files.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-12-15 23:38:06 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2014-12-15 23:38:06 +0100
commitd19d14a03103d32059598d292defb77945309f28 (patch)
treeee992c9fa6b2aaf1f12cefcccaec75e2eaa0a550 /redhat/build/get_source_files.sh
parent092caa810a152ddcbc89e908fee1f4611a5acc70 (diff)
downloadtde-packaging-d19d14a0.tar.gz
tde-packaging-d19d14a0.zip
RPM packaging: update for R14
Diffstat (limited to 'redhat/build/get_source_files.sh')
-rwxr-xr-xredhat/build/get_source_files.sh5
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