commit d83354267eab856dc02ceb737d7708f68a7e92b0 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Tue May 22 09:09:29 2012 +0200 Import .gitignore | 1 + perl-Test-Pod-No404s.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 71 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..8493a05 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-Pod-No404s-0.01.tar.gz diff --git a/perl-Test-Pod-No404s.spec b/perl-Test-Pod-No404s.spec new file mode 100644 index 0000000..35afc77 --- /dev/null +++ b/perl-Test-Pod-No404s.spec @@ -0,0 +1,69 @@ +# Remove once apocalypse gets into build root. But keep the BuildRequires +# conditional blocks to utlize apocalypse during futher package life. +%define perl_bootstrap 1 + +Name: perl-Test-Pod-No404s +Version: 0.01 +Release: 1%{?dist} +Summary: Checks POD for HTTP 404 links +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Test-Pod-No404s/ +Source0: http://www.cpan.org/authors/id/A/AP/APOCAL/Test-Pod-No404s-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(Module::Build) +# Run-Time: +BuildRequires: perl(LWP::UserAgent) >= 5.834 +BuildRequires: perl(Pod::Simple::Text) >= 3.13 +BuildRequires: perl(Test::Builder) >= 0.94 +BuildRequires: perl(Test::Pod) >= 1.40 +BuildRequires: perl(URI::Find) >= 20090319 +# Tests: +BuildRequires: perl(Test::More) +# Optional tests: +BuildRequires: perl(Test::NoWarnings) +# Break build-time cycle with perl-Test-Apocalypse +%if %{undefined perl_bootstrap} +BuildRequires: perl(Test::Apocalypse) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(LWP::UserAgent) >= 5.834 +Requires: perl(Pod::Simple::Text) >= 3.13 +Requires: perl(Test::Builder) >= 0.94 +Requires: perl(Test::Pod) >= 1.40 +Requires: perl(URI::Find) >= 20090319 + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((LWP::UserAgent|Pod::Simple::Text|Test::Builder|Test::Pod|URI::Find)\\)$ + +%description +This module looks for any HTTP(S) links in your POD and verifies that they +will not return a 404. It uses LWP::UserAgent for the heavy lifting, and +simply lets you know if it failed to retrieve the document. More specifically, +it uses $response->is_error as the "test". + +%prep +%setup -q -n Test-Pod-No404s-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc Changes examples LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Apr 26 2012 Petr Pisar <ppisar@xxxxxxxxxx> 0.01-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..49d4a1b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +828d11730b2a133d3150d0eb83674424 Test-Pod-No404s-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