rpms/perl-Crypt-DH/devel perl-Crypt-DH.spec,1.9,1.10
Paul Howarth
pghmcfc at fedoraproject.org
Sat Nov 8 15:27:00 UTC 2008
Author: pghmcfc
Update of /cvs/pkgs/rpms/perl-Crypt-DH/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26129
Modified Files:
perl-Crypt-DH.spec
Log Message:
- BuildRequire and Require a GMP support module, either Math::GMP or
Math::BigInt::GMP depending on how recent Math::BigInt is
Index: perl-Crypt-DH.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Crypt-DH/devel/perl-Crypt-DH.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- perl-Crypt-DH.spec 6 Mar 2008 15:09:50 -0000 1.9
+++ perl-Crypt-DH.spec 8 Nov 2008 15:26:30 -0000 1.10
@@ -4,7 +4,7 @@
Summary: Perl module implementing the Diffie-Hellman key exchange system
Name: perl-Crypt-DH
Version: 0.06
-Release: 8%{?dist}
+Release: 9%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Url: http://search.cpan.org/dist/Crypt-DH/
@@ -14,6 +14,16 @@
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More)
+# Pull in Math::BigInt::GMP for GMP support for suitably recent versions of Math::BigInt
+# else use Math::GMP
+%if %(%{__perl} -MMath::BigInt -e 'use Math::BigInt 1.87;' 2>/dev/null && echo 1 || echo 0)
+BuildRequires: perl(Math::BigInt::GMP)
+Requires: perl(Math::BigInt::GMP)
+%else
+BuildRequires: perl(Math::GMP)
+Requires: perl(Math::GMP)
+%endif
+
%description
Crypt::DH is a Perl implementation of the Diffie-Hellman key exchange system.
Diffie-Hellman is an algorithm by which two parties can agree on a shared
@@ -48,8 +58,12 @@
%{_mandir}/man3/Crypt::DH.3pm*
%changelog
+* Tue Nov 4 2008 Paul Howarth <paul at city-fan.org> 0.06-9
+- BuildRequire and Require a GMP support module, either Math::GMP or
+ Math::BigInt::GMP depending on how recent Math::BigInt is
+
* Thu Mar 6 2008 Tom "spot" Callaway <tcallawa at redhat.com> 0.06-8
-- rebuild for new perl
+- Rebuild for new perl
* Sat Aug 11 2007 Paul Howarth <paul at city-fan.org> 0.06-7
- Clarify license as GPL v1 or later, or Artistic (same as perl)
More information about the perl-devel
mailing list