]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm.macros
- convert symlinks to man links automatically
[packages/rpm.git] / rpm.macros
index f4878f59362ec5f6c9e49e7c1772448e1205cd01..5bafd7603290271a12b1f63624d055165a337b35 100644 (file)
@@ -347,6 +347,12 @@ unset DISPLAY ||:\
                        echo "Compress man pages: $i"; \
                        find "$RPM_BUILD_ROOT$i" -name '*.bz2' -print | xargs -r %{__bzip2} -df; \
                        find "$RPM_BUILD_ROOT$i" -name '*.gz' -print | xargs -r %{__gzip} -dnf; \
+                       find $RPM_BUILD_ROOT$i -type l | while read a; do \
+                               m=$(readlink $a); \
+                               rm -f $a; \
+                               echo .so ${m##*/} > $a; \
+                               echo >&2 "Converted ${a#$RPM_BUILD_ROOT} from symlink to man link: ${m##*/}"; \
+                       done; \
                        find "$RPM_BUILD_ROOT$i" -type f -size +%{_min_compress_bytes}c -print | xargs -r %{__gzip} -9nf; \
                fi; \
        done; \
This page took 0.029564 seconds and 4 git commands to generate.