From d4f9dd9a293a53a5a620b205ef7c49a358b3a328 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 14 Oct 2020 14:45:52 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/perl-Test-CPAN-Meta-JSON#985d414a88615a4e5d5b0e5639e769d405ca2350 --- .gitignore | 1 + Test-CPAN-Meta-JSON-0.16-utf8.patch | 10 ++ perl-Test-CPAN-Meta-JSON.spec | 198 ++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 210 insertions(+) create mode 100644 Test-CPAN-Meta-JSON-0.16-utf8.patch create mode 100644 perl-Test-CPAN-Meta-JSON.spec create mode 100644 sources 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.16-utf8.patch b/Test-CPAN-Meta-JSON-0.16-utf8.patch new file mode 100644 index 0000000..89cfc7b --- /dev/null +++ b/Test-CPAN-Meta-JSON-0.16-utf8.patch @@ -0,0 +1,10 @@ +--- LICENSE ++++ LICENSE +@@ -1,6 +1,6 @@ + LICENSE FOR Test-CPAN-Meta-JSON + +-This software is copyright © 2009-2015 Barbie for Miss Barbell Productions. ++This software is copyright © 2009-2015 Barbie for Miss Barbell Productions. + + This distribution is free software; you can redistribute it and/or + modify it under the Artistic Licence v2. diff --git a/perl-Test-CPAN-Meta-JSON.spec b/perl-Test-CPAN-Meta-JSON.spec new file mode 100644 index 0000000..7364187 --- /dev/null +++ b/perl-Test-CPAN-Meta-JSON.spec @@ -0,0 +1,198 @@ +Name: perl-Test-CPAN-Meta-JSON +Version: 0.16 +Release: 18%{?dist} +Summary: Validate a META.json file within a CPAN distribution +License: Artistic 2.0 +URL: https://metacpan.org/release/Test-CPAN-Meta-YAML +Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-CPAN-Meta-JSON-%{version}.tar.gz +Patch0: Test-CPAN-Meta-JSON-0.16-utf8.patch +BuildArch: noarch +# Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) +# Module Runtime +BuildRequires: perl(IO::File) +BuildRequires: perl(JSON) >= 2.15 +BuildRequires: perl(strict) +BuildRequires: perl(Test::Builder) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) +# Test Suite +BuildRequires: perl(Test::Builder::Tester) +BuildRequires: perl(Test::More) +# Optional Tests +BuildRequires: perl(Test::CPAN::Meta) +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Pod::Coverage) >= 0.08 +# Runtime +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 + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} -c %{buildroot} + +%check +make test AUTOMATED_TESTING=1 + +%files +%if 0%{?_licensedir:1} +%license LICENSE +%else +%doc LICENSE +%endif +%doc Changes README examples/ +%{perl_vendorlib}/Test/ +%{_mandir}/man3/Test::CPAN::Meta::JSON.3* +%{_mandir}/man3/Test::CPAN::Meta::JSON::Version.3* + +%changelog +* Tue Jul 28 2020 Fedora Release Engineering - 0.16-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 23 2020 Jitka Plesnikova - 0.16-17 +- Perl 5.32 rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.16-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Oct 29 2019 Paul Howarth - 0.16-15 +- Spec tidy-up + - Use author-independent source URL + - Specify all build dependencies + - Drop redundant buildroot cleaning in %%install section + - Simplify find command using -delete + - Fix permissions verbosely + +* Fri Jul 26 2019 Fedora Release Engineering - 0.16-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri May 31 2019 Jitka Plesnikova - 0.16-13 +- Perl 5.30 rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.16-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.16-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 28 2018 Jitka Plesnikova - 0.16-10 +- Perl 5.28 rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 0.16-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.16-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jun 05 2017 Jitka Plesnikova - 0.16-7 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.16-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun May 15 2016 Jitka Plesnikova - 0.16-5 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.16-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 0.16-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 06 2015 Jitka Plesnikova - 0.16-2 +- Perl 5.22 rebuild + +* Wed Jan 14 2015 Paul Howarth - 0.16-1 +- Update to 0.16 + - Fixed license fields in META.json to be lists + - Extended META test suite + - Added '2.0' as an alias to '2' version spec. + - License MUST be a list of strings +- Classify buildreqs by usage +- Update UTF8 patch +- Use %%license where possible + +* Thu Aug 28 2014 Jitka Plesnikova - 0.15-4 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.15-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sun Jul 21 2013 Paul Howarth - 0.15-1 +- Update to 0.15 + - Changes file dates changed to meet W3CDTF standards + +* Sun Jul 21 2013 Petr Pisar - 0.14-3 +- Perl 5.18 rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Aug 21 2012 Paul Howarth - 0.14-1 +- Update to 0.14 + - Added minimum perl version (5.006) + - Reworked Makefile.PL for clarity + - Implemented Perl::Critic suggestions + - Added meta_json_ok test and example + - Several Version.pm updates +- Update UTF8 patch + +* Fri Jul 20 2012 Fedora Release Engineering - 0.13-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jun 16 2012 Petr Pisar - 0.13-2 +- Perl 5.16 rebuild + +* Fri Apr 20 2012 Paul Howarth - 0.13-1 +- Update to 0.13 + - Further spelling fix + - Removed DSLIP info + +* Tue Apr 17 2012 Paul Howarth - 0.12-1 +- Update to 0.12 + - CPAN RT#76609: Spelling fix + +* Sun Apr 15 2012 Paul Howarth - 0.11-1 +- Update to 0.11 + - CPAN RT#74317: imported url validation from CPAN::Meta + - CPAN RT#66692: updated license type + - Updates to examples +- BR: perl(Test::CPAN::Meta) rather than perl(Test::CPAN::Meta::YAML) +- Don't need to remove empty directories from buildroot +- Use DESTDIR rather than PERL_INSTALL_ROOT +- Drop %%defattr, redundant since rpm 4.4 + +* Fri Jan 13 2012 Fedora Release Engineering - 0.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Aug 10 2011 Paul Howarth - 0.10-2 +- Sanitize for Fedora/EPEL submission + +* Wed Aug 10 2011 Paul Howarth - 0.10-1 +- Initial RPM version diff --git a/sources b/sources new file mode 100644 index 0000000..d247351 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +1d6f3ff573e8b8b3daf89f677b7404bf Test-CPAN-Meta-JSON-0.16.tar.gz