On Sat, Jun 16, 2007 at 06:54:46AM +0300, jarmo alleged:
- install -s -m 644 digitemp.1 /var/tmp/digitemp-buildroot/usr/local/man/man1/
strip: /var/tmp/digitemp-buildroot/usr/local/man/man1/digitemp.1: File format not recognized install: strip failed error: Bad exit status from /var/tmp/rpm-tmp.50782 (%install)
It is the -s option to 'install' that tells it to run strip. This is only for binaries and is invalid for text files.
The makefile should be patched to not strip anything at all, much less manpages.
Also, rpms should install into %{_prefix} (/usr), not /usr/local.