Hi,
I have Fedora Core 3 with 2.6.10-1.741_FC3 kernel. My RPM version is 4.3.2. I am trying to install a couple of programs using RPM from the tarball. These programs are:
* log4cpp - http://log4cpp.sourceforge.net/
* Xerces C++ - http://xml.apache.org/xerces-c/build-misc.html#RPMLinux
However, doing rpmbuild -ta <tarball> in both cases results in a Installed (but unpackaged) file(s) found error.
I have looked at this thread: http://www.fedoraforum.org/forum/showthread.php?t=28691, but what is suggested there does not seem to work (if I have interpreted it correctly). I tried it with the log4cpp since I could locate the spec file for it in the tar ball (whereas for xerces I could not). I am working on the assumption that it is this spec file that RPM uses to build, but please correct me if you think otherwise. The "unpackaged" file that it was complaining about is /usr/share/aclocal/log4cpp.m4.
Here is an excerpt from the original (i.e unmodified) spec file:
Code:
%files
%defattr(-,root,root,755)
%attr(755,root,root) %prefix/lib/lib*.so.*
%doc AUTHORS COPYING INSTALL NEWS README THANKS ChangeLog
%files devel
%defattr(-,root,root,755)
%prefix/include/*
%prefix/man/*
%attr(755,root,root) %prefix/bin/log4cpp-config
%attr(755,root,root) %prefix/lib/lib*.so
%attr(644,root,root) %prefix/lib/*.*a
%files doc
%doc %prefix/doc/*
According to the solution suggested in the other thread I referred to above, adding the missing file to the %files section should solve the problem, so I added the following line to both the %files and %files devel sections:
%attr(644,root,root) %{_datadir}/aclocal/log4cpp.m4
(Apparently the /usr/share dir maps to the %{_datadir} RPM macro).
I then repacked the modified spec file into the tar ball and tried rpmbuild -ta again but unfortnately, same error. Can anyone see what I am doing wrong?
I am quite a noob so some accompanying explanations with any ideas would be hugely appreciated!
Thanks,
dgurram