RPM

Comment 0 for bug 633753

Revision history for this message
In , Andreas-hanke (andreas-hanke) wrote :

rpm has been fixed recently to not add the size of %exclude'd files to the payload size. But in a construct like this

%files
%_bindir/*
%exclude %_bindir/badfile

the size of %_bindir/badfile is still added to the payload size.

See the spec file of binutils in STABLE for a possible use case:

%files
%{_libdir}/lib*-%{version}.so

%files devel
%exclude %{_libdir}/lib*-%{version}.so

The size of lib*-%{version}.so is effectively counted twice although it is packaged just once.

(In case that this isn't meant to work with rpm, it's a binutils packaging bug.)