--- static.req-orig 2010-10-21 19:39:16.000000000 +0300 +++ static.req 2010-10-30 12:28:15.221792280 +0300 @@ -2,6 +2,11 @@ . /usr/lib/rpm/functions +NoArch() +{ + [ "$(rpmquery --qf '%{NAME}\n' -f -- "$1")" == "noarch" ] +} + StaticReq() { local f="$1"; shift @@ -12,7 +17,7 @@ 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 }