mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-22 01:21:44 +00:00
build wrong rpm
Former-commit-id: 8be6a1466ece898982f8fe836180a1ca161cef5c
This commit is contained in:
parent
4d7810e395
commit
8db15d2b6f
@ -2,14 +2,14 @@ Build Notes
|
||||
|
||||
Need cc_r compiler installed on AIX build system.
|
||||
|
||||
Use the Digest-SHA-PurePerl.spec in this directory.
|
||||
Use the Digest-SHA.spec in this directory.
|
||||
( it was created by running a modified cpan2rpm to support AIX)
|
||||
Get Digest-SHA-PurePerl-5.48.tar.gz from CPAN
|
||||
cp Digest-SHA-PurePerl-5.48.tar.gz /opt/freeware/src/packages/SOURCES
|
||||
cp Digest-SHA-PurePerl.spec /opt/freeware/src/packages/SPECS
|
||||
Get Digest-SHA-5.48.tar.gz from CPAN
|
||||
cp Digest-SHA-5.48.tar.gz /opt/freeware/src/packages/SOURCES
|
||||
cp Digest-SHA.spec /opt/freeware/src/packages/SPECS
|
||||
|
||||
Run "rpm -bb DBD-Pg.spec".
|
||||
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-Digest-SHA-PurePerl-5.48-1.aix6.1.ppc.rpm
|
||||
Run "rpm -bb Digest-SHA.spec".
|
||||
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-Digest-SHA-5.48-1.aix6.1.ppc.rpm
|
||||
|
||||
|
||||
|
||||
|
@ -1,18 +1,18 @@
|
||||
#
|
||||
# - Digest::SHA::PurePerl -
|
||||
# - Digest::SHA -
|
||||
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
|
||||
# The following arguments were used:
|
||||
# Digest-SHA-PurePerl-5.48.tar.gz -U --tempdir=/tmp/test
|
||||
# Digest-SHA-5.48.tar.gz -U --tempdir=/tmp/test
|
||||
# For more information on cpan2rpm please visit: http://perl.arix.com/
|
||||
#
|
||||
|
||||
%define pkgname Digest-SHA-PurePerl
|
||||
%define pkgname Digest-SHA
|
||||
%define filelist %{pkgname}-%{version}-filelist
|
||||
%define NVR %{pkgname}-%{version}-%{release}
|
||||
%define maketest 1
|
||||
|
||||
name: perl-Digest-SHA-PurePerl
|
||||
summary: Digest-SHA-PurePerl - Perl implementation of SHA-1/224/256/384/512
|
||||
name: perl-Digest-SHA
|
||||
summary: Digest-SHA - Perl extension for SHA-1/224/256/384/512
|
||||
version: 5.48
|
||||
release: 1
|
||||
vendor: Mark Shelor <mshelor@cpan.org>
|
||||
@ -23,12 +23,12 @@ url: http://www.cpan.org
|
||||
buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
|
||||
buildarch: ppc
|
||||
prefix: %(echo %{_prefix})
|
||||
source: Digest-SHA-PurePerl-5.48.tar.gz
|
||||
source: Digest-SHA-5.48.tar.gz
|
||||
|
||||
%description
|
||||
Digest::SHA::PurePerl is written entirely in Perl. If your platform
|
||||
has a C compiler, you should install the functionally equivalent
|
||||
(but much faster) Digest::SHA module.
|
||||
Digest::SHA is written in C for speed. If your platform lacks a
|
||||
C compiler, you can install the functionally equivalent (but much
|
||||
slower) Digest::SHA::PurePerl module.
|
||||
|
||||
The programming interface is easy to use: it's the same one found
|
||||
in CPAN's Digest module. So, if your applications currently
|
||||
@ -39,7 +39,7 @@ The interface provides two ways to calculate digests: all-at-once,
|
||||
or in stages. To illustrate, the following short program computes
|
||||
the SHA-256 digest of "hello world" using each approach:
|
||||
|
||||
use Digest::SHA::PurePerl qw(sha256_hex);
|
||||
use Digest::SHA qw(sha256_hex);
|
||||
|
||||
$data = "hello world";
|
||||
@frags = split(//, $data);
|
||||
@ -48,7 +48,7 @@ the SHA-256 digest of "hello world" using each approach:
|
||||
$digest1 = sha256_hex($data);
|
||||
|
||||
# in-stages (OOP style)
|
||||
$state = Digest::SHA::PurePerl->new(256);
|
||||
$state = Digest::SHA->new(256);
|
||||
for (@frags) { $state->add($_) }
|
||||
$digest2 = $state->hexdigest;
|
||||
|
||||
@ -61,9 +61,9 @@ the 446-bit message consisting of the bit-string "110" repeated
|
||||
148 times, followed by "11". Here's how to display its SHA-1
|
||||
digest:
|
||||
|
||||
use Digest::SHA::PurePerl;
|
||||
use Digest::SHA;
|
||||
$bits = "110" x 148 . "11";
|
||||
$sha = Digest::SHA::PurePerl->new(1)->add_bits($bits);
|
||||
$sha = Digest::SHA->new(1)->add_bits($bits);
|
||||
print $sha->hexdigest, "\n";
|
||||
|
||||
Note that for larger bit-strings, it's more efficient to use the
|
||||
@ -78,18 +78,18 @@ to resume where the calculation left off.
|
||||
|
||||
To see what a state description looks like, just run the following:
|
||||
|
||||
use Digest::SHA::PurePerl;
|
||||
Digest::SHA::PurePerl->new->add("Shaw" x 1962)->dump;
|
||||
use Digest::SHA;
|
||||
Digest::SHA->new->add("Shaw" x 1962)->dump;
|
||||
|
||||
As an added convenience, the Digest::SHA::PurePerl module offers
|
||||
routines to calculate keyed hashes using the HMAC-SHA-1/224/256/384/512
|
||||
As an added convenience, the Digest::SHA module offers routines to
|
||||
calculate keyed hashes using the HMAC-SHA-1/224/256/384/512
|
||||
algorithms. These services exist in functional form only, and
|
||||
mimic the style and behavior of the *sha()*, *sha_hex()*, and
|
||||
*sha_base64()* functions.
|
||||
|
||||
# Test vector from draft-ietf-ipsec-ciph-sha-256-01.txt
|
||||
|
||||
use Digest::SHA::PurePerl qw(hmac_sha256_hex);
|
||||
use Digest::SHA qw(hmac_sha256_hex);
|
||||
print hmac_sha256_hex("Hi There", chr(0x0b) x 32), "\n";
|
||||
|
||||
#
|
||||
@ -145,7 +145,7 @@ find %{buildroot} -name "perllocal.pod" \
|
||||
|
||||
%{__perl} -MFile::Find -le '
|
||||
find({ wanted => \&wanted, no_chdir => 1}, "%{buildroot}");
|
||||
print "%doc Changes examples README";
|
||||
print "%doc src Changes examples README";
|
||||
for my $x (sort @dirs, @files) {
|
||||
push @ret, $x unless indirs($x);
|
||||
}
|
||||
@ -185,5 +185,5 @@ find %{buildroot} -name "perllocal.pod" \
|
||||
%defattr(-,root,root)
|
||||
|
||||
%changelog
|
||||
* Fri Jun 18 2010 root@c114m4h1p04.ppd.pok.ibm.com
|
||||
* Mon Jun 21 2010 root@c114m4h1p04.ppd.pok.ibm.com
|
||||
- Initial build.
|
Loading…
Reference in New Issue
Block a user