From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040207 Firefox/0.8 Description of problem: All files in the /usr/share/info directory (or %{_infodir}/) are compressed with gzip by rpmbuild. This is bad behaviour since there are images (PNGs) too in this directory, and they mustn't be compressed. Version-Release number of selected component (if applicable): rpm-4.1-1.06 How reproducible: Always Steps to Reproduce: 1. My spec files say e.g. %{_infodir}/algaas.png %{_infodir}/equation.png %{_infodir}/tbtrafos.png %{_infodir}/unit.png 2. Call rpmbuild 3. rpmbuild simply doesn't files these files since they now have the extension ".gz". Actual Results: All files in info/ are compressed. Expected Results: Only files in info/ with a typical info filename extension should be compressed, or alternatively, all files with a typical image file extension sould be excluded from the compression process.
%{_infodir} is used for inof(1) files, where compression is expected and useful. No idea why *.png files are there. Reconfigure rpm to not compress if you want, %__os_install_post appends a set of build policy scripts (see /usr/lib/rpm/brp-*), to end of %install, and one of those scripts is implementing the policy "Everything in /usr/share/info/should be compressed."
Latest releases of makeinfo allow the inclusion of PNG files in Info documentation. They are stored in the same directory as the info files, so perhaps the default behaviour (in brp-compress as far as I can see) should be modified. But be that as it may, thank you very much for the explanation.