##
## perl-crypto.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2004 The OpenPKG Project
## Copyright (c) 2000-2004 Ralf S. Engelschall
## Copyright (c) 2000-2004 Cable & Wireless
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# versions of individual parts
%define V_perl 5.8.4
%define V_digest 1.08
%define V_digest_sha1 2.10
%define V_digest_sha 5.01
%define V_digest_md2 2.03
%define V_digest_md4 1.3
%define V_digest_md5 2.33
%define V_digest_hmac 1.01
%define V_crypt_ripemd160 0.04
%define V_crypt_enigma 1.3
%define V_crypt_unixcrypt 1.0
%define V_crypt_passwdmd5 1.3
%define V_crypt_des 2.03
%define V_crypt_des_ede3 0.01
%define V_crypt_rc4 2.02
%define V_crypt_rc5 2.00
%define V_crypt_rc6 1.0
%define V_crypt_gost 1.00
%define V_crypt_blowfish 2.09
%define V_crypt_twofish 2.12
%define V_crypt_rot13 0.6
%define V_crypt_null 1.02
%define V_crypt_ecb 1.1-2
%define V_crypt_cbc 2.12
%define V_data_uuid 0.11
%define V_string_crc32 1.2
# package information
Name: perl-crypto
Summary: Perl Modules for use with cryptography
URL: http://www.cpan.org/
Vendor: Perl Community
Packager: The OpenPKG Project
Distribution: OpenPKG
Class: BASE
Group: Language
License: GPL/Artistic
Version: %{V_perl}
Release: 20040622
# list of sources
Source0: http://www.cpan.org/modules/by-module/Digest/Digest-%{V_digest}.tar.gz
Source1: http://www.cpan.org/modules/by-module/Digest/Digest-SHA1-%{V_digest_sha1}.tar.gz
Source2: http://www.cpan.org/modules/by-module/Digest/Digest-SHA-%{V_digest_sha}.tar.gz
Source3: http://www.cpan.org/modules/by-module/Digest/Digest-MD2-%{V_digest_md2}.tar.gz
Source4: http://www.cpan.org/modules/by-module/Digest/Digest-MD4-%{V_digest_md4}.tar.gz
Source5: http://www.cpan.org/modules/by-module/Digest/Digest-MD5-%{V_digest_md5}.tar.gz
Source6: http://www.cpan.org/modules/by-module/Digest/Digest-HMAC-%{V_digest_hmac}.tar.gz
Source7: http://www.cpan.org/modules/by-module/Crypt/Crypt-RIPEMD160-%{V_crypt_ripemd160}.tar.gz
Source8: http://www.cpan.org/modules/by-module/Crypt/Crypt-Enigma-%{V_crypt_enigma}.tar.gz
Source9: http://www.cpan.org/modules/by-module/Crypt/Crypt-UnixCrypt-%{V_crypt_unixcrypt}.tar.gz
Source10: http://www.cpan.org/modules/by-module/Crypt/Crypt-PasswdMD5-%{V_crypt_passwdmd5}.tar.gz
Source11: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES-%{V_crypt_des}.tar.gz
Source12: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES_EDE3-%{V_crypt_des_ede3}.tar.gz
Source13: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC4-%{V_crypt_rc4}.tar.gz
Source14: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC5-%{V_crypt_rc5}.tar.gz
Source15: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC6-%{V_crypt_rc6}.tar.gz
Source16: http://www.cpan.org/modules/by-module/Crypt/Crypt-GOST-%{V_crypt_gost}.tar.gz
Source17: http://www.cpan.org/modules/by-module/Crypt/Crypt-Blowfish-%{V_crypt_blowfish}.tar.gz
Source18: http://www.cpan.org/modules/by-module/Crypt/Crypt-Twofish-%{V_crypt_twofish}.tar.gz
Source19: http://www.cpan.org/modules/by-authors/id/A/AY/AYRNIEU/Crypt-Rot13-%{V_crypt_rot13}.tar.gz
Source20: http://www.cpan.org/modules/by-module/Crypt/Crypt-NULL-%{V_crypt_null}.tar.gz
Source21: http://www.cpan.org/modules/by-module/Crypt/Crypt-ECB-%{V_crypt_ecb}.tar.gz
Source22: http://www.cpan.org/modules/by-module/Crypt/Crypt-CBC-%{V_crypt_cbc}.tar.gz
Source23: http://www.cpan.org/modules/by-module/Data/Data-UUID-%{V_data_uuid}.tar.gz
Source24: http://www.cpan.org/modules/by-module/String/String-CRC32-%{V_string_crc32}.tar.gz
Patch0: perl-crypto.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
AutoReq: no
AutoReqProv: no
%description
Perl module bundle related to Cryptography.
- Digest (%{V_digest})
- Digest::SHA1 (%{V_digest_sha1})
- Digest::SHA (%{V_digest_sha})
- Digest::MD2 (%{V_digest_md2})
- Digest::MD4 (%{V_digest_md4})
- Digest::MD5 (%{V_digest_md5})
- Digest::HMAC (%{V_digest_hmac})
- Crypt::RIPEMD160 (%{V_crypt_ripemd160})
- Crypt::Enigma (%{V_crypt_enigma})
- Crypt::UnixCrypt::%{V_crypt_unixcrypt})
- Crypt::PasswdMD5 (%{V_crypt_passwdmd5})
- Crypt::DES (%{V_crypt_des})
- Crypt::DES::EDE3 (%{V_crypt_des_ede3})
- Crypt::RC4 (%{V_crypt_rc4})
- Crypt::RC5 (%{V_crypt_rc5})
- Crypt::RC6 (%{V_crypt_rc6})
- Crypt::GOST (%{V_crypt_gost})
- Crypt::Blowfish (%{V_crypt_blowfish})
- Crypt::Twofish (%{V_crypt_twofish})
- Crypt::Rot13 (%{V_crypt_rot13})
- Crypt::NULL (%{V_crypt_null})
- Crypt::ECB (%{V_crypt_ecb})
- Crypt::CBC (%{V_crypt_cbc})
- Data::UUID (%{V_data_uuid})
- String::CRC32 (%{V_string_crc32})
%track
prog perl-crypto:Crypt-Blowfish = {
version = %{V_crypt_blowfish}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-Blowfish-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-DES = {
version = %{V_crypt_des}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-DES-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-DES_EDE3 = {
version = %{V_crypt_des_ede3}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-DES_EDE3-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-Enigma = {
version = %{V_crypt_enigma}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-Enigma-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-GOST = {
version = %{V_crypt_gost}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-GOST-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-NULL = {
version = %{V_crypt_null}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-NULL-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-PasswdMD5 = {
version = %{V_crypt_passwdmd5}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-PasswdMD5-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-RC4 = {
version = %{V_crypt_rc4}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-RC4-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-RC5 = {
version = %{V_crypt_rc5}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-RC5-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-RC6 = {
version = %{V_crypt_rc6}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-RC6-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-RIPEMD160 = {
version = %{V_crypt_ripemd160}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-RIPEMD160-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-Rot13 = {
version = %{V_crypt_rot13}
url = http://www.cpan.org/modules/by-authors/id/A/AY/AYRNIEU/
regex = Crypt-Rot13-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-Twofish = {
version = %{V_crypt_twofish}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-Twofish-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-UnixCrypt = {
version = %{V_crypt_unixcrypt}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-UnixCrypt-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-ECB = {
version = %{V_crypt_ecb}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-ECB-(__VER__)\.tar\.gz
}
prog perl-crypto:Crypt-CBC = {
version = %{V_crypt_cbc}
url = http://www.cpan.org/modules/by-module/Crypt/
regex = Crypt-CBC-(__VER__)\.tar\.gz
}
prog perl-crypto:Data-UUID = {
version = %{V_data_uuid}
url = http://www.cpan.org/modules/by-module/Data/
regex = Data-UUID-(__VER__)\.tar\.gz
}
prog perl-crypto:Digest = {
version = %{V_digest}
url = http://www.cpan.org/modules/by-module/Digest/
regex = Digest-(__VER__)\.tar\.gz
}
prog perl-crypto:Digest-HMAC = {
version = %{V_digest_hmac}
url = http://www.cpan.org/modules/by-module/Digest/
regex = Digest-HMAC-(__VER__)\.tar\.gz
}
prog perl-crypto:Digest-MD2 = {
version = %{V_digest_md2}
url = http://www.cpan.org/modules/by-module/Digest/
regex = Digest-MD2-(__VER__)\.tar\.gz
}
prog perl-crypto:Digest-MD4 = {
version = %{V_digest_md4}
url = http://www.cpan.org/modules/by-module/Digest/
regex = Digest-MD4-(__VER__)\.tar\.gz
}
prog perl-crypto:Digest-MD5 = {
version = %{V_digest_md5}
url = http://www.cpan.org/modules/by-module/Digest/
regex = Digest-MD5-(__VER__)\.tar\.gz
}
prog perl-crypto:Digest-SHA = {
version = %{V_digest_sha}
url = http://www.cpan.org/modules/by-module/Digest/
regex = Digest-SHA-(__VER__)\.tar\.gz
}
prog perl-crypto:Digest-SHA1 = {
version = %{V_digest_sha1}
url = http://www.cpan.org/modules/by-module/Digest/
regex = Digest-SHA1-(__VER__)\.tar\.gz
}
prog perl-crypto:String-CRC32 = {
version = %{V_string_crc32}
url = http://www.cpan.org/modules/by-module/String/
regex = String-CRC32-(__VER__)\.tar\.gz
}
%prep
%setup -q -c
%setup -q -T -D -a 1
%setup -q -T -D -a 2
%setup -q -T -D -a 3
%setup -q -T -D -a 4
%setup -q -T -D -a 5
%setup -q -T -D -a 6
%setup -q -T -D -a 7
%setup -q -T -D -a 8
%setup -q -T -D -a 9
%setup -q -T -D -a 10
%setup -q -T -D -a 11
%setup -q -T -D -a 12
%setup -q -T -D -a 13
%setup -q -T -D -a 14
%setup -q -T -D -a 15
%setup -q -T -D -a 16
%setup -q -T -D -a 17
%setup -q -T -D -a 18
%setup -q -T -D -a 19
%setup -q -T -D -a 20
%setup -q -T -D -a 21
%setup -q -T -D -a 22
%setup -q -T -D -a 23
%setup -q -T -D -a 24
%patch -p0
%build
%install
rm -rf $RPM_BUILD_ROOT
%{l_prefix}/bin/perl-openpkg prepare
%{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT