commit 815cd6c1b751ac90bf1fdd12bb522797e33f0dea Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Fri Aug 12 14:26:50 2011 +0100 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. .gitignore | 1 + Test-CPAN-Meta-JSON-0.10-utf8.patch | 10 +++++ perl-Test-CPAN-Meta-JSON.spec | 66 +++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 78 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..480d9e5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-CPAN-Meta-JSON-[0-9.]*.tar.gz diff --git a/Test-CPAN-Meta-JSON-0.10-utf8.patch b/Test-CPAN-Meta-JSON-0.10-utf8.patch new file mode 100644 index 0000000..9f1ce2a --- /dev/null +++ b/Test-CPAN-Meta-JSON-0.10-utf8.patch @@ -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. diff --git a/perl-Test-CPAN-Meta-JSON.spec b/perl-Test-CPAN-Meta-JSON.spec new file mode 100644 index 0000000..a188205 --- /dev/null +++ b/perl-Test-CPAN-Meta-JSON.spec @@ -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@xxxxxxxxxxxx> - 0.10-2 +- Sanitize for Fedora/EPEL submission + +* Wed Aug 10 2011 Paul Howarth <paul@xxxxxxxxxxxx> - 0.10-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..739228f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9eef3f20cc2b080ae6e15a75d8ede59f Test-CPAN-Meta-JSON-0.10.tar.gz
-- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel