|
|
b4695b |
%{?scl:%scl_package perl-Parse-CPAN-Meta}
|
|
|
b4695b |
|
|
|
b4695b |
Name: %{?scl_prefix}perl-Parse-CPAN-Meta
|
|
|
b4695b |
# dual-lifed module needs to match the epoch in perl.spec
|
|
|
b4695b |
Epoch: 1
|
|
|
b4695b |
Version: 1.4422
|
|
|
b4695b |
Release: 2%{?dist}
|
|
|
b4695b |
Summary: Parse META.yml and META.json CPAN meta-data files
|
|
|
b4695b |
License: GPL+ or Artistic
|
|
|
b4695b |
Group: Development/Libraries
|
|
|
b4695b |
URL: http://search.cpan.org/dist/Parse-CPAN-Meta/
|
|
|
b4695b |
Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Parse-CPAN-Meta-%{version}.tar.gz
|
|
|
b4695b |
BuildArch: noarch
|
|
|
b4695b |
# Module Build
|
|
|
b4695b |
BuildRequires: coreutils
|
|
|
b4695b |
BuildRequires: findutils
|
|
|
b4695b |
BuildRequires: make
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl-generators
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker)
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(warnings)
|
|
|
b4695b |
# Module Runtime
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(Carp)
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(CPAN::Meta::YAML) >= 0.011
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(Encode)
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(Exporter)
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(JSON::PP) >= 2.27300
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(strict)
|
|
|
b4695b |
# Test Suite
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(File::Spec) >= 0.80
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(File::Spec::Functions)
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(lib)
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(Test::More) >= 0.82
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(utf8)
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(vars)
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(YAML)
|
|
|
b4695b |
# Optional Tests
|
|
|
b4695b |
# CPAN::Meta needs Parse::CPAN::Meta
|
|
|
b4695b |
%if 0%{!?perl_bootstrap:1} && !%{defined perl_small}
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(CPAN::Meta) >= 2.120900
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(CPAN::Meta::Prereqs)
|
|
|
b4695b |
# To be able build dual-lifed module asap
|
|
|
b4695b |
# JSON is not core module and it needs CGI => Moo ...
|
|
|
b4695b |
BuildRequires: %{?scl_prefix}perl(JSON) >= 2.5
|
|
|
b4695b |
%endif
|
|
|
b4695b |
# Runtime
|
|
|
b4695b |
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
|
|
|
b4695b |
Requires: %{?scl_prefix}perl(CPAN::Meta::YAML) >= 0.011
|
|
|
b4695b |
Requires: %{?scl_prefix}perl(Encode)
|
|
|
b4695b |
Requires: %{?scl_prefix}perl(JSON::PP) >= 2.27300
|
|
|
b4695b |
|
|
|
b4695b |
%description
|
|
|
b4695b |
Parse::CPAN::Meta is a parser for META.json and META.yml files, using JSON::PP
|
|
|
b4695b |
and/or CPAN::Meta::YAML. It provides three methods: load_file,
|
|
|
b4695b |
load_json_string, and load_yaml_string. These will read and de-serialize CPAN
|
|
|
b4695b |
metafiles.
|
|
|
b4695b |
|
|
|
b4695b |
Parse::CPAN::Meta provides a legacy API of only two functions, based on the
|
|
|
b4695b |
YAML functions of the same name. Wherever possible, identical calling semantics
|
|
|
b4695b |
are used. These may only be used with YAML sources.
|
|
|
b4695b |
|
|
|
b4695b |
All error reporting is done with exceptions (die'ing).
|
|
|
b4695b |
|
|
|
b4695b |
%prep
|
|
|
b4695b |
%setup -q -n Parse-CPAN-Meta-%{version}
|
|
|
b4695b |
|
|
|
b4695b |
%build
|
|
|
b4695b |
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'}
|
|
|
b4695b |
|
|
|
b4695b |
%install
|
|
|
b4695b |
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=%{buildroot} UNINST=0%{?scl:'}
|
|
|
b4695b |
find %{buildroot} -type f -name .packlist -delete
|
|
|
b4695b |
%{_fixperms} %{buildroot}
|
|
|
b4695b |
|
|
|
b4695b |
%check
|
|
|
b4695b |
%{?scl:scl enable %{scl} '}make test%{?scl:'}
|
|
|
b4695b |
|
|
|
b4695b |
%files
|
|
|
b4695b |
%doc LICENSE
|
|
|
b4695b |
%doc Changes CONTRIBUTING.mkdn README
|
|
|
b4695b |
%{perl_vendorlib}/Parse/
|
|
|
b4695b |
%{_mandir}/man3/Parse::CPAN::Meta.3*
|
|
|
b4695b |
|
|
|
b4695b |
%changelog
|
|
|
b4695b |
* Tue Jul 12 2016 Petr Pisar <ppisar@redhat.com> - 1:1.4422-2
|
|
|
b4695b |
- SCL
|
|
|
b4695b |
|
|
|
b4695b |
* Sun Jul 3 2016 Paul Howarth <paul@city-fan.org> - 1:1.4422-1
|
|
|
b4695b |
- Update to 1.4422
|
|
|
b4695b |
- Fixed use of Encode in load_json_string
|
|
|
b4695b |
|
|
|
b4695b |
* Wed Jun 29 2016 Paul Howarth <paul@city-fan.org> - 1:1.4421-1
|
|
|
b4695b |
- Update to 1.4421
|
|
|
b4695b |
- Add CPAN_META_JSON_BACKEND to allow requesting non-JSON.pm backends
|
|
|
b4695b |
- Add CPAN_META_JSON_DECODER to allow Mojo::JSON/JSON::Tiny to be used just
|
|
|
b4695b |
for decoding
|
|
|
b4695b |
- Re-encode strings before decode_json since that expects bytes
|
|
|
b4695b |
- Add test cases for wide characters in META files
|
|
|
b4695b |
- Bump JSON::PP prerequisite to 2.27300 to work around a bug before perl
|
|
|
b4695b |
5.8.7; includes a test to confirm correct behavior
|
|
|
b4695b |
- BR: perl-generators
|
|
|
b4695b |
- Simplify find command using -delete
|
|
|
b4695b |
|
|
|
b4695b |
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.4417-366
|
|
|
b4695b |
- Perl 5.24 re-rebuild of bootstrapped packages
|
|
|
b4695b |
|
|
|
b4695b |
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.4417-365
|
|
|
b4695b |
- Increase release to favour standalone package
|
|
|
b4695b |
|
|
|
b4695b |
* Tue Apr 19 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.4417-4
|
|
|
b4695b |
- Don't BR: JSON when bootstrapping
|
|
|
b4695b |
|
|
|
b4695b |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.4417-3
|
|
|
b4695b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4417-2
|
|
|
b4695b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Sun Jun 14 2015 Paul Howarth <paul@city-fan.org> - 1:1.4417-1
|
|
|
b4695b |
- Update to 1.4417
|
|
|
b4695b |
- Outputs the version of backends used
|
|
|
b4695b |
- Updated repo metadata and boilerplate files
|
|
|
b4695b |
- Pointed issue tracker to the Perl-Toolchain-Gang Github repo
|
|
|
b4695b |
- Classify buildreqs by usage
|
|
|
b4695b |
- Use %%license
|
|
|
b4695b |
- Package CONTRIBUTING.mkdn and README files
|
|
|
b4695b |
- Expand %%description
|
|
|
b4695b |
- Make %%files list more explicit
|
|
|
b4695b |
|
|
|
b4695b |
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.4414-346
|
|
|
b4695b |
- Perl 5.22 re-rebuild of bootstrapped packages
|
|
|
b4695b |
|
|
|
b4695b |
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.4414-345
|
|
|
b4695b |
- Increase release to favour standalone package
|
|
|
b4695b |
|
|
|
b4695b |
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.4414-312
|
|
|
b4695b |
- Perl 5.22 rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.4414-311
|
|
|
b4695b |
- Perl 5.20 re-rebuild of bootstrapped packages
|
|
|
b4695b |
|
|
|
b4695b |
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.4414-310
|
|
|
b4695b |
- Increase release to favour standalone package
|
|
|
b4695b |
|
|
|
b4695b |
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.4414-4
|
|
|
b4695b |
- Perl 5.20 rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4414-3
|
|
|
b4695b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Tue Apr 8 2014 Paul Howarth <paul@city-fan.org> - 1:1.4414-2
|
|
|
b4695b |
- Don't BR: CPAN::Meta & CPAN::Meta::Requirements when bootstrapping
|
|
|
b4695b |
|
|
|
b4695b |
* Wed Mar 12 2014 Ralf Corsépius <corsepiu@fedoraproject.org> - 1:1.4414-1
|
|
|
b4695b |
- Upstream update.
|
|
|
b4695b |
- Reflect upstream R:/BR:-changes.
|
|
|
b4695b |
|
|
|
b4695b |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4404-291
|
|
|
b4695b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 1:1.4404-290
|
|
|
b4695b |
- Increase release to favour standalone package
|
|
|
b4695b |
|
|
|
b4695b |
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1:1.4404-6
|
|
|
b4695b |
- Perl 5.18 rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4404-5
|
|
|
b4695b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Wed Aug 15 2012 Petr Pisar <ppisar@redhat.com> - 1:1.4404-4
|
|
|
b4695b |
- Specify all dependencies
|
|
|
b4695b |
|
|
|
b4695b |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4404-3
|
|
|
b4695b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1:1.4404-2
|
|
|
b4695b |
- Perl 5.16 rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Mon Apr 09 2012 Iain Arnell <iarnell@gmail.com> 1:1.4404-1
|
|
|
b4695b |
- update to latest upstream version
|
|
|
b4695b |
|
|
|
b4695b |
* Sun Apr 01 2012 Iain Arnell <iarnell@gmail.com> 1:1.4403-1
|
|
|
b4695b |
- update to latest upstream version
|
|
|
b4695b |
|
|
|
b4695b |
* Wed Feb 08 2012 Iain Arnell <iarnell@gmail.com> 1:1.4402-1
|
|
|
b4695b |
- update to latest upstream version
|
|
|
b4695b |
|
|
|
b4695b |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4401-3
|
|
|
b4695b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1:1.4401-2
|
|
|
b4695b |
- Perl mass rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Wed Feb 16 2011 Iain Arnell <iarnell@gmail.com> 1:1.4401-1
|
|
|
b4695b |
- update to latest upstream version (removes Module::Load::Conditional dep)
|
|
|
b4695b |
|
|
|
b4695b |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.4400-2
|
|
|
b4695b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Fri Feb 04 2011 Iain Arnell <iarnell@gmail.com> 1:1.4400-1
|
|
|
b4695b |
- update to latest upstream version
|
|
|
b4695b |
|
|
|
b4695b |
* Fri Feb 04 2011 Iain Arnell <iarnell@gmail.com> 1:1.4200-2
|
|
|
b4695b |
- install to vendorlib again
|
|
|
b4695b |
|
|
|
b4695b |
* Fri Jan 28 2011 Iain Arnell <iarnell@gmail.com> 1:1.4200-1
|
|
|
b4695b |
- Specfile autogenerated by cpanspec 1.78.
|
|
|
b4695b |
- bump epoch to match that in perl.spec
|
|
|
b4695b |
- install to privlib, not vendorlib
|
|
|
b4695b |
|
|
|
b4695b |
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.40-2
|
|
|
b4695b |
- rebuild against perl 5.10.1
|
|
|
b4695b |
|
|
|
b4695b |
* Wed Oct 7 2009 Stepan Kasal <skasal@redhat.com> - 1.40-1
|
|
|
b4695b |
- new upstream version
|
|
|
b4695b |
|
|
|
b4695b |
* Thu Jul 30 2009 Jesse Keating <jkeating@redhat.com> - 1.39-2
|
|
|
b4695b |
- Bump for F12 mass rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Sun Jun 14 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.39-1
|
|
|
b4695b |
- auto-update to 1.39 (by cpan-spec-update 0.01)
|
|
|
b4695b |
|
|
|
b4695b |
* Mon Apr 27 2009 Ralf Corsépius <corsepiu@fedoraproject> - 0.05-1
|
|
|
b4695b |
- Upstream update.
|
|
|
b4695b |
|
|
|
b4695b |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.04-2
|
|
|
b4695b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
b4695b |
|
|
|
b4695b |
* Fri Jan 16 2009 Steven Pritchard <steve@kspei.com> 0.04-1
|
|
|
b4695b |
- Update to 0.04.
|
|
|
b4695b |
- Update Source0 URL.
|
|
|
b4695b |
- Add version to Test::More dep.
|
|
|
b4695b |
- LICENSE and README went away.
|
|
|
b4695b |
|
|
|
b4695b |
* Fri May 16 2008 Steven Pritchard <steve@kspei.com> 0.03-1
|
|
|
b4695b |
- Specfile autogenerated by cpanspec 1.75.
|
|
|
b4695b |
- BR Test::More.
|