rpm-build/scripts/static.req.in

21 lines
413 B
Plaintext
Raw Normal View History

2007-03-07 12:36:29 +03:00
#!/bin/sh -efu
. @RPMCONFIGDIR@/functions
StaticReq()
{
local f="$1"; shift
[ -z "${f##*.a}" ] || return 0
local name="${RPM_SUBPACKAGE_NAME-}"
[ -n "$name" ] || name=$(rpmquery --qf '%{NAME}\n' -f -- "$f")
case "$name" in
glibc*) return 0 ;;
*-devel-static) echo glibc-devel-static ;;
*) Verbose "package $name has static library ${f#${RPM_BUILD_ROOT-}}" ;;
esac
}
ArgvFileAction StaticReq "$@"