pcb-doc's install-info invocations are not failsafe against excludedocs or read-only-netsharedpath-/usr/share installations; appending "|| :" to the invocations in %post and %preun would fix it. Additionally, on a cosmetic note, install-info works on plain *.info too, no need to explicitly specify the .gz extension if you like. More info: http://fedoraproject.org/wiki/Packaging/ScriptletSnippets
I'm opting for %post doc /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : %preun doc if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : fi would it do the job ?
That should do the trick. On another cosmetic note, I'd use "[ $1 -eq 0 ]" instead of "[ $1 = 0 ]" but both should work.
Ok, Fixed!