Use $RPMBUILD to find the rpm architecture.

This commit is contained in:
Pavel Roskin 2005-11-11 02:21:08 +00:00
parent f52a3276cc
commit 056c1da206

View File

@ -63,7 +63,7 @@ if test -x $RPMBUILD; then
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/RPMS/`$RPMBUILD --eval='%{_host_cpu}'`"
mkdir "$RPM_SRC_DIR/SPECS"
$RPMBUILD -tb --define="_topdir $RPM_SRC_DIR" mc-*.tar.gz >test-rpm.out 2>test-rpm.err
else