commit 304f340d6f5d519af9b070b2cce5c2121c035fc4 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Tue May 22 08:48:03 2012 +0200 Import .gitignore | 1 + perl-Test-NoPlan.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 57 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..289f922 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-NoPlan-v0.0.6.tar.gz diff --git a/perl-Test-NoPlan.spec b/perl-Test-NoPlan.spec new file mode 100644 index 0000000..13c20d4 --- /dev/null +++ b/perl-Test-NoPlan.spec @@ -0,0 +1,55 @@ +Name: perl-Test-NoPlan +Version: 0.0.6 +Release: 1%{?dist} +Summary: Check perl test files for no_plan +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-NoPlan/ +Source0: http://www.cpan.org/authors/id/D/DU/DUNCS/Test-NoPlan-v%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(Module::Build) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Cwd) +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Test::Builder::Module) +BuildRequires: perl(version) +# Tests: +BuildRequires: perl(Test::More) +# Optional tests: +BuildRequires: perl(Test::Pod) >= 1.22 +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +BuildRequires: perl(Pod::Coverage) >= 0.18 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +It is a good idea to ensure you have defined how many tests should be run +within each test script - to catch cases where tests bomb out part way through +so you know how many tests were not actually run. This module checks all your +test plan files to ensure 'no_plan' is not used. + +%prep +%setup -q -n Test-NoPlan-v%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc AUTHORS Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Apr 26 2012 Petr Pisar <ppisar@xxxxxxxxxx> 0.0.6-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..8dfb8ff 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +881e04a943faede5515eea2405d92cb8 Test-NoPlan-v0.0.6.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