commit 852d920d60aa3cbb57fdd6fa9c3e631020c92ba7 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Mon May 21 09:56:52 2012 +0200 Import .gitignore | 1 + perl-podlinkcheck.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 82 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..1eb06b9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/podlinkcheck-8.tar.gz diff --git a/perl-podlinkcheck.spec b/perl-podlinkcheck.spec new file mode 100644 index 0000000..9530014 --- /dev/null +++ b/perl-podlinkcheck.spec @@ -0,0 +1,80 @@ +Name: perl-podlinkcheck +Version: 8 +Release: 1%{?dist} +Summary: Check Perl POD L<> link references +License: GPLv3+ +Group: Development/Libraries +URL: http://search.cpan.org/dist/podlinkcheck/ +Source0: http://www.cpan.org/authors/id/K/KR/KRYDE/podlinkcheck-%{version}.tar.gz +BuildArch: noarch +# The inc/my_pod2html is not executed +BuildRequires: perl(lib) +BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(constant::defer) +BuildRequires: perl(File::Find::Iterator) +BuildRequires: perl(File::Spec) >= 0.8 +BuildRequires: perl(Getopt::Long) +BuildRequires: perl(IPC::Run) +BuildRequires: perl(List::Util) +BuildRequires: perl(Locale::TextDomain) +BuildRequires: perl(Pod::Find) +BuildRequires: perl(Pod::Simple) +BuildRequires: perl(Text::Tabs) +# Recommended run-time: +BuildRequires: perl(Sort::Key::Natural) +# Tests: +BuildRequires: perl(Exporter) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::More) +# Optional tests: +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Devel::FindRef) +BuildRequires: perl(Devel::StackTrace) +BuildRequires: perl(File::HomeDir) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(File::Find::Iterator) +Requires: perl(File::Spec) >= 0.8 +Requires: perl(Getopt::Long) +Requires: perl(IPC::Run) +Requires: perl(Pod::Find) +# Recommended: +Requires: perl(Sort::Key::Natural) +# We do not (build-)require CPAN on purpose + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::Spec\\)$ + +%description +PodLinkCheck parses Perl POD from a script, module or documentation +and checks that L<> links within it refer to a known program, module, +or man page. + +%prep +%setup -q -n podlinkcheck-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +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 + +%files +%doc Changes COPYING +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Wed Apr 25 2012 Petr Pisar <ppisar@xxxxxxxxxx> 8-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..82603f2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0fc9848f569d65d570d878e04f32cf27 podlinkcheck-8.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