Presently, doing an installation of info with the --excludedocs option will cause subsequent errors from other packages (NOT installed with an --excludedocs) which expect that the /usr/share/info/ exists without checking. This is not an unreasonable expectation on the later package's part, so long as the 'info' package was installed. Please take this as my request that in the %install stanza of the .spec file, that the following code be added: [ ! -d $RPM_BUILD_ROOT%{prefix}/share/info/ ] && \ mkdir -p $RPM_BUILD_ROOT%{prefix}/share/info/ and then below, add it to the %files manifest as a regularly required file (and NOT an doco type file).
Note this is a problem even if you install every package with --excludedocs, since the %post scripts call install-info regardless.
And do not forget the %_netsharedpath macro... See bug #51193 and https://www.redhat.com/mailman/private/rpm-list/2003-May/msg00301.html also.
/usr/share/info is provided by the filesystem package.
The issue is not the existence of the directory /usr/share/info, but rather, the failure of the program install-info to operate when /usr/share/info/dir is not present, as will be the case when you install all packages with --excludedocs. I can provide a log of the installation if you would like to see just how messed up it gets. Possible solution: if texinfo is installed --excludedocs then replace install-info with a do-nothing script.
I'm going to close this, since I don't see justification for installing all packages with --excludedocs and then installing a documentation viewer.