Description of problem: install info package creates unwanted %{_infodir}/dir file Version-Release number of selected component (if applicable): info-4.12-2.fc10.i386 How reproducible: Steps to Reproduce: 1. try to build psacct in rawhide Actual results: ... install-info --info-dir=/var/tmp/psacct-6.3.2-50.fc10-root-mockbuild/usr/share/info /var/tmp/psacct-6.3.2-50.fc10-root-mockbuild/usr/share/info/accounting.info install-info: warning: no info dir entry in `/var/tmp/psacct-6.3.2-50.fc10-root-mockbuild/usr/share/info/accounting.info' true ... error: Installed (but unpackaged) file(s) found: /usr/share/info/dir.gz Expected results: no error Additional info:
From "info install-info": If DIR-FILE (however specified) does not exist, `install-info' creates it if possible (with no entries). So this is correct behavior. If older version of install-info did not create it, it was unable to did so, or it was a bug. This line in %install section (before you gzip content in %{_infodir}) will solve your problem: rm -f $RPM_BUILD_ROOT%{_infodir}/dir The same technique is used in other Fedora packages (e.g. findutils, coreutils, etc.)