From: Elan Ruusamäe Date: Mon, 3 Oct 2005 23:17:14 +0000 (+0000) Subject: - make it easy to nuke junk (template with backup extension) X-Git-Tag: auto/th/rpm-build-tools-4.5-5~7^2~285 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=930b53b151361c3edd28c57c989ad8a138f405af;hp=4188dbdfb34485cea597ca0a9c59a904860a8025;p=packages%2Frpm-build-tools.git - make it easy to nuke junk (template with backup extension) Changed files: pearize.sh -> 1.19 --- diff --git a/pearize.sh b/pearize.sh index d9d124a..edf08b0 100644 --- a/pearize.sh +++ b/pearize.sh @@ -38,9 +38,11 @@ cat > $stmp <<'EOF' @extra_headers@ Optional: @optional@ EOF -template=$(rpm -q --qf "_pearize-%{version}$rc$pre$beta.spec\n" --specfile "$spec" | head -n 1) +template=$(rpm -q --qf ".pearize-%{version}$rc$pre$beta.spec\n" --specfile "$spec" | head -n 1) -pear makerpm --spec-template=$stmp --rpm-pkgname=_pearize $tarball +pear makerpm --spec-template=$stmp --rpm-pkgname=.pearize $tarball +mv $template $template~ +template=$template~ requires=$(grep '^Requires:' $template || :) conflicts=$(grep '^Conflicts:' $template || :)