06a51ff
#! /bin/sh
30648b9
626e81a
rm sources
30648b9
set -e
30648b9
spectool -S *.spec | cut -d' ' -f2 \
30648b9
    | grep -E -e 'postgresql-.*\.tar\.*' -e 'postgresql.*\.pdf' | sort | \
30648b9
while read line
30648b9
do
30648b9
    base=`basename "$line"`
06a51ff
    echo " * handling $base"
4aa087f
    sha512sum --tag "$base" >> sources
30648b9
done