e24f07ca8999b0f1e007fbe94b6b667d9c41fecd
[ZOOM-Perl-moved-to-github.git] / modules / README
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
5         Marc::Record
6         HTML::TagCloud (needed for MKAdmin, not ZOOM-Perl)
7
8 --
9
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.
15
16 But they all needed tweaking for CentOS as shown in the log below:
17
18 --
19
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
28
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
37
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
44
45 --
46
47 I couldn't find a source RPM for XML::LibXML::Simple, but I did find a
48 "nosrc" RPM containing a .spec file, and the actual source is easy to
49 get from CPAN, so I downloaded these from:
50 http://dist.momonga-linux.org/pub/momonga/6/Everything/SRPMS/perl-XML-LibXML-Simple-0.13-3m.mo6.nosrc.rpm
51 http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/XML-LibXML-Simple-0.13.tar.gz
52 extracted the .spec file from the nosrc.rpm, edited it, and built the
53 module using:
54         sudo rpmbuild -ba perl-XML-LibXML-Simple.spec
55 --
56
57 It's pretty pathetic that you need a different source RPM for each Red
58 Hat variant, but that seems to be the way of things.  So for each
59 modules, I unpacked it to get hold of the .spec file that needs
60 editing, and the source tarball that it builds, as follows:
61         rpm2cpio perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm | cpio -i
62 And modified the extracted .spec file as necessary.  The modified
63 .spec files are part of this git archive; the tarballs are not.
64
65 The final binary packages, build for centos5, are in the "centos5"
66 directory.  The build command is:
67         sudo rpmbuild -ba perl-MARC-Record.spec
68