| 1 | # Perform optional tests
|
|---|
| 2 | %bcond_without perl_Pod_Simple_enables_optional_test
|
|---|
| 3 |
|
|---|
| 4 | Name: perl-Pod-Simple
|
|---|
| 5 | # Epoch to compete with perl.spec
|
|---|
| 6 | Epoch: 1
|
|---|
| 7 | Version: 3.39
|
|---|
| 8 | Release: 1%{?dist}
|
|---|
| 9 | Summary: Framework for parsing POD documentation
|
|---|
| 10 | Vendor: bww bitwise works GmbH
|
|---|
| 11 | License: GPL+ or Artistic
|
|---|
| 12 | URL: https://metacpan.org/release/Pod-Simple
|
|---|
| 13 | Source0: https://cpan.metacpan.org/authors/id/K/KH/KHW/Pod-Simple-%{version}.tar.gz
|
|---|
| 14 | BuildArch: noarch
|
|---|
| 15 | BuildRequires: make
|
|---|
| 16 | BuildRequires: perl-generators
|
|---|
| 17 | #BuildRequires: perl-interpreter
|
|---|
| 18 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
|---|
| 19 | BuildRequires: perl(strict)
|
|---|
| 20 | # Run-time:
|
|---|
| 21 | BuildRequires: perl(Carp)
|
|---|
| 22 | BuildRequires: perl(Config)
|
|---|
| 23 | BuildRequires: perl(Cwd)
|
|---|
| 24 | BuildRequires: perl(Encode)
|
|---|
| 25 | BuildRequires: perl(File::Basename)
|
|---|
| 26 | BuildRequires: perl(File::Spec)
|
|---|
| 27 | BuildRequires: perl(Getopt::Long)
|
|---|
| 28 | BuildRequires: perl(if)
|
|---|
| 29 | BuildRequires: perl(integer)
|
|---|
| 30 | BuildRequires: perl(overload)
|
|---|
| 31 | BuildRequires: perl(Pod::Escapes) >= 1.04
|
|---|
| 32 | BuildRequires: perl(Symbol)
|
|---|
| 33 | BuildRequires: perl(Text::Wrap) >= 98.112902
|
|---|
| 34 | BuildRequires: perl(vars)
|
|---|
| 35 | BuildRequires: perl(warnings)
|
|---|
| 36 | # Tests:
|
|---|
| 37 | #BuildRequires: perl(base)
|
|---|
| 38 | #BuildRequires: perl(Data::Dumper)
|
|---|
| 39 | #BuildRequires: perl(File::Find)
|
|---|
| 40 | #BuildRequires: perl(File::Path)
|
|---|
| 41 | #BuildRequires: perl(lib)
|
|---|
| 42 | #BuildRequires: perl(Test) >= 1.25
|
|---|
| 43 | #BuildRequires: perl(Test::More)
|
|---|
| 44 | #BuildRequires: perl(utf8)
|
|---|
| 45 | #%if %{with perl_Pod_Simple_enables_optional_test} && !%{defined perl_bootstrap}
|
|---|
| 46 | # Optional tests:
|
|---|
| 47 | # Text::Diff not helpful, used only in case of a failure
|
|---|
| 48 | #BuildRequires: perl(parent)
|
|---|
| 49 | #BuildRequires: perl(Test::Deep)
|
|---|
| 50 | #%endif
|
|---|
| 51 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 52 |
|
|---|
| 53 | # Filter under-specified dependencies
|
|---|
| 54 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Text::Wrap\\)$
|
|---|
| 55 |
|
|---|
| 56 | %description
|
|---|
| 57 | Pod::Simple is a Perl library for parsing text in the POD (plain old
|
|---|
| 58 | documentation) markup language that is typically used for writing
|
|---|
| 59 | documentation for Perl and for Perl modules.
|
|---|
| 60 |
|
|---|
| 61 | %prep
|
|---|
| 62 | %setup -q -n Pod-Simple-%{version}
|
|---|
| 63 |
|
|---|
| 64 | %build
|
|---|
| 65 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|---|
| 66 | make %{?_smp_mflags}
|
|---|
| 67 | make manifypods
|
|---|
| 68 |
|
|---|
| 69 | %install
|
|---|
| 70 | %{make_install}
|
|---|
| 71 | %{_fixperms} $RPM_BUILD_ROOT/*
|
|---|
| 72 | find %{buildroot} -type f -name .packlist -delete
|
|---|
| 73 |
|
|---|
| 74 | %check
|
|---|
| 75 | #unset PERL_CORE PERL_TEST_DIFF
|
|---|
| 76 | #make test
|
|---|
| 77 |
|
|---|
| 78 | %files
|
|---|
| 79 | %doc ChangeLog README
|
|---|
| 80 | /@unixroot/usr/lib/perl5/
|
|---|
| 81 | %{perl_vendorlib}/*
|
|---|
| 82 | %{_mandir}/man3/*
|
|---|
| 83 |
|
|---|
| 84 | %changelog
|
|---|
| 85 | * Thu Sep 26 2019 Elbert Pol <elbert.pol@gmail.com> - 1:3.39-1
|
|---|
| 86 | - First rpm for OS/2
|
|---|
| 87 |
|
|---|
| 88 | * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.39-2
|
|---|
| 89 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|---|
| 90 |
|
|---|