| 1 | Name: perl-Test-CPAN-Meta
|
|---|
| 2 | Version: 0.25
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Validation of the META.yml file in a CPAN distribution
|
|---|
| 5 | License: Artistic 2.0
|
|---|
| 6 | URL: http://search.cpan.org/dist/Test-CPAN-Meta/
|
|---|
| 7 | Source0: http://www.cpan.org/authors/id/B/BA/BARBIE/Test-CPAN-Meta-%{version}.tar.gz
|
|---|
| 8 | #Patch0: Test-CPAN-Meta-0.25-utf8.patch
|
|---|
| 9 | BuildArch: noarch
|
|---|
| 10 | # Module Build
|
|---|
| 11 | #BuildRequires: perl-interpreter
|
|---|
| 12 | BuildRequires: perl-generators
|
|---|
| 13 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 14 | # Module Runtime
|
|---|
| 15 | BuildRequires: perl(Parse::CPAN::Meta) >= 0.02
|
|---|
| 16 | BuildRequires: perl(strict)
|
|---|
| 17 | BuildRequires: perl(Test::Builder)
|
|---|
| 18 | BuildRequires: perl(vars)
|
|---|
| 19 | BuildRequires: perl(warnings)
|
|---|
| 20 | # Test Suite
|
|---|
| 21 | BuildRequires: perl(IO::File)
|
|---|
| 22 | BuildRequires: perl(Test::Builder::Tester)
|
|---|
| 23 | BuildRequires: perl(Test::More) >= 0.62
|
|---|
| 24 | # Optional Tests
|
|---|
| 25 | %if !%{defined perl_bootstrap}
|
|---|
| 26 | # Break build-cycle: perl-Test-CPAN-Meta â perl-Test-CPAN-Meta-JSON
|
|---|
| 27 | # â perl-Test-CPAN-Meta
|
|---|
| 28 | #BuildRequires: perl(Test::CPAN::Meta::JSON)
|
|---|
| 29 | %endif
|
|---|
| 30 | BuildRequires: perl(Test::Pod) >= 1.00
|
|---|
| 31 | BuildRequires: perl(Test::Pod::Coverage) >= 0.08
|
|---|
| 32 | # Runtime
|
|---|
| 33 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 34 |
|
|---|
| 35 | %description
|
|---|
| 36 | This module was written to ensure that a META.yml file, provided with a
|
|---|
| 37 | standard distribution uploaded to CPAN, meets the specifications that are
|
|---|
| 38 | slowly being introduced to module uploads, via the use of package makers
|
|---|
| 39 | and installers such as ExtUtils::MakeMaker, Module::Build and
|
|---|
| 40 | Module::Install.
|
|---|
| 41 |
|
|---|
| 42 | %prep
|
|---|
| 43 | %setup -q -n Test-CPAN-Meta-%{version}
|
|---|
| 44 |
|
|---|
| 45 | # Re-code documentation as UTF-8
|
|---|
| 46 | #%patch0
|
|---|
| 47 |
|
|---|
| 48 | %build
|
|---|
| 49 | perl Makefile.PL INSTALLDIRS=vendor
|
|---|
| 50 | make %{?_smp_mflags}
|
|---|
| 51 | make manifypods
|
|---|
| 52 |
|
|---|
| 53 | %install
|
|---|
| 54 | make pure_install DESTDIR=%{buildroot}
|
|---|
| 55 | find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|---|
| 56 | %{_fixperms} %{buildroot}
|
|---|
| 57 |
|
|---|
| 58 | %check
|
|---|
| 59 | #make test AUTOMATED_TESTING=1
|
|---|
| 60 |
|
|---|
| 61 | %files
|
|---|
| 62 | %license LICENSE
|
|---|
| 63 | %doc Changes README examples/
|
|---|
| 64 | %{perl_vendorlib}/Test/
|
|---|
| 65 | #%{_mandir}/man3/Test::CPAN::Meta.3*
|
|---|
| 66 | %{_mandir}/man3/*.3*
|
|---|
| 67 |
|
|---|
| 68 | %changelog
|
|---|
| 69 | * Sun Mar 11 2018 Elbert Pol <elbert.pol@gmail.com> - 0.25-1
|
|---|
| 70 | - initial rpm for OS2
|
|---|