On RHL9 with rpm-4.2-1, rpmbuild --rebuild ncurses-5.3-8.src.rpm fails with Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/ncurses-root error: Installed (but unpackaged) file(s) found: /usr/share/man/man2/key_defined.3x.20030517.gz /usr/share/man/man2/panel.3x.20030517.gz RPM build errors: Installed (but unpackaged) file(s) found: /usr/share/man/man2/key_defined.3x.20030517.gz /usr/share/man/man2/panel.3x.20030517.gz
using the current official rpm-4.2-0.69 and the rpm used by the Red Hat build farm
I don't believe this is closed. ncruses.spec has the lines rm -f ${RPM_BUILD_ROOT}%{_datadir}/man/man2/key_defined.3x.20030517.gz rm -f ${RPM_BUILD_ROOT}%{_datadir}/man/man2/panel.3x.20030517.gz but at that point there is no gz version of the files, just the plains. The reason the rm does not fail is because it has -f in it. The error is also in ncurses-5.3-9.3.src.rpm fails also. removing the .gz postfix will fix the problem.