2011-08-30 15:42:37 +00:00
|
|
|
Name: perl-Plack-Test-ExternalServer
|
|
|
|
Version: 0.01
|
2012-01-13 16:52:11 +00:00
|
|
|
Release: 2%{?dist}
|
2011-08-30 15:42:37 +00:00
|
|
|
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
|
2012-01-13 16:52:11 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.01-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-08-30 15:42:37 +00:00
|
|
|
* Mon Aug 29 2011 Iain Arnell <iarnell@gmail.com> 0.01-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|