Skip to content

Commit df0280b

Browse files
committed
Fix the buildrpm script
Current code never finds home directory RPMBUILD, so simplify it so it works. Signed-off-by: Ralph Castain <[email protected]>
1 parent c5f6b64 commit df0280b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/buildrpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ echo "--> Found specfile: $specfile"
9494
# Find where the top RPM-building directory is
9595
#
9696

97-
rpmtopdir=${rpmtopdir:-"`grep %_topdir $HOME/.rpmmacros | awk '{ print $2 }'`"}
97+
rpmtopdir=${rpmtopdir:-$HOME/RPMBUILD}
9898
if test "$rpmtopdir" != ""; then
9999
rpmbuild_options="$rpmbuild_options --define '_topdir $rpmtopdir'"
100100
if test ! -d "$rpmtopdir"; then

0 commit comments

Comments
 (0)