Skip to content

Commit

Permalink
Fix the buildrpm script
Browse files Browse the repository at this point in the history
Current code never finds home directory RPMBUILD, so
simplify it so it works.

Signed-off-by: Ralph Castain <rhc@pmix.org>
  • Loading branch information
rhc54 committed Aug 21, 2022
1 parent c5f6b64 commit df0280b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/buildrpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ echo "--> Found specfile: $specfile"
# Find where the top RPM-building directory is
#

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

0 comments on commit df0280b

Please sign in to comment.