Description of problem: Trying to build & install nvi-m17m from SRPMS I've got such errors: Executing(%doc): /bin/sh - e /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/rpm-tmp.37990 + umask 022 + cd /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/BUILD + cd nvi-1.79 + DOCDIR=/netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79- buildroot/usr/share/doc/nvi-m17n-1.79 + export DOCDIR + rm -rf /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79- buildroot/usr/share/doc/nvi-m17n-1.79 + /bin/mkdir -p /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n- 1.79-buildroot/usr/share/doc/nvi-m17n-1.79 + cp -pr FAQ LAYOUT LICENSE README docs /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79- buildroot/usr/share/doc/n vi-m17n-1.79 + cp -pr -P build/README build/README.LynxOS catalog/README cl/README.signal db/README /netbatch/TC11690/rh80_ia32_J/default/WORK_ DIR/tmp/nvi-m17n-1.79-buildroot/usr/share/doc/nvi-m17n-1.79 cp: cannot create regular file `/netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79- buildroot/usr/share/doc/nvi-m17n- 1.79/README': Permission denied cp: cannot create regular file `/netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79- buildroot/usr/share/doc/nvi-m17n- 1.79/README': Permission denied cp: cannot create regular file `/netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/nvi-m17n-1.79- buildroot/usr/share/doc/nvi-m17n- 1.79/README': Permission denied error: Bad exit status from /netbatch/TC11690/rh80_ia32_J/default/WORK_DIR/tmp/rpm-tmp.37990 (%doc) As I suppose problem in .spec file in line: %doc -P build/README* catalog/README cl/README.signal db/README rpm, I have installed on my system, copies all these README files in one doc directory, overwriting them. I don't sure your rpm does same way but you should understand that with rpm manager installed by default all except last README files will be overwritten, so this action to enumerate many README files is just useless. Moreover, as all these README files have '-w' attribute in package (owner can't write) (why ? For sources, it is very annoyable when you couldn't write source you were just editing) so `cp` emits error trying to overwrite these files. As a result installation failed. You should fix your %doc files to have different names. Version-Release number of selected component (if applicable): How reproducible: always Steps to Reproduce: 1. rpm -bb nvi-m17n.spec Actual results: Installation error, missed documentation. Expected results: Succesfully built & correctly(succesfully & without loss of information) installed package. Additional info:
I'm closing this now, because it was already fixed in the current release.