summaryrefslogtreecommitdiffstats
path: root/scripts/inspect.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/inspect.in')
-rw-r--r--scripts/inspect.in17
1 files changed, 8 insertions, 9 deletions
diff --git a/scripts/inspect.in b/scripts/inspect.in
index 7ad2b7a..b929b0f 100644
--- a/scripts/inspect.in
+++ b/scripts/inspect.in
@@ -85,11 +85,6 @@ done > $tmpdir/md5sums
echo >&4
shopt -u nullglob
-RPM=( @RPMBUILD@ --eval "%define _sourcedir $sourcedir" \
- --eval "%define _specdir $sourcedir" \
- --eval "%define _builddir $tmpdir/build" )
-PATH="$tmpdir/bin:$PATH"
-
# wrapper script for patch and tar
cat <<-'EOF' > $tmpdir/bin/wrapper
#! @BASH@
@@ -192,10 +187,14 @@ ln -s wrapper $tmpdir/bin/patch
ln -s wrapper $tmpdir/bin/tar
# let rpm do all the dirty specfile stuff ...
-set -- @RPMBUILD@
-echo -n "### ${1##*/}: " >&4
-
-"${RPM[@]}" --nodeps -bp "$specfile" < /dev/null >&2
+echo -n "### rpmbuild: " >&4
+
+export PATH="$tmpdir/bin:$PATH"
+rpmbuild --eval "%define _sourcedir $sourcedir" \
+ --eval "%define _specdir $sourcedir" \
+ --eval "%define _builddir $tmpdir/build" \
+ --nodeps \
+ -bp "$specfile" < /dev/null >&2
status=$?
echo >&4
exit $status