SPECS: pearize.sh - no cry after rm -f *
glen
glen at pld-linux.org
Tue Oct 4 01:14:25 CEST 2005
Author: glen Date: Mon Oct 3 23:14:25 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- no cry after rm -f *
---- Files affected:
SPECS:
pearize.sh (1.17 -> 1.18)
---- Diffs:
================================================================
Index: SPECS/pearize.sh
diff -u SPECS/pearize.sh:1.17 SPECS/pearize.sh:1.18
--- SPECS/pearize.sh:1.17 Tue Oct 4 00:45:06 2005
+++ SPECS/pearize.sh Tue Oct 4 01:14:20 2005
@@ -32,9 +32,15 @@
pre=$(awk '/^%define.*_pre/{print $NF}' $spec)
beta=$(awk '/^%define.*_beta/{print $NF}' $spec)
tarball=$(rpm -q --qf "../SOURCES/%{name}-%{version}$rc$pre$beta.tgz\n" --specfile "$spec" | head -n 1 | sed -e 's,php-pear-,,')
-template=$(rpm -q --qf "%{name}-%{version}$rc$pre$beta.spec\n" --specfile "$spec" | head -n 1)
-pear makerpm --spec-template=template.spec $tarball
+stmp=$(mktemp "${TMPDIR:-/tmp}/fragXXXXXX")
+cat > $stmp <<'EOF'
+ at extra_headers@
+Optional: @optional@
+EOF
+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
requires=$(grep '^Requires:' $template || :)
conflicts=$(grep '^Conflicts:' $template || :)
@@ -94,4 +100,5 @@
else
echo "$spec: No diffs"
fi
+rm -f $stmp
#exit 1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/pearize.sh?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list