commit aa0e424607a054367d0fe13c5ce2ccc6cbbbca65 Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Tue Dec 23 11:53:17 2014 +0000 Update to 1.001011 - New upstream release 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 perl-Test-Simple.spec | 99 +++++++++++++++++++++++++++++++++++------------- sources | 2 +- 2 files changed, 73 insertions(+), 28 deletions(-) --- diff --git a/perl-Test-Simple.spec b/perl-Test-Simple.spec index b5248e3..52fcbef 100644 --- a/perl-Test-Simple.spec +++ b/perl-Test-Simple.spec @@ -1,40 +1,58 @@ +# For versioned provides +%global T_T_Version 0.111 +%global T_u_o_Version 0.13 + Name: perl-Test-Simple Summary: Basic utilities for writing tests -Version: 1.001009 +Version: 1.001011 Release: 1%{?dist} License: GPL+ or Artistic -Group: Development/Libraries 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: perl -BuildRequires: perl(base) -BuildRequires: perl(Carp) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.75 +# Module Runtime BuildRequires: perl(Config) -BuildRequires: perl(Cwd) BuildRequires: perl(Data::Dumper) BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(File::Spec) BuildRequires: perl(IO::Handle) -BuildRequires: perl(IO::Pipe) -BuildRequires: perl(lib) BuildRequires: perl(overload) +BuildRequires: perl(PerlIO) BuildRequires: perl(Scalar::Util) >= 1.13 BuildRequires: perl(strict) BuildRequires: perl(Symbol) +BuildRequires: perl(Term::ANSIColor) BuildRequires: perl(Test::Harness) >= 2.03 +BuildRequires: perl(threads::shared) BuildRequires: perl(vars) BuildRequires: perl(warnings) +# Test Suite +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Cwd) +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Spec) +BuildRequires: perl(IO::Pipe) +BuildRequires: perl(lib) +BuildRequires: perl(POSIX) +BuildRequires: perl(threads) +# Runtime Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Data::Dumper) Requires: perl(overload) +Requires: perl(PerlIO) Requires: perl(Scalar::Util) >= 1.13 +Requires: perl(Term::ANSIColor) Requires: perl(Test::Harness) >= 2.03 +Requires: perl(threads::shared) -## testing -#Requires: perl-tests -#Requires: /usr/bin/prove +# Test-Tester and Test-use-ok integrated at version 1.001010 +Obsoletes: perl-Test-Tester < 0.109-7 +Provides: perl-Test-Tester = %{T_T_Version}-1%{?dist} +Obsoletes: perl-Test-use-ok < 0.11-7 +Provides: perl-Test-use-ok = %{T_u_o_Version}-1%{?dist} %{?perl_default_filter} @@ -47,39 +65,66 @@ This package is the CPAN component of the dual-lifed core package Test-Simple. %prep %setup -q -n Test-Simple-%{version} +# lib/01-basic.t merged to wrong directory +# https://github.com/Test-More/test-more/commit/ff91352 +mv lib/01-basic.t t/ +sed -i -e 's|^lib/01-basic.t$|t/01-basic.t|' MANIFEST + +# Ensure version consistency for provides +perl -Ilib -MTest::Tester -MTest::use::ok -e ' + 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};' + %build -perl Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 make %{?_smp_mflags} %install -make pure_install DESTDIR=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +make install DESTDIR=%{buildroot} %{_fixperms} %{buildroot} %check -make test - -#cd %%{_libexecdir}/perl5-tests/perl-tests/ -#prove -I %%{buildroot}/blib -r t/ +make test AUTHOR_TESTING=1 %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 -%{_mandir}/man3/Test::Builder.3pm* -%{_mandir}/man3/Test::Builder::IO::Scalar.3pm* -%{_mandir}/man3/Test::Builder::Module.3pm* -%{_mandir}/man3/Test::Builder::Tester.3pm* -%{_mandir}/man3/Test::Builder::Tester::Color.3pm* -%{_mandir}/man3/Test::More.3pm* -%{_mandir}/man3/Test::Simple.3pm* -%{_mandir}/man3/Test::Tutorial.3pm* +%{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 +* Tue Dec 23 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 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 <paul@xxxxxxxxxxxx> - 1.001009-1 - Update to 1.001009 - Backport cmp_ok fix from alphas (GH#478) diff --git a/sources b/sources index 490585f..7fa6954 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -45b8942055352fc20543d24b6f5b9a59 Test-Simple-1.001009.tar.gz +38c925dc6b427cdc3831aaed685f952a Test-Simple-1.001011.tar.gz -- 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