[perl-CPAN-Meta-YAML] Disable author tests on bootstrap

Petr Pisar ppisar at fedoraproject.org
Fri Jun 1 12:19:12 UTC 2012


commit 5fcfb2dd2c1cf12d51613d1dd451fb365001bfa4
Author: Petr Písař <ppisar at redhat.com>
Date:   Fri Jun 1 14:18:32 2012 +0200

    Disable author tests on bootstrap

 perl-CPAN-Meta-YAML.spec |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/perl-CPAN-Meta-YAML.spec b/perl-CPAN-Meta-YAML.spec
index 430897d..f35b8ca 100644
--- a/perl-CPAN-Meta-YAML.spec
+++ b/perl-CPAN-Meta-YAML.spec
@@ -3,7 +3,7 @@
 
 Name:		perl-CPAN-Meta-YAML
 Version:	0.008
-Release:	3%{?dist}
+Release:	4%{?dist}
 Summary:	Read and write a subset of YAML for CPAN Meta files
 License:	GPL+ or Artistic
 Group:		Development/Libraries
@@ -14,12 +14,15 @@ BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:	noarch
 BuildRequires:	perl(ExtUtils::MakeMaker)
 BuildRequires:	perl(File::Spec)
+# Tests:
+BuildRequires:	perl(Test::More)
+BuildRequires:	perl(YAML)
+%if !%{defined perl_bootstrap}
 # Version 1.113620 needed for "UTF"; RHEL-7 package cannot have buildreq from EPEL-7
 %if 0%{?rhel} < 7
 BuildRequires:	perl(Pod::Wordlist::hanekomu) >= 1.113620
 %endif
 BuildRequires:	perl(Test::CPAN::Meta)
-BuildRequires:	perl(Test::More)
 BuildRequires:	perl(Test::Pod)
 BuildRequires:	perl(Test::Requires)
 BuildRequires:	perl(Test::Spelling), aspell-en
@@ -27,7 +30,7 @@ BuildRequires:	perl(Test::Spelling), aspell-en
 %if 0%{?fedora} || 0%{?rhel} > 6
 BuildRequires:	perl(Test::Version)
 %endif
-BuildRequires:	perl(YAML)
+%endif
 Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
@@ -54,6 +57,9 @@ find %{buildroot} -type f -name .packlist -exec rm -f {} \;
 %{_fixperms} %{buildroot}
 
 %check
+%if %{defined perl_bootstrap}
+rm -rf xt
+%endif
 make test TEST_FILES="t/*.t xt/*/*.t"
 
 %clean
@@ -65,6 +71,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/CPAN::Meta::YAML.3pm*
 
 %changelog
+* Fri Jun 01 2012 Petr Pisar <ppisar at redhat.com> - 0.008-4
+- Disable author tests on bootstrap
+
 * Mon Apr 23 2012 Marcela Mašláňová <mmaslano at redhat.com> - 0.008-3
 - Data::Dumper is not really needed, dependencies must be fixed in YAML
 


More information about the scm-commits mailing list