commit 64c24b44ec5e5f885205112dada0ac16afee29a4 Author: Petr Sabata <psabata@xxxxxxxxxx> Date: Fri May 6 12:31:46 2011 +0200 Initial import (#701237) .gitignore | 1 + perl-Test-Trap.spec | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 59 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..254af87 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-Trap-v0.2.1.tar.gz diff --git a/perl-Test-Trap.spec b/perl-Test-Trap.spec new file mode 100644 index 0000000..1cf7296 --- /dev/null +++ b/perl-Test-Trap.spec @@ -0,0 +1,57 @@ +Name: perl-Test-Trap +Version: 0.2.1 +Release: 1%{?dist} +Summary: Trap exit codes, exceptions, output, etc +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-Trap/ +Source0: http://www.cpan.org/authors/id/E/EB/EBHANSSEN/Test-Trap-v%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl >= 1:v5.6.2 +BuildRequires: perl(base) +BuildRequires: perl(constant) +BuildRequires: perl(Config) +BuildRequires: perl(Data::Dump) +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Temp) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(Module::Build) >= 0.3500 +BuildRequires: perl(Test::Builder) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Tester) >= 0.107 +BuildRequires: perl(version) +Requires: perl(Test::More) +Requires: perl(Test::Tester) >= 0.107 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Primarily (but not exclusively) for use in test scripts: A block eval on +steroids, configurable and extensible, but by default trapping (Perl) +STDOUT, STDERR, warnings, exceptions, would-be exit codes, and return +values from boxed blocks of test code. + +%prep +%setup -q -n Test-Trap-v%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=%{buildroot} create_packlist=0 +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} %{buildroot}/* + +%check +./Build test + +%files +%defattr(-,root,root,-) +%doc Changes README xt +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon May 02 2011 Petr Sabata <psabata@xxxxxxxxxx> - 0.2.1-1 +- Specfile autogenerated by cpanspec 1.78. +- Buildroot stuff removed diff --git a/sources b/sources index e69de29..7ebffc1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f52186c2cb278af91ac5743abe00e97b Test-Trap-v0.2.1.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