| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- ##
- ## perl-crypto.spec -- OpenPKG RPM Specification
- ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
- ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
- ## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.com>
- ##
- ## 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 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_crypt_ripemd160 0.04
- %define V_crypt_enigma 1.3
- %define V_crypt_unixcrypt 1.0
- %define V_crypt_passwdmd5 1.2
- %define V_crypt_des 2.03
- %define V_crypt_des_ede3 0.01
- %define V_crypt_rc4 2.02
- %define V_crypt_rc5 1.01
- %define V_crypt_rc6 1.0
- %define V_crypt_ghost 1.00
- %define V_crypt_blowfish 2.09
- %define V_crypt_twofish 2.12
- %define V_crypt_rot13 0.04
- %define V_crypt_null 1.02
- %define V_crypt_ecb 1.1
- %define V_crypt_cbc 2.02
- #%define V_crypt_cbceasy 0.24
- #%define V_crypt_random 1.11
- # 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 [REL]
- Group: Language
- License: GPL/Artistic
- Version: 20020512
- Release: 20020512
- # list of sources
- 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}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20020206, perl, gcc, gzip
- PreReq: OpenPKG, openpkg >= 20020206, perl
- AutoReq: no
- 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})
- - 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_ghost})
- - 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})
- # - Crypt::CBCeasy (%{V_crypt_cbceasy})
- # - Crypt::Random (%{V_crypt_random})
- %prep
- %setup0 -q -c -n %{name}-%{version}
- %build
- %install
- 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
- 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}
- do
- %{l_gzip} -dc $mod | %{l_tar} xf -
- dir=`echo "$mod" | sed -e 's;^.*/\([^/]*\)\.tar\.gz$;\1;'`
- cd $dir
- chmod -R u+rw .
- cp Makefile.PL Makefile.PL.orig
- sed -e "s:\$^X:'$perl':g" <Makefile.PL.orig >Makefile.PL
- $perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{l_prefix} PERL=$perl FULLPERL=$perl </dev/null
- %{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl all
- %{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl install
- cd ..
- done
- # clean up
- find $RPM_BUILD_ROOT%{l_prefix} -name perllocal.pod -print | xargs rm -f
- find $RPM_BUILD_ROOT%{l_prefix} -name .packlist -print | xargs rm -f
- find $RPM_BUILD_ROOT%{l_prefix} -type d -depth -print | (xargs rmdir >/dev/null 2>&1 || true)
- # avoid conflicts
- eval `$perl -V:installarchlib -V:installprivlib -V:installsitearch -V:installsitelib`
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
- %{l_files_std} \
- '%not %dir %{l_prefix}/lib/perl5' \
- '%not %dir %{l_prefix}/lib/perl5/*' \
- "%not %dir $installarchlib" \
- "%not %dir $installprivlib" \
- "%not %dir $installsitearch" \
- "%not %dir $installsitelib" \
- "%not %dir $installarchlib/auto" \
- "%not %dir $installprivlib/auto" \
- "%not %dir $installsitearch/auto" \
- "%not %dir $installsitelib/auto"
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|