Exclude the spec file from the sources list
Build and provide rpm of demus-packaging-utils / Build and deploy an rpm to the demus.dk repo (f44) (release) Failing after 28s
Build and provide rpm of demus-packaging-utils / Build and deploy an rpm to the demus.dk repo (rawhide) (release) Failing after 26s

They can during build if rpmautospec or something similiar is used
This commit is contained in:
2026-06-05 13:17:19 +02:00
parent 6b8a09ad5a
commit 69f31159d8
+3 -2
View File
@@ -5,7 +5,7 @@
shopt -s extglob
if [ $# -ne 1 ] || ! [[ "$1" =~ .*.\.spec$ ]]; then
if [ $# -ne 1 ] || ! [[ "$1" =~ .*.\.spec$ ]] || [ ! -f "$1" ]; then
echo "Please provide one .spec file"
echo "Usage: regenerate-from-spec <specfile>.spec"
exit 1
@@ -18,6 +18,7 @@ fi
# Update the sources checksums
# We assume all files are lowercase except README and LICENSE files
# The spec file itself is excluded
echo Calculating checksums
cksum -a sha512 {[a-z],README*,LICENSE*}!(ources) > sources
cksum -a sha512 {[a-z],README*,LICENSE*}!(ources|*.spec) > sources
echo Done