On Fri, 2007-05-18 at 19:36 +0200, Hans de Goede wrote:
Orion Poplawski wrote:
> I'm not looking at the size of the rpms, I'm looking at installed sizes
> as reported by rpm -q --qf "%{SIZE}\n" -p <rpm>.
>
> # rpm -q --qf '%{SIZE}\n' -p development/i386/ogre-1.2.5-1.fc7.i386.rpm
> 29476134
> # rpm -q --qf '%{SIZE}\n' -p 6/i386/ogre-1.2.2-2.p1.fc6.i386.rpm
> 6374746
>
> I installed ogre on my devel system however and the total installed size
> appears to be about 8476 KB. So perhaps a bug in rpm's size calculation?
>
Perhaps, or maybe rpm is showing the size of all subpackages together?
It's a bug in rpm. Namely, these lines from ogre.spec are throwing
things off:
%exclude %{_bindir}/Ogre-Samples
%exclude %{_libdir}/OGRE/Samples
%exclude %{_datadir}/OGRE/Samples
Rpm's size calculation doesn't properly handle %exclude.
-Toshio