. /usr/lib/rpm/functions
NoArch()
{
[ "$(rpmquery --qf '%{NAME}\n' -f -- "$1")" == "noarch" ]
}
StaticReq()
local f="$1"; shift
case "$name" in
glibc*) return 0 ;;
*-devel-static) echo glibc-devel-static ;;
*-devel-static) NoArch "$f" || echo glibc-devel-static ;;
*) Verbose "package $name has static library ${f#${RPM_BUILD_ROOT-}}" ;;
esac