/usr/share/spec-helper behaves strangely when we have symlinks to directory: (koffice source package for example)
[sv@uralhome /]$ cd /usr/tmp [sv@uralhome tmp]$ mkdir test-root; cd test-root [sv@uralhome test-root]$ ln -sf /usr/share/doc testdirlink [sv@uralhome test-root]$ ln -sf /usr/share/vim/filetype.vim testfilelink [sv@uralhome test-root]$ ls -l lrwxrwxrwx 1 sv sv 14 Oct 27 19:13 testdirlink -> /usr/share/doc/ lrwxrwxrwx 1 sv sv 27 Oct 27 19:14 testfilelink -> /usr/share/vim/filetype.vim [sv@uralhome test-root]$ RPM_BUILD_ROOT=/usr/tmp/test-root /usr/share/spec-helper/spec-helper Cleaning files...done Compressing files...done Stripping files...done !!!!! Relativisation of symlinks...ln: creating symbolic link `./testdirlink/doc' to `usr/share/doc': Permission denied !!!!! done Clean perl...done Building libraries symlinks...done [sv@uralhome test-root]$ ls -l lrwxrwxrwx 1 sv sv 14 Oct 27 19:13 testdirlink -> /usr/share/doc/ lrwxrwxrwx 1 sv sv 26 Oct 27 19:15 testfilelink -> usr/share/vim/filetype.vim