From 8d5535b58b89c2ab8757842325a687c73022f317 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Pialasse Date: Thu, 23 Oct 2025 12:20:07 -0400 Subject: [PATCH] filter ARCHIVEFILE to only get archives ending with z --- Makefile.common | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index 9fe61a6..b5116fe 100644 --- a/Makefile.common +++ b/Makefile.common @@ -109,7 +109,9 @@ EXT := $(shell cat $(NAME).spec | grep -e '^[S|s]ource' | head -n 1 | sed 's/Sou #else #ARCHIVEFILE := $(shell cat archivefilename) #endif -ARCHIVEFILE := $(shell cat $(NAME).spec | grep -e '^[S|s]ource' | sed -r 's/^[S|s]ource[0-9]?:\s?//' | sed -e 's/{//g' -e 's/}//g' -e "s/%name/$(NAME)/g" -e "s/%version/$(VERSION)/g" | xargs basename) +#ARCHIVEFILE := $(shell cat $(NAME).spec | grep -e '^[S|s]ource' | sed -r 's/^[S|s]ource[0-9]?:\s?//' | sed -e 's/{//g' -e 's/}//g' -e "s/%name/$(NAME)/g" -e "s/%version/$(VERSION)/g" | xargs basename) +# we expect archive tgz gz or xz +ARCHIVEFILE := $(shell cat $(NAME).spec | grep -e '^[S|s]ource' | sed -r 's/^[S|s]ource[0-9]?:\s?//' | sed -e 's/{//g' -e 's/}//g' -e "s/%name/$(NAME)/g" -e "s/%version/$(VERSION)/g" |grep -E "z$$" | xargs basename) #$(info $$VER_REL is ${VER_REL} version is ${VERSION} ARCHIVEFILE is ${ARCHIVEFILE}) # default target: