[perl-App-s2p] Disable a test when bootrapping because of a non-core Devel::FindPerl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 3cc79fa01cd58de4d477dbc94658cb2a83ddf0c1
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Thu Jan 8 10:44:58 2015 +0100

    Disable a test when bootrapping because of a non-core Devel::FindPerl

 perl-App-s2p.spec |   29 +++++++++++++++++++++--------
 1 files changed, 21 insertions(+), 8 deletions(-)
---
diff --git a/perl-App-s2p.spec b/perl-App-s2p.spec
index 517b698..99fe060 100644
--- a/perl-App-s2p.spec
+++ b/perl-App-s2p.spec
@@ -1,6 +1,6 @@
 Name:           perl-App-s2p
 Version:        1.002
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Convert sed script to Perl program
 License:        CC-BY-SA
 Group:          Development/Tools
@@ -8,20 +8,26 @@ URL:            http://search.cpan.org/dist/App-s2p/
 Source0:        http://www.cpan.org/authors/id/L/LE/LEONT/App-s2p-%{version}.tar.gz
 BuildArch:      noarch
 BuildRequires:  perl
-BuildRequires:  perl(Config)
-BuildRequires:  perl(Devel::FindPerl) >= 0.009
 BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
-BuildRequires:  perl(File::Copy)
 BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time:
+BuildRequires:  perl(Config)
 BuildRequires:  perl(integer)
+BuildRequires:  perl(Symbol)
+BuildRequires:  perl(vars)
+# Tests:
+%if !%{defined perl_bootstrap}
+BuildRequires:  perl(Devel::FindPerl) >= 0.009
+BuildRequires:  perl(File::Copy)
+%endif
 BuildRequires:  perl(IO::Handle)
+%if !%{defined perl_bootstrap}
 BuildRequires:  perl(IPC::Open2)
+%endif
 BuildRequires:  perl(IPC::Open3)
-BuildRequires:  perl(strict)
-BuildRequires:  perl(Symbol)
 BuildRequires:  perl(Test::More)
-BuildRequires:  perl(vars)
-BuildRequires:  perl(warnings)
 Conflicts:      perl < 4:5.18.2-300
 
 %description
@@ -29,6 +35,10 @@ This package delivers s2p tool which converts sed scripts to Perl programs.
 
 %prep
 %setup -q -n App-s2p-%{version}
+%if %{defined perl_bootstrap}
+rm t/s2p.t
+sed -i -e '/^t\/s2p\.t/d' MANIFEST
+%endif
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor
@@ -48,6 +58,9 @@ make test
 %{_mandir}/man1/*
 
 %changelog
+* Thu Jan 08 2015 Petr Pisar <ppisar@xxxxxxxxxx> - 1.002-2
+- Disable a test when bootrapping because of a non-core Devel::FindPerl
+
 * Mon Aug 18 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 1.002-1
 - 1.002 bump, update license
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux