[perl-Crypt-CBC] Fix FTBFS, improve test coverage

Paul Howarth pghmcfc at fedoraproject.org
Sat Apr 21 21:11:41 UTC 2012


commit 2323d5be5489f635f4705c97e7b3c5f9bcbca062
Author: Paul Howarth <paul at city-fan.org>
Date:   Sat Apr 21 22:08:32 2012 +0100

    Fix FTBFS, improve test coverage
    
    - BR: perl(bytes), perl(constant), perl(Digest::MD5) - required by module
    - BR: perl(Crypt::Blowfish), perl(Crypt::Blowfish_PP), perl(Crypt::DES),
      perl(Crypt::Rijndael) for improved test coverage, except when bootstrapping

 perl-Crypt-CBC.spec |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/perl-Crypt-CBC.spec b/perl-Crypt-CBC.spec
index 7e1f5d1..5f8d78b 100644
--- a/perl-Crypt-CBC.spec
+++ b/perl-Crypt-CBC.spec
@@ -1,7 +1,7 @@
 Summary: Encrypt Data with Cipher Block Chaining Mode
 Name: perl-Crypt-CBC
 Version: 2.29
-Release: 9%{?dist}
+Release: 10%{?dist}
 # Upstream confirms that they're under the same license as perl.
 # Wording in CBC.pm is less than clear, but still.
 License: GPL+ or Artistic
@@ -11,7 +11,20 @@ Source0: http://search.cpan.org/CPAN/authors/id/L/LD/LDS/Crypt-CBC-%{version}.ta
 BuildArch: noarch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires: perl(bytes)
+BuildRequires: perl(constant)
+BuildRequires: perl(Digest::MD5)
 BuildRequires: perl(ExtUtils::MakeMaker)
+# Modules used for test suite, skipped when bootstrapping as
+# some of these modules use Crypt::CBC themselves
+# Crypt::CAST5 not yet packaged in Fedora
+# Crypt::IDEA is unavailable due to patents
+%if 0%{!?perl_bootstrap:1}
+BuildRequires: perl(Crypt::Blowfish)
+BuildRequires: perl(Crypt::Blowfish_PP)
+BuildRequires: perl(Crypt::DES)
+BuildRequires: perl(Crypt::Rijndael)
+%endif
 
 %description
 This is Crypt::CBC, a Perl-only implementation of the cryptographic
@@ -48,6 +61,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*.3*
 
 %changelog
+* Sat Apr 21 2012 Paul Howarth <paul at city-fan.org> - 2.29-10
+- BR: perl(bytes), perl(constant), perl(Digest::MD5) - required by module
+- BR: perl(Crypt::Blowfish), perl(Crypt::Blowfish_PP), perl(Crypt::DES),
+  perl(Crypt::Rijndael) for improved test coverage, except when bootstrapping
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.29-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
@@ -58,7 +76,7 @@ rm -rf $RPM_BUILD_ROOT
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
 * Wed Dec 15 2010 Marcela Maslanova <mmaslano at redhat.com> - 2.29-6
-- 661697 rebuild for fixing problems with vendorach/lib
+- Rebuild to fix problems with vendorarch/lib (#661697)
 
 * Fri Apr 30 2010 Marcela Maslanova <mmaslano at redhat.com> - 2.29-5
 - Mass rebuild with perl-5.12.0


More information about the scm-commits mailing list