Skip to content

Commit

Permalink
Don't assume that rpmbuild has necessary permissions for the user - use
Browse files Browse the repository at this point in the history
our own directory.  Don't assume i386 architecture.
  • Loading branch information
Pavel Roskin committed May 11, 2005
1 parent c90d263 commit 694ed84
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions maint/mctest
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,17 @@ echo "Checking the configuration with experimental and rarely used options"
distcheck 5 with_screen=mcslang with_termcap=yes \
with_mmap=no with_subshell=optional enable_netcode=no

if test -x /usr/bin/rpmbuild; then
RPMBUILD=/usr/bin/rpmbuild
if test -x $RPMBUILD; then
echo "Building RPM package"
/usr/bin/rpmbuild -ta mc-*.tar.gz >test-rpm.out 2>test-rpm.err
RPM_SRC_DIR="`pwd`/rpm"
rm -rf $RPM_SRC_DIR
mkdir "$RPM_SRC_DIR"
mkdir "$RPM_SRC_DIR/BUILD"
mkdir "$RPM_SRC_DIR/RPMS"
mkdir "$RPM_SRC_DIR/RPMS/`lsb-rpm --eval='%{_host_cpu}'`"
mkdir "$RPM_SRC_DIR/SPECS"
$RPMBUILD -tb --define="_topdir $RPM_SRC_DIR" >test-rpm.out 2>test-rpm.err
else
echo "rpmbuild not found"
fi
Expand Down

0 comments on commit 694ed84

Please sign in to comment.