Do not build-require Test::LeakTrace on RHEL >= 7

This commit is contained in:
Petr Písař 2012-10-16 17:28:27 +02:00
parent c18d93a5a7
commit d50bbd5f8c

View File

@ -1,7 +1,7 @@
Name: perl-HTML-Tree
Epoch: 1
Version: 5.02
Release: 5%{?dist}
Release: 6%{?dist}
Summary: HTML tree handling modules for Perl
Group: Development/Libraries
License: GPL+ or Artistic
@ -19,9 +19,11 @@ BuildRequires: perl(Test::Fatal)
%if !%{defined perl_bootstrap}
# HTML::FormatText (perl-HTML-Format) has BR: perl(HTML::TreeBuilder) from this package
BuildRequires: perl(HTML::FormatText)
%if ! (0%{?rhel} >= 7)
# perl-Test-LeakTrace -> perl-Test-Valgrind -> perl-XML-Twig -> perl-HTML-Tree
BuildRequires: perl(Test::LeakTrace)
%endif
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(HTML::Parser) >= 3.46
Requires: perl(HTML::Tagset) >= 3.02
@ -54,6 +56,9 @@ perl Build.PL installdirs=vendor
%{_mandir}/man3/HTML::*3*
%changelog
* Tue Oct 16 2012 Petr Pisar <ppisar@redhat.com> - 1:5.02-6
- Do not build-require Test::LeakTrace on RHEL >= 7
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:5.02-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild