commit f601efd7d09abe60233f3c22788e88901b014beb Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Tue Jul 3 14:07:42 2012 +0200 Import .gitignore | 1 + perl-Test-Apocalypse.spec | 123 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 125 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..9f33e33 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-Apocalypse-1.002.tar.gz diff --git a/perl-Test-Apocalypse.spec b/perl-Test-Apocalypse.spec new file mode 100644 index 0000000..b815f8b --- /dev/null +++ b/perl-Test-Apocalypse.spec @@ -0,0 +1,123 @@ +Name: perl-Test-Apocalypse +Version: 1.002 +Release: 1%{?dist} +Summary: Apocalypse's favorite tests bundled into a simple interface +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-Apocalypse/ +Source0: http://www.cpan.org/authors/id/A/AP/APOCAL/Test-Apocalypse-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(Module::Build) +# Run-time: +BuildRequires: perl(Capture::Tiny) >= 0.10 +BuildRequires: perl(CPANPLUS) >= 0.90 +BuildRequires: perl(CPANPLUS::Backend) +BuildRequires: perl(CPANPLUS::Configure) +BuildRequires: perl(Devel::PPPort) >= 3.19 +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Find::Rule) >= 0.32 +BuildRequires: perl(File::Slurp) >= 9999.13 +BuildRequires: perl(File::Spec) >= 3.31 +BuildRequires: perl(File::Which) >= 1.09 +BuildRequires: perl(JSON::Any) >= 1.25 +BuildRequires: perl(Module::CoreList) >= 2.23 +BuildRequires: perl(Module::CPANTS::Analyse) >= 0.85 +BuildRequires: perl(Module::Pluggable) >= 3.9 +BuildRequires: perl(parent) +BuildRequires: perl(Perl::Critic::Utils::Constants) +BuildRequires: perl(Perl::Metrics::Simple) >= 0.13 +BuildRequires: perl(Perl::PrereqScanner) >= 1.000 +BuildRequires: perl(Pod::Coverage::TrustPod) >= 0.092830 +BuildRequires: perl(Task::Perl::Critic) >= 1.007 +BuildRequires: perl(Test::AutoLoader) >= 0.03 +BuildRequires: perl(Test::Block) >= 0.11 +BuildRequires: perl(Test::Builder) >= 0.96 +BuildRequires: perl(Test::CheckChanges) +BuildRequires: perl(Test::Compile) >= 0.11 +BuildRequires: perl(Test::ConsistentVersion) >= 0.2.2 +BuildRequires: perl(Test::CPAN::Meta) >= 0.18 +BuildRequires: perl(Test::CPAN::Meta::JSON) >= 0.10 +BuildRequires: perl(Test::CPAN::Meta::YAML) >= 0.17 +BuildRequires: perl(Test::Deep) >= 0.108 +BuildRequires: perl(Test::Dir) >= 1.006 +BuildRequires: perl(Test::DistManifest) >= 1.005 +BuildRequires: perl(Test::EOL) >= 0.3 +BuildRequires: perl(Test::File) >= 1.29 +BuildRequires: perl(Test::Fixme) >= 0.04 +BuildRequires: perl(Test::HasVersion) >= 0.012 +BuildRequires: perl(Test::MinimumVersion) >= 0.101080 +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(Test::NoBreakpoints) >= 0.13 +BuildRequires: perl(Test::NoPlan) >= 0.0.6 +# Test::NoWarnings is not needed (lib/Test/Apocalypse.pm:39) +BuildRequires: perl(Test::Perl::Critic) >= 1.02 +BuildRequires: perl(Test::Pod) >= 1.41 +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +BuildRequires: perl(Test::Pod::LinkCheck) >= 0.004 +BuildRequires: perl(Test::Pod::No404s) >= 0.01 +BuildRequires: perl(Test::Pod::Spelling::CommonMistakes) >= 1.000 +BuildRequires: perl(Test::Portability::Files) +BuildRequires: perl(Test::Script) >= 1.07 +BuildRequires: perl(Test::Signature) >= 1.10 +BuildRequires: perl(Test::Spelling) >= 0.11 +BuildRequires: perl(Test::Strict) >= 0.14 +BuildRequires: perl(Test::Synopsis) >= 0.06 +BuildRequires: perl(Test::Vars) >= 0.001 +BuildRequires: perl(version) >= 0.77 +BuildRequires: perl(YAML) >= 0.70 +BuildRequires: perl(YAML::Any) >= 0.72 +# Tests: +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Test::NoWarnings) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Perl::Critic::Utils::Constants) +Requires: perl(Test::CheckChanges) +Requires: perl(Test::Portability::Files) +# Test::NoWarnings is not needed (lib/Test/Apocalypse.pm:39) + +# Remove under-specified dependenices +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Test::More\\)$ + +%description +This module greatly simplifies common author tests for modules heading towards +CPAN. I was sick of copy/pasting the tons of t/foo.t scripts + managing them +in every distribution. I thought it would be nice to bundle all of it into one +module and toss it on CPAN :) That way, every time I update this module all of +my distributions would be magically updated! + +%prep +%setup -q -n Test-Apocalypse-%{version} +# <https://rt.cpan.org/Public/Bug/Display.html?id=76848> +# Remove test interfering with Test::CheckChanges +rm t/000-report-versions-tiny.t +sed -i -e '/^t\/000-report-versions-tiny.t$/ d' MANIFEST + +%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 Changes CommitLog examples LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Jul 02 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 1.002-1 +- 1.002 bump + +* Fri Mar 25 2011 Petr Pisar <ppisar@xxxxxxxxxx> - 1.001-1 +- 1.001 bump +- Build-require Test::NoWarnings + +* Mon Jan 24 2011 Petr Pisar <ppisar@xxxxxxxxxx> 0.10-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot stuff diff --git a/sources b/sources index e69de29..8ae042f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3f7b21c4194699daa8b3059d20d1aeb1 Test-Apocalypse-1.002.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