| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313 |
- ##
- ## perl-crypto.spec -- OpenPKG RPM Specification
- ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
- ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
- ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.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 V_perl 5.8.3
- %define V_digest 1.05
- %define V_digest_sha1 2.07
- %define V_digest_sha 4.3.1
- %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_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_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: 20040318
- # 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_ghost}.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-module/Crypt/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_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})
- - 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_ghost}
- 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_cbc}
- 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_rot13}
- 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-module/Crypt/
- 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_rc6}
- url = http://www.cpan.org/modules/by-module/Crypt/
- regex = Crypt-UnixCrypt-(__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_crypt_des}
- url = http://www.cpan.org/modules/by-module/Digest/
- regex = Digest-MD2-(__VER__)\.tar\.gz
- }
- prog perl-crypto:Digest-MD4 = {
- version = %{V_crypt_enigma}
- 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
- %{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
|