%{?scl:%scl_package perl-Test-Simple} # For versioned provides %global T_T_Version 0.114 %global T_u_o_Version 0.16 Name: %{?scl_prefix}perl-Test-Simple Summary: Basic utilities for writing tests Version: 1.001014 Release: 2%{?dist} # CC0: lib/ok.pm # Public Domain: lib/Test/Tutorial.pod # GPL+ or Artistic: the rest of the distribution License: (GPL+ or Artistic) and CC0 and Public Domain URL: http://search.cpan.org/dist/Test-Simple Source0: http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Test-Simple-%{version}.tar.gz BuildArch: noarch # Module Build BuildRequires: %{?scl_prefix}perl BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) >= 6.75 # Module Runtime BuildRequires: %{?scl_prefix}perl(Config) BuildRequires: %{?scl_prefix}perl(Data::Dumper) BuildRequires: %{?scl_prefix}perl(Exporter) BuildRequires: %{?scl_prefix}perl(IO::Handle) BuildRequires: %{?scl_prefix}perl(overload) BuildRequires: %{?scl_prefix}perl(PerlIO) BuildRequires: %{?scl_prefix}perl(Scalar::Util) >= 1.13 BuildRequires: %{?scl_prefix}perl(strict) BuildRequires: %{?scl_prefix}perl(Symbol) BuildRequires: %{?scl_prefix}perl(Term::ANSIColor) BuildRequires: %{?scl_prefix}perl(Test::Harness) >= 2.03 BuildRequires: %{?scl_prefix}perl(threads::shared) BuildRequires: %{?scl_prefix}perl(vars) BuildRequires: %{?scl_prefix}perl(warnings) # Test Suite BuildRequires: %{?scl_prefix}perl(base) BuildRequires: %{?scl_prefix}perl(Carp) BuildRequires: %{?scl_prefix}perl(Cwd) BuildRequires: %{?scl_prefix}perl(File::Basename) BuildRequires: %{?scl_prefix}perl(File::Spec) BuildRequires: %{?scl_prefix}perl(IO::Pipe) BuildRequires: %{?scl_prefix}perl(lib) BuildRequires: %{?scl_prefix}perl(List::Util) BuildRequires: %{?scl_prefix}perl(POSIX) BuildRequires: %{?scl_prefix}perl(threads) # Runtime Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'})) Requires: %{?scl_prefix}perl(Data::Dumper) Requires: %{?scl_prefix}perl(overload) Requires: %{?scl_prefix}perl(PerlIO) Requires: %{?scl_prefix}perl(Scalar::Util) >= 1.13 Requires: %{?scl_prefix}perl(Term::ANSIColor) Requires: %{?scl_prefix}perl(Test::Harness) >= 2.03 Requires: %{?scl_prefix}perl(threads::shared) # Test-Tester and Test-use-ok integrated at version 1.001010 Obsoletes: %{?scl_prefix}perl-Test-Tester < 0.109-7 Provides: %{?scl_prefix}perl-Test-Tester = %{T_T_Version}-1%{?dist} Obsoletes: %{?scl_prefix}perl-Test-use-ok < 0.11-7 Provides: %{?scl_prefix}perl-Test-use-ok = %{T_u_o_Version}-1%{?dist} %{?perl_default_filter} %description This package provides the bulk of the core testing facilities. For more information, see perldoc for Test::Simple, Test::More, etc. This package is the CPAN component of the dual-lifed core package Test-Simple. %prep %setup -q -n Test-Simple-%{version} # Ensure version consistency for provides %{?scl:scl enable %{scl} '} perl -Ilib -MTest::Tester -MTest::use::ok -e %{?scl:'"}'%{?scl:"'} die "Inconsistent Test::Tester version: expected %{T_T_Version} / got $Test::Tester::VERSION\n" unless $Test::Tester::VERSION == %{T_T_Version}; die "Inconsistent Test::use::ok version: expected %{T_u_o_Version} / got $Test::use::ok::VERSION\n" unless $Test::use::ok::VERSION == %{T_u_o_Version};%{?scl:'"}'%{?scl:"'} %{?scl:'} %build %{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 && make %{?_smp_mflags}%{?scl:'} %install %{?scl:scl enable %{scl} '}make install DESTDIR=%{buildroot}%{?scl:'} %{_fixperms} %{buildroot} %check %{?scl:scl enable %{scl} '}make test AUTHOR_TESTING=1%{?scl:'} %files %doc Changes README examples/ t/ %dir %{perl_vendorlib}/Test/ %{perl_vendorlib}/ok.pm %{perl_vendorlib}/Test/Builder.pm %{perl_vendorlib}/Test/Builder/ %{perl_vendorlib}/Test/More.pm %{perl_vendorlib}/Test/Simple.pm %{perl_vendorlib}/Test/Tester.pm %{perl_vendorlib}/Test/Tester/ %doc %{perl_vendorlib}/Test/Tutorial.pod %{perl_vendorlib}/Test/use/ %{_mandir}/man3/ok.3* %{_mandir}/man3/Test::Builder.3* %{_mandir}/man3/Test::Builder::IO::Scalar.3* %{_mandir}/man3/Test::Builder::Module.3* %{_mandir}/man3/Test::Builder::Tester.3* %{_mandir}/man3/Test::Builder::Tester::Color.3* %{_mandir}/man3/Test::More.3* %{_mandir}/man3/Test::Simple.3* %{_mandir}/man3/Test::Tester.3* %{_mandir}/man3/Test::Tester::Capture.3* %{_mandir}/man3/Test::Tester::CaptureRunner.3* %{_mandir}/man3/Test::Tutorial.3* %{_mandir}/man3/Test::use::ok.3* %changelog * Wed Mar 11 2015 Petr Šabata - 1.001014-2 - Correct the license tag (#1198678) * Wed Jan 7 2015 Paul Howarth - 1.001014-1 - Update to 1.001014 - Fix a unit test that broke on some platforms with spaces in the $^X path - Add a test to ensure that the Changes file is updated * Wed Dec 24 2014 Paul Howarth - 1.001012-1 - Update to 1.001012 - Move test that was dropped in the wrong directory * Tue Dec 23 2014 Paul Howarth - 1.001011-1 - Update to 1.001011 - Fix windows test bug (GH#491) - Integrate Test::Tester and Test::use::ok for easier downgrade from trial - Remove POD Coverage test - Obsolete/Provide perl-Test-Tester and perl-Test-use-ok - Classify buildreqs by usage - Use features from recent ExtUtils::MakeMaker to simplify spec - Run tests with AUTHOR_TESTING=1 so we do the threads test too * Tue Nov 4 2014 Paul Howarth - 1.001009-1 - Update to 1.001009 - Backport cmp_ok fix from alphas (GH#478) * Thu Oct 16 2014 Paul Howarth - 1.001008-1 - Update to 1.001008 - Fix subtest name when skip_all is used * Tue Sep 9 2014 Paul Howarth - 1.001006-1 - Update to 1.001006 - Documentation updates - Subtests accept args - Outdent subtest diag - Changed install path for perl 5.12 or higher * Tue Aug 26 2014 Jitka Plesnikova - 1.001003-3 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.001003-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Mar 22 2014 Paul Howarth - 1.001003-1 - Update to 1.001003 - Documentation updates for maintainer change - This release by EXODIST -> update source URL - Drop obsoletes/provides for old tests sub-package * Tue Nov 5 2013 Paul Howarth - 1.001002-1 - Update to 1.001002 - Restore ability to use regex with test_err and test_out (CPAN RT#89655) - Drop upstreamed regex patch * Sat Oct 12 2013 Paul Howarth - 0.99-1 - 0.99 bump - This release by RJBS -> update source URL * Fri Aug 09 2013 Petr Pisar - 0.98.05-3 - Pass regular expression intact * Sun Aug 04 2013 Fedora Release Engineering - 0.98.05-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 15 2013 Petr Pisar - 0.98.05-1 - 0.98_05 bump * Fri Jul 12 2013 Petr Pisar - 0.98-244 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.98-243 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Nov 21 2012 Jitka Plesnikova - 0.98-242 - Update dependencies and comments * Thu Aug 23 2012 Paul Howarth - 0.98-241 - Merge tests sub-package back into main package - Don't need to remove empty directories from the buildroot - Drop %%defattr, redundant since rpm 4.4 - Make %%files list more explicit - Don't use macros for commands - Mark Tutorial.pod as %%doc - Drop explicit dependency on perl-devel * Mon Aug 13 2012 Marcela Mašláňová - 0.98-240 - Bump release to override sub-package from perl.spec * Fri Jul 20 2012 Fedora Release Engineering - 0.98-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Jun 06 2012 Petr Pisar - 0.98-6 - Perl 5.16 rebuild * Thu May 31 2012 Petr Pisar - 0.98-5 - Specify all dependencies * Fri Jan 13 2012 Fedora Release Engineering - 0.98-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Aug 16 2011 Marcela Mašláňová - 0.98-3 - Change path on vendor, so our debuginfo are not conflicting with perl core debuginfos * Fri Jun 17 2011 Marcela Mašláňová - 0.98-2 - Perl mass rebuild * Thu Feb 24 2011 Iain Arnell - 0.98-1 - Update to latest upstream version * Wed Feb 09 2011 Fedora Release Engineering - 0.96-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Nov 20 2010 Iain Arnell - 0.96-1 - Update to latest upstream version - Clean up spec for modern rpmbuild * Fri May 07 2010 Marcela Maslanova - 0.94-2 - Mass rebuild with perl-5.12.0 * Tue Mar 16 2010 Chris Weyl - 0.94-1 - Specfile by Fedora::App::MaintainerTools 0.006