Description of problem: gettext builds a jar file when java is present in the build environment and rpmbuild fails due to an unpackaged file: Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/gettext-0.16.1-3.fc7.src.rpm-root error: Installed (but unpackaged) file(s) found: /usr/share/gettext/libintl.jar Version-Release number of selected component (if applicable): gettext-0.16.1-3.fc7
Can you attach the buildroot package list (maybe gzipped?) I'm having trouble getting the Java compiler to be recognised by configure. I have these installed at least: gcc-java-4.1.1-51.fc6 java-1.4.2-gcj-compat-1.4.2.0-40jpp.110 libgcj-4.1.1-51.fc6 libgcj-devel-4.1.1-51.fc6 (The configure behaviour for gcj seems to have changed from gettext-0.15.)
According to Bruno Haible on bugs-gnu-utils, gcj < 4.3 can't create fully portable .jar files and that is why recent gettext is not compiling libintl.jar. Perhaps you have some java installed why is building it for you?
I'm not entirely sure as I've already deleted the buildroot, but I think I had the following packages installed: gcc-java-4.1.1-53 java-1.4.2-gcj-compat-1.4.2.0-40jpp.111 libgcj-4.1.1-53 libgcj-devel-4.1.1-53 But the problem here is probably that you should add a 'rm -f $RPM_BUILD_ROOT/%{_datadir}/%{name}/libintl.jar' or '--disable-java' to the configure options if you don't want to ship this file and it just happens to build sometimes.
Here is the reply on bugs-gnu-utils for the record: http://lists.gnu.org/archive/html/bug-gnu-utils/2007-01/msg00098.html "--disable-java" also removes other java related files so I don't really want to do that. Do you remember what tree you used for the test build? It might give more clues. It really shouldn't be possible to build that .jar file with gcj < 4.3.
I added a build switch for the jar file.