commit c7d2f75d83613a7c099868bd145577727bb047ef Author: Iain Arnell <iarnell@xxxxxxxxx> Date: Tue Aug 30 17:42:37 2011 +0200 initial import (rhbz#734168) .gitignore | 1 + perl-Plack-Test-ExternalServer.spec | 60 +++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..d85fe86 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Plack-Test-ExternalServer-0.01.tar.gz diff --git a/perl-Plack-Test-ExternalServer.spec b/perl-Plack-Test-ExternalServer.spec new file mode 100644 index 0000000..ce2bdd8 --- /dev/null +++ b/perl-Plack-Test-ExternalServer.spec @@ -0,0 +1,60 @@ +Name: perl-Plack-Test-ExternalServer +Version: 0.01 +Release: 1%{?dist} +Summary: Run HTTP tests on external live servers +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Plack-Test-ExternalServer/ +Source0: http://www.cpan.org/authors/id/F/FL/FLORA/Plack-Test-ExternalServer-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(HTTP::Request::Common) +BuildRequires: perl(LWP::UserAgent) +BuildRequires: perl(Plack::Loader) +BuildRequires: perl(Plack::Test) +BuildRequires: perl(Test::More) >= 0.89 +BuildRequires: perl(Test::TCP) +BuildRequires: perl(URI) +# additional deps for "release" testing +%if !0%{?perl_bootstrap} +BuildRequires: perl(Pod::Coverage::TrustPod) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +%endif +Requires: perl(Plack::Test) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +This module allows you to run your Plack::Test tests against an external +server instead of just against a local application through either mocked +HTTP or a locally spawned server. + +%prep +%setup -q -n Plack-Test-ExternalServer-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +RELEASE_TESTING=1 make test + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Aug 29 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.01-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..42418fe 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bb0806b4e5bc61064e3736991dd8640c Plack-Test-ExternalServer-0.01.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