OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 22-Dec-2006 16:35:15 Branch: HEAD Handle: 2006122215351500 Modified files: openpkg-src/perl-crypto perl-crypto.spec Log: add optional PARI based modules Crypt::Random and Crypt::Primes Summary: Revision Changes Path 1.148 +36 -3 openpkg-src/perl-crypto/perl-crypto.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/perl-crypto/perl-crypto.spec ============================================================================ $ cvs diff -u -r1.147 -r1.148 perl-crypto.spec --- openpkg-src/perl-crypto/perl-crypto.spec 17 Nov 2006 11:49:59 -0000 1.147 +++ openpkg-src/perl-crypto/perl-crypto.spec 22 Dec 2006 15:35:15 -0000 1.148 @@ -61,6 +61,8 @@ %define V_digest_crc 0.10 %define V_string_crc32 1.4 %define V_data_uuid 0.148 +%define V_crypt_random 1.25 +%define V_crypt_primes 0.50 # package information Name: perl-crypto @@ -73,7 +75,10 @@ Group: Perl License: GPL/Artistic Version: %{V_perl} -Release: 20061117 +Release: 20061222 + +# package options +%option with_pari no # list of sources Source0: http://www.cpan.org/modules/by-module/Digest/Digest-%{V_digest}.tar.gz @@ -113,6 +118,8 @@ Source34: http://www.cpan.org/modules/by-module/Crypt/Crypt-Twofish2-%{V_crypt_twofish2}.tar.gz Source35: http://www.cpan.org/modules/by-module/Crypt/Crypt-CipherSaber-%{V_crypt_ciphersaber}.tar.gz Source36: http://www.cpan.org/modules/by-module/Crypt/Crypt-DH-%{V_crypt_dh}.tar.gz +Source37: http://www.cpan.org/modules/by-module/Crypt/Crypt-Random-%{V_crypt_random}.tar.gz +Source38: http://www.cpan.org/modules/by-module/Crypt/Crypt-Primes-%{V_crypt_primes}.tar.gz Patch0: perl-crypto.patch # build information @@ -120,8 +127,12 @@ BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126 PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl} -BuildPreReq: perl-mail, openssl -PreReq: perl-mail, openssl +BuildPreReq: perl-util, perl-mail, openssl +PreReq: perl-util, perl-mail, openssl +%if "%{with_pari}" == "yes" +BuildPreReq: pari, pari::with_perl = yes +PreReq: pari, pari::with_perl = yes +%endif AutoReq: no AutoReqProv: no @@ -164,6 +175,10 @@ - Crypt::DH (%{V_crypt_dh}) - String::CRC32 (%{V_string_crc32}) - Data::UUID (%{V_data_uuid}) +%if "%{with_pari}" == "yes" + - Crypt::Random (%{V_crypt_random}) + - Crypt::Primes (%{V_crypt_primes}) +%endif %track prog perl-crypto:Crypt-Blowfish = { @@ -351,6 +366,16 @@ url = http://www.cpan.org/modules/by-module/Crypt/ regex = Crypt-DH-(__VER__)\.tar\.gz } + prog perl-crypto:Crypt-Random = { + version = %{V_crypt_random} + url = http://www.cpan.org/modules/by-module/Crypt/ + regex = Crypt-Random-(__VER__)\.tar\.gz + } + prog perl-crypto:Crypt-Primes = { + version = %{V_crypt_primes} + url = http://www.cpan.org/modules/by-module/Crypt/ + regex = Crypt-Primes-(__VER__)\.tar\.gz + } %prep %setup -q -c @@ -390,6 +415,10 @@ %setup -q -T -D -a 34 %setup -q -T -D -a 35 %setup -q -T -D -a 36 +%if "%{with_pari}" == "yes" + %setup -q -T -D -a 37 + %setup -q -T -D -a 38 +%endif %patch -p0 %build @@ -434,6 +463,10 @@ %{l_prefix}/bin/perl-openpkg -d %{SOURCE34} configure build install %{l_prefix}/bin/perl-openpkg -d %{SOURCE35} configure build install %{l_prefix}/bin/perl-openpkg -d %{SOURCE36} configure build install +%if "%{with_pari}" == "yes" + %{l_prefix}/bin/perl-openpkg -d %{SOURCE37} configure build install + %{l_prefix}/bin/perl-openpkg -d %{SOURCE38} configure build install +%endif %{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` @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org