mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Use own private directory for making RPM package.
This commit is contained in:
parent
5efb620cb8
commit
7f5fbac2e2
16
maint/mcsnap
16
maint/mcsnap
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user