nose-devs/nose — Issue #249: python setup.py bdist_rpm fails 
Author: jpellerin
Created: 2011-12-14 16:05:20+00:00
State: open

What steps will reproduce the problem?
1. tar -zxvf nose-0.10.1.tar.gz
2. cd nose-0.10.1
3. python setup.py bdist_rpm

What is the expected output? What do you see instead?

Expected: rpm built successfully.
Observed:

< ... >
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.68927
+ umask 022
+ cd /root/packages/BUILD/nose-0.10.1/build/bdist.linux-x86_64/rpm/BUILD
+ cd nose-0.10.1
+ DOCDIR=/var/tmp/nose-0.10.1-1-buildroot/usr/share/doc/nose-0.10.1
+ export DOCDIR
+ rm -rf /var/tmp/nose-0.10.1-1-buildroot/usr/share/doc/nose-0.10.1
+ /bin/mkdir -p /var/tmp/nose-0.10.1-1-buildroot/usr/share/doc/nose-0.10.1
+ cp -pr man/man1/nosetests.1 README.txt
/var/tmp/nose-0.10.1-1-buildroot/usr/share/doc/nose-0.10.1
cp: cannot stat `man/man1/nosetests.1': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.68927 (%doc)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.68927 (%doc)
error: command 'rpmbuild' failed with exit status 1

What version of the product are you using? On what operating system?
nose-0.10.1, CentOS 5.0 64-bit

Please provide any additional information below.

The following patch fixes it for me:

*** setup.cfg.bak 2008-01-14 17:34:12.000000000 -0800
--- setup.cfg 2008-01-14 17:34:35.000000000 -0800
***************
*** 1,5 ****
[bdist_rpm]
! doc_files = man/man1/nosetests.1

[egg_info]
tag_build =
--- 1,5 ----
[bdist_rpm]
! doc_files = README.txt

[egg_info]
tag_build =

Google Code Info:
Issue #: 149
Author: khomenko...@gtempaccount.com
Created On: 2008-01-15T01:43:40.000Z
Closed On: 2008-01-15T15:10:54.000Z