commit e5e89e29de205c7501e7060af50cb36ab296b3b7 Author: Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> Date: Thu Feb 3 07:03:24 2011 +0100 Import. .gitignore | 1 + perl-Test-WWW-Mechanize-PSGI.spec | 61 +++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..c6b3a68 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-WWW-Mechanize-PSGI-0.35.tar.gz diff --git a/perl-Test-WWW-Mechanize-PSGI.spec b/perl-Test-WWW-Mechanize-PSGI.spec new file mode 100644 index 0000000..d290baa --- /dev/null +++ b/perl-Test-WWW-Mechanize-PSGI.spec @@ -0,0 +1,61 @@ +Name: perl-Test-WWW-Mechanize-PSGI +Version: 0.35 +Release: 1%{?dist} +Summary: Test PSGI programs using WWW::Mechanize +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-WWW-Mechanize-PSGI/ +Source0: http://www.cpan.org/authors/id/L/LB/LBROCARD/Test-WWW-Mechanize-PSGI-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(CGI::Cookie) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(HTTP::Message::PSGI) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::WWW::Mechanize) +BuildRequires: perl(Try::Tiny) + +# For improved testing +BuildRequires: perl(Test::Pod) >= 1.14 + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +PSGI is a specification to decouple web server environments from web +application framework code. Test::WWW::Mechanize is a subclass of +WWW::Mechanize that incorporates features for web application testing. The +Test::WWW::Mechanize::PSGI module meshes the two to allow easy testing of +PSGI applications. + +%prep +%setup -q -n Test-WWW-Mechanize-PSGI-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc CHANGES README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Dec 21 2010 Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> 0.35-1 +- Initial Fedora package. diff --git a/sources b/sources index e69de29..5e2c388 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f8403d6ccdef06aacb9092715e2dde26 Test-WWW-Mechanize-PSGI-0.35.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