From cf96b7472226cf1cf54b99935ba66a129ee15b57 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 5 Aug 2025 13:00:08 +0200 Subject: use %{forgesource} --- makedeps.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'makedeps.sh') diff --git a/makedeps.sh b/makedeps.sh index 99ce444..3369a2f 100755 --- a/makedeps.sh +++ b/makedeps.sh @@ -3,9 +3,9 @@ NAME=$(sed -n '/^Name:/{s/.* //;p}' *.spec) VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec) MODULE=$(sed -n '/^%global gh_proj/{s/.* //;p}' $NAME.spec) -if [ -f $NAME-$VERSION.tgz ]; then +if [ -f $NAME-$VERSION.tar.gz ]; then echo "+ Unpack" - tar xf $NAME-$VERSION.tgz + tar xf $NAME-$VERSION.tar.gz pushd $MODULE-$VERSION echo "+ Fetch" @@ -14,6 +14,9 @@ if [ -f $NAME-$VERSION.tgz ]; then echo "+ Pack" tar czf ../$NAME-deps-$VERSION.tgz mycargo popd + + echo "+ Clean" + rm -r $MODULE-$VERSION else - echo $NAME-$VERSION.tgz missing + echo $NAME-$VERSION.tar.gz missing fi -- cgit