|
|
@ -8,19 +8,19 @@ PKG=$1
|
|
|
|
|
|
|
|
|
|
|
|
[ -d "$PKG" ] && cd $PKG
|
|
|
|
[ -d "$PKG" ] && cd $PKG
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARCH=$(arch)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if [ -d $ARCH ]; then
|
|
|
|
|
|
|
|
# echo Please move existing $ARCH/
|
|
|
|
|
|
|
|
# exit 1
|
|
|
|
|
|
|
|
#fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$2" ]; then
|
|
|
|
if [ -n "$2" ]; then
|
|
|
|
fedpkg switch-branch $2
|
|
|
|
fedpkg switch-branch $2
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
sudo yum-builddep $PKG.spec
|
|
|
|
sudo yum-builddep $PKG.spec
|
|
|
|
|
|
|
|
|
|
|
|
ARCH=$(arch)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -d $ARCH ]; then
|
|
|
|
|
|
|
|
echo Please move existing $ARCH/
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fedpkg local
|
|
|
|
fedpkg local
|
|
|
|
|
|
|
|
|
|
|
|
TMP=test-tmp
|
|
|
|
TMP=test-tmp
|
|
|
@ -29,7 +29,9 @@ mkdir -p $TMP/
|
|
|
|
|
|
|
|
|
|
|
|
cd $ARCH
|
|
|
|
cd $ARCH
|
|
|
|
|
|
|
|
|
|
|
|
PKGS=$(rpm -qp *)
|
|
|
|
VERREL=$(fedpkg verrel | sed -e "s/^$PKG-//")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PKGS=$(rpm -qp *-$VERREL)
|
|
|
|
|
|
|
|
|
|
|
|
for i in $PKGS; do
|
|
|
|
for i in $PKGS; do
|
|
|
|
sudo yum install $i
|
|
|
|
sudo yum install $i
|
|
|
|