| 1 | Name: perl-Test-CPAN-Meta-JSON
|
|---|
| 2 | Version: 0.16
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Validate a META.json file within a CPAN distribution
|
|---|
| 5 | Group: Development/Libraries
|
|---|
| 6 | License: Artistic 2.0
|
|---|
| 7 | URL: http://search.cpan.org/dist/Test-CPAN-Meta-YAML/
|
|---|
| 8 | Vendor: bww bitwise works GmbH
|
|---|
| 9 | Source0: 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
|
|---|
| 11 | BuildArch: noarch
|
|---|
| 12 | # Module Build
|
|---|
| 13 | #BuildRequires: perl-interpreter
|
|---|
| 14 | BuildRequires: perl-generators
|
|---|
| 15 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 16 | # Module Runtime
|
|---|
| 17 | BuildRequires: perl(IO::File)
|
|---|
| 18 | BuildRequires: perl(JSON) >= 2.15
|
|---|
| 19 | BuildRequires: perl(strict)
|
|---|
| 20 | BuildRequires: perl(Test::Builder)
|
|---|
| 21 | BuildRequires: perl(vars)
|
|---|
| 22 | BuildRequires: perl(warnings)
|
|---|
| 23 | # Test Suite
|
|---|
| 24 | BuildRequires: perl(Test::Builder::Tester)
|
|---|
| 25 | BuildRequires: perl(Test::More)
|
|---|
| 26 | # Optional Tests
|
|---|
| 27 | #BuildRequires: perl(Test::CPAN::Meta)
|
|---|
| 28 | BuildRequires: perl(Test::Pod) >= 1.00
|
|---|
| 29 | BuildRequires: perl(Test::Pod::Coverage) >= 0.08
|
|---|
| 30 | # Runtime
|
|---|
| 31 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 32 |
|
|---|
| 33 | %description
|
|---|
| 34 | This module was written to ensure that a META.json file, provided with a
|
|---|
| 35 | standard distribution uploaded to CPAN, meets the specifications that are
|
|---|
| 36 | slowly being introduced to module uploads, via the use of ExtUtils::MakeMaker,
|
|---|
| 37 | Module::Build and Module::Install.
|
|---|
| 38 |
|
|---|
| 39 | See 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
|
|---|
| 48 | perl Makefile.PL INSTALLDIRS=vendor
|
|---|
| 49 | make %{?_smp_mflags}
|
|---|
| 50 | make manifypods
|
|---|
| 51 |
|
|---|
| 52 | %install
|
|---|
| 53 | rm -rf %{buildroot}
|
|---|
| 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 | %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 |
|
|---|