mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
Use $RPMBUILD to find the rpm architecture.
This commit is contained in:
parent
f52a3276cc
commit
056c1da206
@ -63,7 +63,7 @@ if test -x $RPMBUILD; then
|
|||||||
mkdir "$RPM_SRC_DIR"
|
mkdir "$RPM_SRC_DIR"
|
||||||
mkdir "$RPM_SRC_DIR/BUILD"
|
mkdir "$RPM_SRC_DIR/BUILD"
|
||||||
mkdir "$RPM_SRC_DIR/RPMS"
|
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"
|
mkdir "$RPM_SRC_DIR/SPECS"
|
||||||
$RPMBUILD -tb --define="_topdir $RPM_SRC_DIR" mc-*.tar.gz >test-rpm.out 2>test-rpm.err
|
$RPMBUILD -tb --define="_topdir $RPM_SRC_DIR" mc-*.tar.gz >test-rpm.out 2>test-rpm.err
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user