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.)
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 /lib*-% {version} .so
%{_libdir}
%files devel /lib*-% {version} .so
%exclude %{_libdir}
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.)