Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


#71 [PATCH] fix bdist_rpm

Andy Dustman
MySQLdb (53)

I was trying to compile MySQLdb against MySQL 5.5 and prepare nice RPMs for CentOS 5.7, to get the RPM to build i had to apply following change to setup.cfg, i think this one is valid as MANIFEST file is not bundled and is not generated as part of the build unless i'm missing something.

Here's the very simple patch:
--- setup.cfg 2011-12-27 14:24:14.000000000 +0000
+++ setup.cfg.orig 2011-12-27 14:33:43.000000000 +0000
@@ -3,7 +3,7 @@

vendor = MySQL-python SourceForge Project
-doc_files = README doc/.txt
+doc_files = README MANIFEST doc/
distribution-name = Red Stains Linux
packager = Andy Dustman adustman@users.sourceforge.net
requires = python

For the sake of folks who might find this through google, here's the error i was getting:
cp: cannot stat `MANIFEST': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.45521 (%doc)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/MySQL-python-1.2.3-1-buildroot

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

I'm also attaching the resulting RPM as it might be useful for somone.