Omit optional Tk tests on bootstrap

This commit is contained in:
Petr Písař 2012-06-01 08:26:34 +02:00
parent 64b673f5f0
commit 37e6e352d9

View File

@ -1,7 +1,7 @@
%global cpan_version 3.17
Name: perl-Pod-Perldoc
Version: %(eval echo '%{cpan_version}' | tr '_' '.')
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Look up Perl documentation in Pod format
License: GPL+ or Artistic
Group: Development/Libraries
@ -33,10 +33,12 @@ BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(base)
BuildRequires: perl(Test::More)
# Optional tests:
%if !%{defined perl_bootstrap}
BuildRequires: perl(Tk)
%if 0%{?fedora} || 0%{?rhel} < 7
BuildRequires: perl(Tk::Pod)
%endif
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Encode)
Requires: perl(File::Temp) >= 0.22
@ -83,6 +85,9 @@ make test
%{_mandir}/man3/*
%changelog
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 3.17-4
- Omit optional Tk tests on bootstrap
* Wed May 30 2012 Marcela Mašláňová <mmaslano@redhat.com> - 3.17-3
- conditionalize optional BR tests