1 This directory contains Red Hat packages for Perl modules that we need
2 but which are not included in the standard operating-system
3 distribution. At present, this includes:
4 XML::LibXML::XPathContext
6 HTML::TagCloud (needed for MKAdmin, not ZOOM-Perl)
10 The base source RPMs were downloaded from:
11 ftp://ftp.pbone.net/mirror/olea.org/paquetes-rpm/perl-XML-LibXML-XPathContext-0.07-1.src.rpm
12 ftp://ftp.sunet.se/pub/Linux/distributions/Mandriva/devel/cooker/SRPMS/contrib/release/perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm
13 ftp://mirror.switch.ch/pool/2/mirror/fedora/linux/development/rawhide/source/SRPMS/perl-HTML-TagCloud-0.34-4.fc14.src.rpm
14 and are saved in the "orig" subdirectory.
16 But they all needed tweaking for CentOS as shown in the log below:
20 $ sudo rpmbuild --rebuild perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm
21 Installing perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm
22 warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 26752624
23 warning: user mandrake does not exist - using root
24 warning: group mandrake does not exist - using root
25 warning: user mandrake does not exist - using root
26 warning: group mandrake does not exist - using root
27 error: line 8: Tag takes single token only: Release: %mkrel 1
29 $ sudo rpmbuild --rebuild perl-XML-LibXML-XPathContext-0.07-1.src.rpm
30 Installing perl-XML-LibXML-XPathContext-0.07-1.src.rpm
31 warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 41d6b379
32 warning: user olea does not exist - using root
33 warning: group olea does not exist - using root
34 warning: user olea does not exist - using root
35 warning: group olea does not exist - using root
36 error: No compatible architectures found for build
38 $ sudo rpmbuild --rebuild perl-HTML-TagCloud-0.34-4.fc14.src.rpm
39 Installing perl-HTML-TagCloud-0.34-4.fc14.src.rpm
40 warning: user mockbuild does not exist - using root
41 warning: group mockbuild does not exist - using root
42 error: unpacking of archive failed on file /usr/src/redhat/SOURCES/HTML-TagCloud-0.34.tar.gz;4c3c5fa4: cpio: MD5 sum mismatch
43 error: perl-HTML-TagCloud-0.34-4.fc14.src.rpm cannot be installed
47 It's pretty pathetic that you need a different source RPM for each Red
48 Hat variant, but that seems to be the way of things. So for each
49 modules, I unpacked it to get hold of the .spec file that needs
50 editing, and the source tarball that it builds, as follows:
51 rpm2cpio perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm | cpio -i
52 And modified the extracted .spec file as necessary. The modified
53 .spec files are part of this git archive; the tarballs are not.
55 The final binary packages, build for centos5, are in the "centos5"