%if user_static
for regularfmt in %buildroot%_binfmtdir/*; do
staticfmt="$(echo $regularfmt | sed 's/-dynamic/-static/g')"
cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt
cat $regularfmt | tr -d '\n' | sed "s/:$/.static:F/" > $staticfmt
done
%endif