Querying with 'rpm' expands all macros, some may rely on redhat
features not present on debian
fi
if test "$CENTOS_DIST"; then
fi
if test "$CENTOS_DIST"; then
- RNAME=`rpm -q --specfile *.spec --queryformat "%{NAME};" | cut -d ";" -f1`
+ RNAME=`awk '/Name:/ {print $2}' *.spec`
echo "RNAME=$RNAME"
if test "$NAME" -a "$NAME" != "$RNAME"; then
echo "NAME in IDMETA ($NAME) does not match RPM spec NAME ($RNAME)"
echo "RNAME=$RNAME"
if test "$NAME" -a "$NAME" != "$RNAME"; then
echo "NAME in IDMETA ($NAME) does not match RPM spec NAME ($RNAME)"