But they all needed tweaking for CentOS as shown in the log below:
+--
+
$ sudo rpmbuild --rebuild perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm
Installing perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm
warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 26752624
error: unpacking of archive failed on file /usr/src/redhat/SOURCES/HTML-TagCloud-0.34.tar.gz;4c3c5fa4: cpio: MD5 sum mismatch
error: perl-HTML-TagCloud-0.34-4.fc14.src.rpm cannot be installed
-So the modified version are in the "centos" directory.
-I unpacked each source RPM using
-$ rpm2cpio perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm | cpio -i
-And modified the extracted .spec file as necessary.
+--
+
+It's pretty pathetic that you need a different source RPM for each Red
+Hat variant, but that seems to be the way of things. So for each
+modules, I unpacked it to get hold of the .spec file that needs
+editing, and the source tarball that it builds, as follows:
+ rpm2cpio perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm | cpio -i
+And modified the extracted .spec file as necessary. The modified
+.spec files are part of this git archive; the tarballs are not.
+
+The final binary packages, build for centos5, are in the "centos5"
+directory.