+# strip and sign again
+%{__strip} --strip-unneeded -R.comment -R.note \
+ {,no}ecc/dist/Linux*/lib/{%(echo %{signedlibs} | tr ' ' ',')}
+
+for dir in ecc noecc; do
+ distdir=$(echo $(pwd)/$dir/dist/Linux*)
+ for lib in %{signedlibs}; do
+ LD_LIBRARY_PATH="$distdir/lib" "$distdir/bin/shlibsign" -i "$distdir/lib/$lib"
+ done
+done
+