| 1 | Name: perl-Test-Pod
|
|---|
| 2 | Version: 1.51
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Test POD files for correctness
|
|---|
| 5 | Group: Development/Libraries
|
|---|
| 6 | License: GPL+ or Artistic
|
|---|
| 7 | URL: http://search.cpan.org/dist/Test-Pod/
|
|---|
| 8 | Source0: http://search.cpan.org/CPAN/authors/id/D/DW/DWHEELER/Test-Pod-%{version}.tar.gz
|
|---|
| 9 | BuildArch: noarch
|
|---|
| 10 | BuildRequires: coreutils
|
|---|
| 11 | BuildRequires: findutils
|
|---|
| 12 | BuildRequires: make
|
|---|
| 13 | #BuildRequires: perl-interpreter
|
|---|
| 14 | BuildRequires: perl-generators
|
|---|
| 15 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 16 | BuildRequires: perl(File::Find)
|
|---|
| 17 | BuildRequires: perl(File::Spec)
|
|---|
| 18 | BuildRequires: perl(Pod::Simple) >= 3.05
|
|---|
| 19 | BuildRequires: perl(strict)
|
|---|
| 20 | BuildRequires: perl(Test::Builder)
|
|---|
| 21 | BuildRequires: perl(Test::Builder::Tester) >= 1.02
|
|---|
| 22 | BuildRequires: perl(Test::More) >= 0.62
|
|---|
| 23 | BuildRequires: perl(warnings)
|
|---|
| 24 | Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|---|
| 25 | Requires: perl(File::Find)
|
|---|
| 26 | Requires: perl(File::Spec)
|
|---|
| 27 | Requires: perl(Pod::Simple) >= 3.05
|
|---|
| 28 | Requires: perl(Test::More) >= 0.62
|
|---|
| 29 |
|
|---|
| 30 | # Remove under-specified dependcies
|
|---|
| 31 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Pod::Simple\\)$
|
|---|
| 32 |
|
|---|
| 33 | %description
|
|---|
| 34 | Check POD files for errors or warnings in a test file, using Pod::Simple to do
|
|---|
| 35 | the heavy lifting.
|
|---|
| 36 |
|
|---|
| 37 | %prep
|
|---|
| 38 | %setup -q -n Test-Pod-%{version}
|
|---|
| 39 |
|
|---|
| 40 | %build
|
|---|
| 41 | perl Makefile.PL INSTALLDIRS=vendor
|
|---|
| 42 | make %{?_smp_mflags}
|
|---|
| 43 | make manifypods
|
|---|
| 44 |
|
|---|
| 45 | %install
|
|---|
| 46 | make pure_install DESTDIR=%{buildroot}
|
|---|
| 47 | find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|---|
| 48 | find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|---|
| 49 | %{_fixperms} %{buildroot}
|
|---|
| 50 |
|
|---|
| 51 | %check
|
|---|
| 52 | #LC_ALL=C make test
|
|---|
| 53 |
|
|---|
| 54 | %files
|
|---|
| 55 | %doc Changes README
|
|---|
| 56 | %{perl_vendorlib}/Test/
|
|---|
| 57 | %{_mandir}/man3/*.3pm*
|
|---|
| 58 |
|
|---|
| 59 | %changelog
|
|---|
| 60 | * Wed Mar 07 2018 Elbert Pol <elbert.pol@gmail.com> - 1.51-1
|
|---|
| 61 | - initial rpm for OS2
|
|---|