Append
[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 $ sudo rpmbuild --rebuild perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm 
19 Installing perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm
20 warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 26752624
21 warning: user mandrake does not exist - using root
22 warning: group mandrake does not exist - using root
23 warning: user mandrake does not exist - using root
24 warning: group mandrake does not exist - using root
25 error: line 8: Tag takes single token only: Release:    %mkrel 1
26
27 $ sudo rpmbuild --rebuild perl-XML-LibXML-XPathContext-0.07-1.src.rpm 
28 Installing perl-XML-LibXML-XPathContext-0.07-1.src.rpm
29 warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 41d6b379
30 warning: user olea does not exist - using root
31 warning: group olea does not exist - using root
32 warning: user olea does not exist - using root
33 warning: group olea does not exist - using root
34 error: No compatible architectures found for build
35
36 $ sudo rpmbuild --rebuild perl-HTML-TagCloud-0.34-4.fc14.src.rpm 
37 Installing perl-HTML-TagCloud-0.34-4.fc14.src.rpm
38 warning: user mockbuild does not exist - using root
39 warning: group mockbuild does not exist - using root
40 error: unpacking of archive failed on file /usr/src/redhat/SOURCES/HTML-TagCloud-0.34.tar.gz;4c3c5fa4: cpio: MD5 sum mismatch
41 error: perl-HTML-TagCloud-0.34-4.fc14.src.rpm cannot be installed
42
43 So the modified version are in the "centos" directory.
44 I unpacked each source RPM using
45 $ rpm2cpio perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm | cpio -i
46 And modified the extracted .spec file as necessary.