Initial import (perl-Test-CPAN-Meta-JSON-0.10-2)
This module was written to ensure that a META.json file, provided with a standard distribution uploaded to CPAN, meets the specifications that are slowly being introduced to module uploads, via the use of ExtUtils::MakeMaker, Module::Build and Module::Install. See CPAN::Meta for further details of the CPAN Meta Specification.
This commit is contained in:
parent
fa1f3c37ca
commit
815cd6c1b7
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/Test-CPAN-Meta-JSON-[0-9.]*.tar.gz
|
||||
10
Test-CPAN-Meta-JSON-0.10-utf8.patch
Normal file
10
Test-CPAN-Meta-JSON-0.10-utf8.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- Test-CPAN-Meta-JSON/LICENSE
|
||||
+++ Test-CPAN-Meta-JSON/LICENSE
|
||||
@@ -1,6 +1,6 @@
|
||||
LICENSE FOR Test-CPAN-Meta-JSON
|
||||
|
||||
-This software is copyright © 2009-2011 Barbie for Miss Barbell Productions.
|
||||
+This software is copyright © 2009-2011 Barbie for Miss Barbell Productions.
|
||||
|
||||
This library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the Artistic License 2.0.
|
||||
66
perl-Test-CPAN-Meta-JSON.spec
Normal file
66
perl-Test-CPAN-Meta-JSON.spec
Normal file
@ -0,0 +1,66 @@
|
||||
Name: perl-Test-CPAN-Meta-JSON
|
||||
Version: 0.10
|
||||
Release: 2%{?dist}
|
||||
Summary: Validate a META.json file within a CPAN distribution
|
||||
Group: Development/Libraries
|
||||
License: Artistic 2.0
|
||||
URL: http://search.cpan.org/dist/Test-CPAN-Meta-YAML/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/B/BA/BARBIE/Test-CPAN-Meta-JSON-%{version}.tar.gz
|
||||
Patch0: Test-CPAN-Meta-JSON-0.10-utf8.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(IO::File)
|
||||
BuildRequires: perl(JSON) >= 2.15
|
||||
BuildRequires: perl(Test::Builder)
|
||||
BuildRequires: perl(Test::Builder::Tester)
|
||||
BuildRequires: perl(Test::CPAN::Meta::YAML)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Test::Pod::Coverage)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This module was written to ensure that a META.json file, provided with a
|
||||
standard distribution uploaded to CPAN, meets the specifications that are
|
||||
slowly being introduced to module uploads, via the use of ExtUtils::MakeMaker,
|
||||
Module::Build and Module::Install.
|
||||
|
||||
See CPAN::Meta for further details of the CPAN Meta Specification.
|
||||
|
||||
%prep
|
||||
%setup -q -n Test-CPAN-Meta-JSON-%{version}
|
||||
|
||||
# Recode LICENSE as UTF-8
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||||
find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
|
||||
%{_fixperms} %{buildroot}
|
||||
|
||||
%check
|
||||
make test AUTOMATED_TESTING=1
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes LICENSE README examples/
|
||||
%{perl_vendorlib}/Test/
|
||||
%{_mandir}/man3/Test::CPAN::Meta::JSON.3pm*
|
||||
%{_mandir}/man3/Test::CPAN::Meta::JSON::Version.3pm*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 10 2011 Paul Howarth <paul@city-fan.org> - 0.10-2
|
||||
- Sanitize for Fedora/EPEL submission
|
||||
|
||||
* Wed Aug 10 2011 Paul Howarth <paul@city-fan.org> - 0.10-1
|
||||
- Initial RPM version
|
||||
Loading…
Reference in New Issue
Block a user