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

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

spec: perl-Test-CPAN-Meta-JSON: Release version 0.16-1.

File size: 2.0 KB
Line 
1Name: perl-Test-CPAN-Meta-JSON
2Version: 0.16
3Release: 1%{?dist}
4Summary: Validate a META.json file within a CPAN distribution
5Group: Development/Libraries
6License: Artistic 2.0
7URL: http://search.cpan.org/dist/Test-CPAN-Meta-YAML/
8Vendor: bww bitwise works GmbH
9Source0: http://search.cpan.org/CPAN/authors/id/B/BA/BARBIE/Test-CPAN-Meta-JSON-%{version}.tar.gz
10#Patch0: Test-CPAN-Meta-JSON-0.16-utf8.patch
11BuildArch: noarch
12# Module Build
13#BuildRequires: perl-interpreter
14BuildRequires: perl-generators
15BuildRequires: perl(ExtUtils::MakeMaker)
16# Module Runtime
17BuildRequires: perl(IO::File)
18BuildRequires: perl(JSON) >= 2.15
19BuildRequires: perl(strict)
20BuildRequires: perl(Test::Builder)
21BuildRequires: perl(vars)
22BuildRequires: perl(warnings)
23# Test Suite
24BuildRequires: perl(Test::Builder::Tester)
25BuildRequires: perl(Test::More)
26# Optional Tests
27#BuildRequires: perl(Test::CPAN::Meta)
28BuildRequires: perl(Test::Pod) >= 1.00
29BuildRequires: perl(Test::Pod::Coverage) >= 0.08
30# Runtime
31Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
32
33%description
34This module was written to ensure that a META.json file, provided with a
35standard distribution uploaded to CPAN, meets the specifications that are
36slowly being introduced to module uploads, via the use of ExtUtils::MakeMaker,
37Module::Build and Module::Install.
38
39See CPAN::Meta for further details of the CPAN Meta Specification.
40
41%prep
42%setup -q -n Test-CPAN-Meta-JSON-%{version}
43
44# Recode LICENSE as UTF-8
45#%patch0
46
47%build
48perl Makefile.PL INSTALLDIRS=vendor
49make %{?_smp_mflags}
50make manifypods
51
52%install
53rm -rf %{buildroot}
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%if 0%{?_licensedir:1}
63%license LICENSE
64%else
65%doc LICENSE
66%endif
67%doc Changes README examples/
68%{perl_vendorlib}/Test/
69%{_mandir}/man3/*.3*
70#%{_mandir}/man3/Test::CPAN::Meta::JSON::Version.3*
71
72%changelog
73* Sun Mar 11 2018 Elbert Pol <elbert.pol@gmail.com> - 0.16-1
74- initial rpm for OS2
75
Note: See TracBrowser for help on using the repository browser.