asahi-opensuse/scripts/02_build_rpms.sh

19 lines
371 B
Bash
Executable file

#!/bin/bash
set -e
# This script clones & builds all packages using .spec files.
SPECTOOL=$(curl https://pagure.io/spectool/raw/master/f/spectool)
for i in `ls ../specs/*.spec`
do
# Using spectool to download source tarball
python3 -c "$SPECTOOL" -g $i
done
mv *.tar.gz `rpm --eval "%{_sourcedir}"`
for i in `ls ../specs/*.spec`
do
# Building
rpmbuild -ba $i
done