|
|
@ -1,5 +1,7 @@
|
|
|
|
#!/bin/sh
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
|
PKG=$1
|
|
|
|
PKG=$1
|
|
|
|
|
|
|
|
|
|
|
|
[ -d "$PKG" -o -f "$PKG.spec" ] || fedpkg clone -a $PKG
|
|
|
|
[ -d "$PKG" -o -f "$PKG.spec" ] || fedpkg clone -a $PKG
|
|
|
@ -11,13 +13,21 @@ if [ -n "$2" ]; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
sudo yum-builddep $PKG.spec
|
|
|
|
sudo yum-builddep $PKG.spec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARCH=$(arch)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -d $ARCH ]; then
|
|
|
|
|
|
|
|
echo Please remove $ARCH/
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
fedpkg local
|
|
|
|
fedpkg local
|
|
|
|
|
|
|
|
|
|
|
|
TMP=test-tmp
|
|
|
|
TMP=test-tmp
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p $TMP/
|
|
|
|
mkdir -p $TMP/
|
|
|
|
|
|
|
|
|
|
|
|
cd $(arch)
|
|
|
|
cd $ARCH
|
|
|
|
|
|
|
|
|
|
|
|
PKGS=$(rpm -qp *)
|
|
|
|
PKGS=$(rpm -qp *)
|
|
|
|
|
|
|
|
|
|
|
|