source: spec/trunk/SPECS/perl-Test-CPAN-Meta.spec@ 1566

Last change on this file since 1566 was 1354, checked in by tellie, 8 years ago

spec: perl-Test-CPAN-Meta: Release version 0.25-1.

File size: 2.1 KB
Line 
1Name: perl-Test-CPAN-Meta
2Version: 0.25
3Release: 1%{?dist}
4Summary: Validation of the META.yml file in a CPAN distribution
5License: Artistic 2.0
6URL: http://search.cpan.org/dist/Test-CPAN-Meta/
7Source0: http://www.cpan.org/authors/id/B/BA/BARBIE/Test-CPAN-Meta-%{version}.tar.gz
8#Patch0: Test-CPAN-Meta-0.25-utf8.patch
9BuildArch: noarch
10# Module Build
11#BuildRequires: perl-interpreter
12BuildRequires: perl-generators
13BuildRequires: perl(ExtUtils::MakeMaker)
14# Module Runtime
15BuildRequires: perl(Parse::CPAN::Meta) >= 0.02
16BuildRequires: perl(strict)
17BuildRequires: perl(Test::Builder)
18BuildRequires: perl(vars)
19BuildRequires: perl(warnings)
20# Test Suite
21BuildRequires: perl(IO::File)
22BuildRequires: perl(Test::Builder::Tester)
23BuildRequires: 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
30BuildRequires: perl(Test::Pod) >= 1.00
31BuildRequires: perl(Test::Pod::Coverage) >= 0.08
32# Runtime
33Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
34
35%description
36This module was written to ensure that a META.yml file, provided with a
37standard distribution uploaded to CPAN, meets the specifications that are
38slowly being introduced to module uploads, via the use of package makers
39and installers such as ExtUtils::MakeMaker, Module::Build and
40Module::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
49perl Makefile.PL INSTALLDIRS=vendor
50make %{?_smp_mflags}
51make manifypods
52
53%install
54make pure_install DESTDIR=%{buildroot}
55find %{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
Note: See TracBrowser for help on using the repository browser.