|
|
@@ -24,11 +24,14 @@
|
|
|
##
|
|
|
|
|
|
# versions of individual parts
|
|
|
+%define P_archname i386-freebsd
|
|
|
+%define V_perl 5.6.1
|
|
|
+%define V_digest_sha1 2.01
|
|
|
+%define V_class_loader 2.02
|
|
|
%define V_digest_md2 2.00
|
|
|
%define V_digest_md4 1.1
|
|
|
%define V_digest_md5 2.20
|
|
|
%define V_digest_hmac 1.01
|
|
|
-%define V_digest_sha1 2.01
|
|
|
%define V_crypt_ripemd160 0.04
|
|
|
%define V_crypt_enigma 1.3
|
|
|
%define V_crypt_unixcrypt 1.0
|
|
|
@@ -43,10 +46,10 @@
|
|
|
%define V_crypt_twofish 2.12
|
|
|
%define V_crypt_rot13 0.04
|
|
|
%define V_crypt_null 1.02
|
|
|
-%define V_crypt_random 1.11
|
|
|
%define V_crypt_ecb 1.1
|
|
|
%define V_crypt_cbc 2.02
|
|
|
-%define V_crypt_cbceasy 0.24
|
|
|
+#%define V_crypt_cbceasy 0.24
|
|
|
+#%define V_crypt_random 1.11
|
|
|
|
|
|
# package information
|
|
|
Name: perl-crypto
|
|
|
@@ -61,29 +64,30 @@ Version: 20020512
|
|
|
Release: 20020512
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: http://www.cpan.org/modules/by-module/Digest/Digest-MD2-%{V_digest_md2}.tar.gz
|
|
|
-Source1: http://www.cpan.org/modules/by-module/Digest/Digest-MD4-%{V_digest_md4}.tar.gz
|
|
|
-Source2: http://www.cpan.org/modules/by-module/Digest/Digest-MD5-%{V_digest_md5}.tar.gz
|
|
|
-Source3: http://www.cpan.org/modules/by-module/Digest/Digest-HMAC-%{V_digest_hmac}.tar.gz
|
|
|
-Source4: http://www.cpan.org/modules/by-module/Digest/Digest-SHA1-%{V_digest_sha1}.tar.gz
|
|
|
-Source5: http://www.cpan.org/modules/by-module/Crypt/Crypt-RIPEMD160-%{V_crypt_ripemd160}.tar.gz
|
|
|
-Source6: http://www.cpan.org/modules/by-module/Crypt/Crypt-Enigma-%{V_crypt_enigma}.tar.gz
|
|
|
-Source7: http://www.cpan.org/modules/by-module/Crypt/Crypt-UnixCrypt-%{V_crypt_unixcrypt}.tar.gz
|
|
|
-Source8: http://www.cpan.org/modules/by-module/Crypt/Crypt-PasswdMD5-%{V_crypt_passwdmd5}.tar.gz
|
|
|
-Source9: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES-%{V_crypt_des}.tar.gz
|
|
|
-Source10: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES_EDE3-%{V_crypt_des_ede3}.tar.gz
|
|
|
-Source11: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC4-%{V_crypt_rc4}.tar.gz
|
|
|
-Source12: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC5-%{V_crypt_rc5}.tar.gz
|
|
|
-Source13: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC6-%{V_crypt_rc6}.tar.gz
|
|
|
-Source14: http://www.cpan.org/modules/by-module/Crypt/Crypt-GOST-%{V_crypt_ghost}.tar.gz
|
|
|
-Source15: http://www.cpan.org/modules/by-module/Crypt/Crypt-Blowfish-%{V_crypt_blowfish}.tar.gz
|
|
|
-Source16: http://www.cpan.org/modules/by-module/Crypt/Crypt-Twofish-%{V_crypt_twofish}.tar.gz
|
|
|
-Source17: http://www.cpan.org/modules/by-module/Crypt/Crypt-Rot13-%{V_crypt_rot13}.tar.gz
|
|
|
-Source18: http://www.cpan.org/modules/by-module/Crypt/Crypt-NULL-%{V_crypt_null}.tar.gz
|
|
|
-Source19: http://www.cpan.org/modules/by-module/Crypt/Crypt-Random-%{V_crypt_random}.tar.gz
|
|
|
-Source20: http://www.cpan.org/modules/by-module/Crypt/Crypt-ECB-%{V_crypt_ecb}.tar.gz
|
|
|
-Source21: http://www.cpan.org/modules/by-module/Crypt/Crypt-CBC-%{V_crypt_cbc}.tar.gz
|
|
|
-Source22: http://www.cpan.org/modules/by-module/Crypt/Crypt-CBCeasy-%{V_crypt_cbceasy}.tar.gz
|
|
|
+Source0: http://www.cpan.org/modules/by-module/Digest/Digest-SHA1-%{V_digest_sha1}.tar.gz
|
|
|
+Source1: http://www.cpan.org/modules/by-module/Class/Class-Loader-%{V_class_loader}.tar.gz
|
|
|
+Source2: http://www.cpan.org/modules/by-module/Digest/Digest-MD2-%{V_digest_md2}.tar.gz
|
|
|
+Source3: http://www.cpan.org/modules/by-module/Digest/Digest-MD4-%{V_digest_md4}.tar.gz
|
|
|
+Source4: http://www.cpan.org/modules/by-module/Digest/Digest-MD5-%{V_digest_md5}.tar.gz
|
|
|
+Source5: http://www.cpan.org/modules/by-module/Digest/Digest-HMAC-%{V_digest_hmac}.tar.gz
|
|
|
+Source6: http://www.cpan.org/modules/by-module/Crypt/Crypt-RIPEMD160-%{V_crypt_ripemd160}.tar.gz
|
|
|
+Source7: http://www.cpan.org/modules/by-module/Crypt/Crypt-Enigma-%{V_crypt_enigma}.tar.gz
|
|
|
+Source8: http://www.cpan.org/modules/by-module/Crypt/Crypt-UnixCrypt-%{V_crypt_unixcrypt}.tar.gz
|
|
|
+Source9: http://www.cpan.org/modules/by-module/Crypt/Crypt-PasswdMD5-%{V_crypt_passwdmd5}.tar.gz
|
|
|
+Source10: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES-%{V_crypt_des}.tar.gz
|
|
|
+Source11: http://www.cpan.org/modules/by-module/Crypt/Crypt-DES_EDE3-%{V_crypt_des_ede3}.tar.gz
|
|
|
+Source12: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC4-%{V_crypt_rc4}.tar.gz
|
|
|
+Source13: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC5-%{V_crypt_rc5}.tar.gz
|
|
|
+Source14: http://www.cpan.org/modules/by-module/Crypt/Crypt-RC6-%{V_crypt_rc6}.tar.gz
|
|
|
+Source15: http://www.cpan.org/modules/by-module/Crypt/Crypt-GOST-%{V_crypt_ghost}.tar.gz
|
|
|
+Source16: http://www.cpan.org/modules/by-module/Crypt/Crypt-Blowfish-%{V_crypt_blowfish}.tar.gz
|
|
|
+Source17: http://www.cpan.org/modules/by-module/Crypt/Crypt-Twofish-%{V_crypt_twofish}.tar.gz
|
|
|
+Source18: http://www.cpan.org/modules/by-module/Crypt/Crypt-Rot13-%{V_crypt_rot13}.tar.gz
|
|
|
+Source19: http://www.cpan.org/modules/by-module/Crypt/Crypt-NULL-%{V_crypt_null}.tar.gz
|
|
|
+Source20: http://www.cpan.org/modules/by-module/Crypt/Crypt-ECB-%{V_crypt_ecb}.tar.gz
|
|
|
+Source21: http://www.cpan.org/modules/by-module/Crypt/Crypt-CBC-%{V_crypt_cbc}.tar.gz
|
|
|
+#Source22: http://www.cpan.org/modules/by-module/Crypt/Crypt-CBCeasy-%{V_crypt_cbceasy}.tar.gz
|
|
|
+#Source23: http://www.cpan.org/modules/by-module/Crypt/Crypt-Random-%{V_crypt_random}.tar.gz
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -95,11 +99,12 @@ AutoReqProv: no
|
|
|
|
|
|
%description
|
|
|
Perl module bundle related to Cryptography.
|
|
|
+ - Digest::SHA1 (%{V_digest_sha1})
|
|
|
+ - Class::Loader (%{V_class_loader})
|
|
|
- Digest::MD2 (%{V_digest_md2})
|
|
|
- Digest::MD4 (%{V_digest_md4})
|
|
|
- Digest::MD5 (%{V_digest_md5})
|
|
|
- Digest::HMAC (%{V_digest_hmac})
|
|
|
- - Digest::SHA1 (%{V_digest_sha1})
|
|
|
- Crypt::RIPEMD160 (%{V_crypt_ripemd160})
|
|
|
- Crypt::Enigma (%{V_crypt_enigma})
|
|
|
- Crypt::UnixCrypt::%{V_crypt_unixcrypt})
|
|
|
@@ -114,10 +119,10 @@ AutoReqProv: no
|
|
|
- Crypt::Twofish (%{V_crypt_twofish})
|
|
|
- Crypt::Rot13 (%{V_crypt_rot13})
|
|
|
- Crypt::NULL (%{V_crypt_null})
|
|
|
- - Crypt::Random (%{V_crypt_random})
|
|
|
- Crypt::ECB (%{V_crypt_ecb})
|
|
|
- Crypt::CBC (%{V_crypt_cbc})
|
|
|
- - Crypt::CBCeasy (%{V_crypt_cbceasy})
|
|
|
+# - Crypt::CBCeasy (%{V_crypt_cbceasy})
|
|
|
+# - Crypt::Random (%{V_crypt_random})
|
|
|
|
|
|
%prep
|
|
|
%setup0 -q -c -n %{name}-%{version}
|
|
|
@@ -128,13 +133,25 @@ AutoReqProv: no
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/lib/perl5
|
|
|
|
|
|
+ # create a wrapper script which finds the includes
|
|
|
+# FIXME eval `grep "^archname=" $RPM_BUILD_ROOT%{l_prefix}/lib/perl5/%{V_perl}/*/Config.pm`
|
|
|
+ perl=$RPM_BUILD_ROOT/perl
|
|
|
+ echo "#!/bin/sh" >$perl
|
|
|
+ echo "exec %{l_prefix}/bin/perl \\" >>$perl
|
|
|
+ echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/%{V_perl} \\" >>$perl
|
|
|
+ echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/%{V_perl}/%{P_archname} \\" >>$perl
|
|
|
+ echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/site_perl \\" >>$perl
|
|
|
+ echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/site_perl/%{V_perl} \\" >>$perl
|
|
|
+ echo " -I$RPM_BUILD_ROOT%{l_prefix}/lib/perl5/site_perl/%{V_perl}/%{P_archname} \\" >>$perl
|
|
|
+ echo " \"\$@\"" >>$perl
|
|
|
+ chmod a+x $perl
|
|
|
+
|
|
|
# uncompress and build modules
|
|
|
- perl=%{l_prefix}/bin/perl
|
|
|
for mod in \
|
|
|
%{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} \
|
|
|
%{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} \
|
|
|
%{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE17} \
|
|
|
- %{SOURCE18} %{SOURCE19} %{SOURCE20} %{SOURCE21} %{SOURCE22}
|
|
|
+ %{SOURCE18} %{SOURCE19} %{SOURCE20} %{SOURCE21}
|
|
|
do
|
|
|
%{l_gzip} -dc $mod | %{l_tar} xf -
|
|
|
dir=`echo "$mod" | sed -e 's;^.*/\([^/]*\)\.tar\.gz$;\1;'`
|