diff --git a/packaging/fedora/build_rpm.sh b/packaging/fedora/build_rpm.sh index d6e666595632ad1fbe8239a78b6b1fde202777cf..156cacf6f523363b86f53640c4f2d68a1ce1ac5f 100755 --- a/packaging/fedora/build_rpm.sh +++ b/packaging/fedora/build_rpm.sh @@ -1,16 +1,7 @@ #!/bin/sh -DIRNAME=spectrum2 +set -eu -echo "Cleaning up old sources ..." -rm -rf spectrum2-* - -echo "Checking out a fresh copy ..." -rm -rf $DIRNAME -git clone ../../.git $DIRNAME -rm -rf $DIRNAME/.git - -echo "Creating tarball ..." -tar czf $DIRNAME.tar.gz $DIRNAME +sh $(readlink -f $(dirname $0))/build_tarball.sh echo "Building package" -rpmbuild -ta $DIRNAME.tar.gz +rpmbuild -ta spectrum2.tar.gz