commit aa9a601d7e81d5de1f325171cc7951e5b1a355e8 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Tue May 15 09:01:56 2012 +0200 Import .gitignore | 1 + Test-AutoLoader-0.03-Fix-test-plan-number.patch | 33 +++++++++++++ perl-Test-AutoLoader.spec | 58 +++++++++++++++++++++++ sources | 1 + 4 files changed, 93 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..6a0e150 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-AutoLoader-0.03.tar.gz diff --git a/Test-AutoLoader-0.03-Fix-test-plan-number.patch b/Test-AutoLoader-0.03-Fix-test-plan-number.patch new file mode 100644 index 0000000..5e060d1 --- /dev/null +++ b/Test-AutoLoader-0.03-Fix-test-plan-number.patch @@ -0,0 +1,33 @@ +From f58959906ee7e8f704992c632d7af11b61c68668 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@xxxxxxxxxx> +Date: Thu, 26 Apr 2012 11:33:21 +0200 +Subject: [PATCH] Fix test plan number + +<https://rt.cpan.org/Public/Bug/Display.html?id=66399> +--- + t/00basic.t | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/t/00basic.t b/t/00basic.t +index a6b2345..94f1a4f 100644 +--- a/t/00basic.t ++++ b/t/00basic.t +@@ -7,7 +7,7 @@ BEGIN { + eval "use Test::Pod 0.95"; + $NO_TEST_POD = $@; + } +-use Test::More tests=>54; ++use Test::More tests=>64; + use POSIX; + use strict; + +@@ -71,5 +71,5 @@ foreach my $test (@tests) { + if ($CAN_CHMOD) { + chmod 0755, @unreadable or warn "Couldn't chmod @unreadable back: $!\n"; + } else { +- SKIP:{skip "Couldn't set up unreadable directory for test",5} ++ SKIP:{skip "Couldn't set up unreadable directory for test",6} + } +-- +1.7.7.6 + diff --git a/perl-Test-AutoLoader.spec b/perl-Test-AutoLoader.spec new file mode 100644 index 0000000..88ba26c --- /dev/null +++ b/perl-Test-AutoLoader.spec @@ -0,0 +1,58 @@ +Name: perl-Test-AutoLoader +Version: 0.03 +Release: 1%{?dist} +Summary: Testing utility for autosplit/autoloaded modules +License: GPL+ +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-AutoLoader/ +Source0: http://www.cpan.org/authors/id/B/BW/BWARFIELD/NRGN/Test-AutoLoader-%{version}.tar.gz +# Fix test plan number (RT#66399) +Patch0: Test-AutoLoader-0.03-Fix-test-plan-number.patch +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time: +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Test::Builder) +# Tests: +BuildRequires: perl(AutoLoader) +BuildRequires: perl(Test::More) +# Optional tests: +BuildRequires: perl(Test::Pod) >= 0.95 +BuildRequires: perl(Test::Tester) >= 0.08 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This single-purpose module attempts to eliminate uncaught syntax errors or +other obvious goofs in subroutines that are autosplit, and hence not looked +at by perl -c Module.pm. Ideally, this module will become unnecessary as +you reach full coverage of those subroutines in your unit tests. Until that +happy day, however, this should provide a quick and dirty backstop for +embarrassing typos. + +%prep +%setup -q -n Test-AutoLoader-%{version} +%patch0 -p1 + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +# Tests expect non-localized messages (RT#62839) +LC_ALL=C make test + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Apr 26 2012 Petr Pisar <ppisar@xxxxxxxxxx> 0.03-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..b36ee72 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e43d2a256f9ac1bbf3768c65002ad9f9 Test-AutoLoader-0.03.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