[perl-Log-Log4perl] Disable optional tests on RHEL >= 7
Petr Pisar
ppisar at fedoraproject.org
Wed Sep 26 10:02:16 UTC 2012
commit 753c76abefab42d45f022d97567a98e8dff3b938
Author: Petr Písař <ppisar at redhat.com>
Date: Wed Sep 26 12:01:54 2012 +0200
Disable optional tests on RHEL >= 7
perl-Log-Log4perl.spec | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/perl-Log-Log4perl.spec b/perl-Log-Log4perl.spec
index ec8e996..bb097ca 100644
--- a/perl-Log-Log4perl.spec
+++ b/perl-Log-Log4perl.spec
@@ -1,6 +1,6 @@
Name: perl-Log-Log4perl
Version: 1.38
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Log4j implementation for Perl
Group: Development/Libraries
License: GPL+ or Artistic
@@ -31,9 +31,11 @@ BuildRequires: perl(XML::DOM)
# Tests
BuildRequires: perl(Test::More) >= 0.45
# Optional tests
+%if ! (0%{?rhel} >= 7)
BuildRequires: perl(DBD::CSV)
BuildRequires: perl(Log::Dispatch)
BuildRequires: perl(SQL::Statement)
+%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
@@ -67,6 +69,9 @@ make test L4P_ALL_TESTS=1
%changelog
+* Wed Sep 26 2012 Petr Pisar <ppisar at redhat.com> - 1.38-2
+- Disable optional tests on RHEL >= 7
+
* Wed Sep 26 2012 Petr Pisar <ppisar at redhat.com> - 1.38-1
- 1.38 bump
More information about the perl-devel
mailing list