diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a4f7c5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Plack-Test-Agent-1.4.tar.gz diff --git a/perl-Plack-Test-Agent.spec b/perl-Plack-Test-Agent.spec new file mode 100644 index 0000000..56b9cda --- /dev/null +++ b/perl-Plack-Test-Agent.spec @@ -0,0 +1,85 @@ +# Perform an optional test +%bcond_without perl_Plack_Test_Agent_enables_optional_test + +Name: perl-Plack-Test-Agent +Version: 1.4 +Release: 1%{?dist} +Summary: Object-oriented interface for testing PSGI applications +License: GPL+ or Artistic +URL: https://metacpan.org/release/Plack-Test-Agent +Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Plack-Test-Agent-%{version}.tar.gz +BuildArch: noarch +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.8 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(HTTP::Message::PSGI) +BuildRequires: perl(HTTP::Request::Common) +BuildRequires: perl(HTTP::Response) +BuildRequires: perl(parent) +BuildRequires: perl(Plack::Loader) +BuildRequires: perl(Plack::Util::Accessor) +BuildRequires: perl(Test::TCP) +BuildRequires: perl(Test::WWW::Mechanize) +# Tests: +BuildRequires: perl(File::Spec) +BuildRequires: perl(HTTP::Cookies) +BuildRequires: perl(HTTP::Server::Simple::PSGI) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IPC::Open3) +BuildRequires: perl(Modern::Perl) +BuildRequires: perl(open) +BuildRequires: perl(Plack::Request) +# Pod::Coverage::TrustPod not used +# Pod::Wordlist not used +# Test::EOL not used +BuildRequires: perl(Test::More) >= 0.88 +# Test::NoTabs not used +# Test::Pod 1.41 not used +# Test::Pod::Coverage 1.08 not used +BuildRequires: perl(Test::Requires) +# Test::Spelling 0.12 not used +BuildRequires: perl(utf8) +%if %{with perl_Plack_Test_Agent_enables_optional_test} +# Optional tests: +# CPAN::Meta not helpful +# CPAN::Meta::Prereqs not helpful +# Test::CPAN::Changes not used +BuildRequires: perl(Test::Memory::Cycle) +# Test::Portability::Files not used +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +Plack::Test::Agent is an object-oriented interface to test PSGI applications. +It can perform GET and POST requests against PSGI applications either in +process or over HTTP through a Plack::Handler compatible backend. + +%prep +%setup -q -n Plack-Test-Agent-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +unset AUTHOR_TESTING RELEASE_TESTING +make test + +%files +%license LICENSE +%doc Changes README.md +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Feb 06 2019 Petr Pisar 1.4-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..4f1fdb4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Plack-Test-Agent-1.4.tar.gz) = 20593f0e7f789198ea28eb1df250b4950c42a0c5e74ecbd620452261fd2a2cd895300deefaabf82a595efbe00ffb13145ba8875b908594ce7a489b737f7b0613