%fdupes(s) \ symlinks=0; \ %{-s:symlinks=1;} \ fdupes -q -r -1 %1 | \ while read target rest; do \ for f in $rest; do \ if test "$symlinks" = 1; then \ ln -sf "${target/$RPM_BUILD_ROOT/}" "$f"; \ else \ ln -f "$target" "$f"; \ fi ;\ done ;\ done \ %{nil}