[perl-SQL-Abstract] Skip DBIx::Class tests on boostrap

Petr Pisar ppisar at fedoraproject.org
Thu Feb 5 17:11:48 UTC 2015


commit 68f2fa45ed587c3329c5d014441c795a4aa21ff2
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Feb 5 18:11:13 2015 +0100

    Skip DBIx::Class tests on boostrap

 perl-SQL-Abstract.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/perl-SQL-Abstract.spec b/perl-SQL-Abstract.spec
index f473567..70db8bf 100644
--- a/perl-SQL-Abstract.spec
+++ b/perl-SQL-Abstract.spec
@@ -1,6 +1,6 @@
 Name:           perl-SQL-Abstract
 Version:        1.81
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Generate SQL from Perl data structures
 Group:          Development/Libraries
 License:        GPL+ or Artistic
@@ -19,8 +19,10 @@ BuildRequires:  perl(base)
 BuildRequires:  perl(Carp)
 BuildRequires:  perl(constant)
 BuildRequires:  perl(Data::Dumper)
+%if !%{defined perl_bootstrap}
 # DBIx::Class::Storage::Statistic used only with optional tests
 BuildRequires:  perl(DBIx::Class::Storage::Statistics)
+%endif
 BuildRequires:  perl(Exporter) >= 5.57
 BuildRequires:  perl(Hash::Merge) >= 0.12
 BuildRequires:  perl(List::Util)
@@ -45,8 +47,10 @@ BuildRequires:  perl(Storable)
 BuildRequires:  perl(Test::Exception) >= 0.31
 BuildRequires:  perl(Test::More) >= 0.92
 BuildRequires:  perl(Test::Warn)
+%if !%{defined perl_bootstrap}
 # Optional tests:
 BuildRequires:  perl(DBIx::Class) >= 0.08124
+%endif
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 Requires:       perl(Data::Dumper)
 Requires:       perl(Exporter) >= 5.57
@@ -95,7 +99,7 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
-SQLATEST_TESTER=1 make test
+make test
 
 %files
 %doc Changes
@@ -110,6 +114,9 @@ SQLATEST_TESTER=1 make test
 %{_mandir}/man3/DBIx::Class::Storage::Debug::PrettyPrint.3pm*
 
 %changelog
+* Thu Feb 05 2015 Petr Pisar <ppisar at redhat.com> - 1.81-3
+- Skip DBIx::Class tests on boostrap
+
 * Wed Dec 03 2014 Petr Pisar <ppisar at redhat.com> - 1.81-2
 - Specify all dependencies (bug #1168882)
 


More information about the scm-commits mailing list