Number: 116
Title: RPM build fails due to incorrect suffix for compressed files
Submitter: Mika Korhonen
Date: Fri Mar 22 06:57:01 2002
Subsys: Build/Installation
Version: 1.8.2-0
System: x86-Linux-Mandrake 8.2
Severity: major
Problem:
If trying to build a RPM from source RPM graphviz-1.8.2-0.src.rpm:

  rpm --rebuild graphviz-1.8.2-0.src.rpm
on Mandrake Linux 8.x distribution, the build fails because the default man page compression format on Mandrake is bzip2 not gzip as assumed in the RPM spec file.


[...]
%doc %attr(644,root,root) %{_mandir}/man1/dot.1.gz
%doc %attr(644,root,root) %{_mandir}/man1/dotty.1.gz
%doc %attr(644,root,root) %{_mandir}/man1/lefty.1.gz
%doc %attr(644,root,root) %{_mandir}/man1/neato.1.gz
[...]

Fix:
Replace the man page suffixes .gz in the spec file with sufficient wildcards: e.g. [...] %doc %attr(644,root,root) %{_mandir}/man1/dot.1.* %doc %attr(644,root,root) %{_mandir}/man1/dotty.1.* %doc %attr(644,root,root) %{_mandir}/man1/lefty.1.* %doc %attr(644,root,root) %{_mandir}/man1/neato.1.* [...]

Owner: ellson
Status: Fixed (22 March 2002)