Use own private directory for making RPM package.

This commit is contained in:
Pavel Roskin 2003-07-23 16:24:57 +00:00
parent 5efb620cb8
commit 7f5fbac2e2
1 changed files with 8 additions and 8 deletions

View File

@ -28,11 +28,7 @@ BASE_VERSION="4.6.0"
MC_BASE_DIR="/usr/src/mc-$BASE_VERSION"
MC_CVS_DIR="/usr/src/mc"
MC_BUILD_DIR="/usr/src/mc.snap"
if test -d "/usr/src/rpm"; then
RPM_SRC_DIR="/usr/src/rpm"
else
RPM_SRC_DIR="/usr/src/redhat"
fi
RPM_SRC_DIR="$MC_BUILD_DIR/rpm"
# Location of the snapshot directory
SITE="login.ibiblio.org"
@ -70,9 +66,13 @@ if test ! -f "$MCTARBALL"; then
fi
# Make an RPM package
rm -f $RPM_SRC_DIR/RPMS/i386/mc-*.i386.rpm
rm -rf $RPM_SRC_DIR/BUILD/mc-*/
rpmbuild -tb "$MCTARBALL"
rm -rf $RPM_SRC_DIR
mkdir "$RPM_SRC_DIR"
mkdir "$RPM_SRC_DIR/BUILD"
mkdir "$RPM_SRC_DIR/RPMS"
mkdir "$RPM_SRC_DIR/RPMS/i386"
mkdir "$RPM_SRC_DIR/SPECS"
rpmbuild -tb --define="_topdir $RPM_SRC_DIR" "$MCTARBALL"
MC_RPM_VERSION=`echo $MCVERSION | sed s/-//g`
MC_RPM=$RPM_SRC_DIR/RPMS/i386/mc-$MC_RPM_VERSION-1.i386.rpm
if test ! -f $MC_RPM; then