asahi-opensuse/scripts/02_build_rpms.sh

18 lines
364 B
Bash
Raw Normal View History

2023-01-04 12:53:18 +03:00
#!/bin/bash
# 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