X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=modules%2FREADME;h=8a4935a512cf3974bfb86ba646cc1e7a1e9f8620;hb=1f85a1ff9972dbe2e74630bd5a0737a998003552;hp=95bdfe452dfb7b6855befd5eebdbe2d72c60cbfe;hpb=a58be1467c4dae33562e1a01e25854ec30284b9b;p=ZOOM-Perl-moved-to-github.git diff --git a/modules/README b/modules/README index 95bdfe4..8a4935a 100644 --- a/modules/README +++ b/modules/README @@ -3,13 +3,56 @@ but which are not included in the standard operating-system distribution. At present, this includes: XML::LibXML::XPathContext Marc::Record + HTML::TagCloud (needed for MKAdmin, not ZOOM-Perl) -- -The source tarballs were downloaded from: -http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-XPathContext-0.07.tar.gz -http://search.cpan.org/CPAN/authors/id/G/GM/GMCHARLT/MARC-Record-2.0.2.tar.gz +The base source RPMs were downloaded from: +ftp://ftp.pbone.net/mirror/olea.org/paquetes-rpm/perl-XML-LibXML-XPathContext-0.07-1.src.rpm +ftp://ftp.sunet.se/pub/Linux/distributions/Mandriva/devel/cooker/SRPMS/contrib/release/perl-MARC-Record-2.0.2-1mdv2010.1.src.rpm +ftp://mirror.switch.ch/pool/2/mirror/fedora/linux/development/rawhide/source/SRPMS/perl-HTML-TagCloud-0.34-4.fc14.src.rpm +and are saved in the "orig" subdirectory. -I made the corresponding .spec files by hand. +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 +warning: user mandrake does not exist - using root +warning: group mandrake does not exist - using root +warning: user mandrake does not exist - using root +warning: group mandrake does not exist - using root +error: line 8: Tag takes single token only: Release: %mkrel 1 + +$ sudo rpmbuild --rebuild perl-XML-LibXML-XPathContext-0.07-1.src.rpm +Installing perl-XML-LibXML-XPathContext-0.07-1.src.rpm +warning: InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 41d6b379 +warning: user olea does not exist - using root +warning: group olea does not exist - using root +warning: user olea does not exist - using root +warning: group olea does not exist - using root +error: No compatible architectures found for build + +$ sudo rpmbuild --rebuild perl-HTML-TagCloud-0.34-4.fc14.src.rpm +Installing perl-HTML-TagCloud-0.34-4.fc14.src.rpm +warning: user mockbuild does not exist - using root +warning: group mockbuild does not exist - using root +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 + +-- + +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. The build command is: + sudo rpmbuild -ba perl-MARC-Record.spec -$ sudo rpm -i *.rpm