[perl-Test-Pod-LinkCheck] Import

Petr Pisar ppisar at fedoraproject.org
Thu May 24 14:52:21 UTC 2012


commit e7aebf1c84862f015312a4ce123c6d25aea790fb
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu May 24 16:51:58 2012 +0200

    Import

 .gitignore                   |    1 +
 perl-Test-Pod-LinkCheck.spec |   75 ++++++++++++++++++++++++++++++++++++++++++
 sources                      |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8c13cc7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Test-Pod-LinkCheck-0.007.tar.gz
diff --git a/perl-Test-Pod-LinkCheck.spec b/perl-Test-Pod-LinkCheck.spec
new file mode 100644
index 0000000..089ee7c
--- /dev/null
+++ b/perl-Test-Pod-LinkCheck.spec
@@ -0,0 +1,75 @@
+# Remove once Test::Apocalypse gets into buildroot.
+# Keep conditional dependencies to allow perl bootstrap.
+%define perl_bootstrap 1
+
+Name:           perl-Test-Pod-LinkCheck
+Version:        0.007
+Release:        1%{?dist}
+Summary:        Tests POD for invalid links
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Test-Pod-LinkCheck/
+Source0:        http://www.cpan.org/authors/id/A/AP/APOCAL/Test-Pod-LinkCheck-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(Module::Build)
+# Run-time:
+BuildRequires:  perl(App::PodLinkCheck::ParseLinks) >= 4
+BuildRequires:  perl(App::PodLinkCheck::ParseSections)
+BuildRequires:  perl(Capture::Tiny)
+BuildRequires:  perl(Config)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(Moose) >= 1.01
+BuildRequires:  perl(Moose::Util::TypeConstraints) >= 1.01
+BuildRequires:  perl(parent)
+BuildRequires:  perl(Pod::Find)
+BuildRequires:  perl(Test::Builder) >= 0.94
+BuildRequires:  perl(Test::Pod) >= 1.44
+# Tests:
+BuildRequires:  perl(File::Find)
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(Test::More) >= 0.88
+BuildRequires:  perl(Test::Tester)
+# Optional tests:
+%if %{undefined perl_bootstrap}
+# Break build-time cycle with perl-Test-Apocalypse
+BuildRequires:  perl(Test::Apocalypse) >= 1.000
+%endif
+BuildRequires:  perl(Test::Script) >= 1.05
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(App::PodLinkCheck::ParseSections)
+Requires:       perl(Capture::Tiny)
+Requires:       perl(Config)
+Requires:       perl(File::Spec)
+Requires:       perl(Pod::Find)
+
+%description
+This module looks for any links in your POD and verifies that they point to
+a valid resource. It uses the Pod::Simple parser to analyze the pod files
+and look at their links. In a nutshell, it looks for L<Foo> links and makes
+sure that Foo exists. It also recognizes section links, L</SYNOPSIS> for
+example. Also, manual pages are resolved and checked.
+
+%prep
+%setup -q -n Test-Pod-LinkCheck-%{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 CommitLog examples LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Wed Apr 25 2012 Petr Pisar <ppisar at redhat.com> 0.007-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..b903b57 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+27944d9dbaa3ad3e8f62a6344ac03f44  Test-Pod-LinkCheck-0.007.tar.gz


More information about the scm-commits mailing list