fd73a2
Name:           perl-CPAN-Meta
fd73a2
Summary:        Distribution metadata for a CPAN dist
fd73a2
Version:        2.150010
fd73a2
Release:        396%{?dist}
fd73a2
License:        GPL+ or Artistic
fd73a2
URL:            http://search.cpan.org/dist/CPAN-Meta/
fd73a2
Source0:        http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Meta-%{version}.tar.gz
fd73a2
BuildArch:      noarch
fd73a2
# Build
fd73a2
BuildRequires:  coreutils
fd73a2
BuildRequires:  findutils
fd73a2
BuildRequires:  make
fd73a2
BuildRequires:  perl-interpreter
fd73a2
BuildRequires:  perl-generators
fd73a2
BuildRequires:  perl(Config)
fd73a2
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.17
fd73a2
# Module
fd73a2
BuildRequires:  perl(Carp)
fd73a2
BuildRequires:  perl(CPAN::Meta::Requirements) >= 2.121
fd73a2
BuildRequires:  perl(CPAN::Meta::YAML) >= 0.011
fd73a2
BuildRequires:  perl(Encode)
fd73a2
BuildRequires:  perl(Exporter)
fd73a2
BuildRequires:  perl(JSON::PP) >= 2.27300
fd73a2
BuildRequires:  perl(Scalar::Util)
fd73a2
BuildRequires:  perl(strict)
fd73a2
BuildRequires:  perl(version) >= 0.88
fd73a2
BuildRequires:  perl(warnings)
fd73a2
# Main test suite
fd73a2
BuildRequires:  perl(Data::Dumper)
fd73a2
BuildRequires:  perl(File::Basename)
fd73a2
BuildRequires:  perl(File::Spec)
fd73a2
BuildRequires:  perl(File::Spec::Functions)
fd73a2
BuildRequires:  perl(File::Temp) >= 0.20
fd73a2
BuildRequires:  perl(IO::Dir)
fd73a2
BuildRequires:  perl(lib)
fd73a2
BuildRequires:  perl(overload)
fd73a2
BuildRequires:  perl(Storable)
fd73a2
BuildRequires:  perl(Test::More) >= 0.88
fd73a2
BuildRequires:  perl(utf8)
fd73a2
BuildRequires:  perl(vars)
fd73a2
# Runtime
fd73a2
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
fd73a2
Requires:       perl(CPAN::Meta::YAML) >= 0.011
fd73a2
Requires:       perl(Encode)
fd73a2
Requires:       perl(JSON::PP) >= 2.27300
fd73a2
Requires:       perl(version) >= 0.88
fd73a2
fd73a2
# Parse-CPAN-Meta merged into CPAN-Meta 2.150008
fd73a2
# Provide not added in order to avoid either epoch bump or self-obsoletion
fd73a2
Obsoletes:      perl-Parse-CPAN-Meta < 1:1.4422-2
fd73a2
fd73a2
# Avoid doc-file dependencies
fd73a2
%{?perl_default_filter}
fd73a2
fd73a2
# Remove under-specified dependencies
fd73a2
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(CPAN::Meta::Converter\\)$
fd73a2
%global __requires_exclude %{__requires_exclude}|^perl\\(CPAN::Meta::Requirements\\)$
fd73a2
fd73a2
%description
fd73a2
Software distributions released to the CPAN include a META.json or, for older
fd73a2
distributions, META.yml, which describes the distribution, its contents, and
fd73a2
the requirements for building and installing the distribution. The data
fd73a2
structure stored in the META.json file is described in CPAN::Meta::Spec.
fd73a2
fd73a2
%prep
fd73a2
%setup -q -n CPAN-Meta-%{version}
fd73a2
fd73a2
# silence rpmlint warnings
fd73a2
perl -MConfig -pi -e 's,^#!.*perl,$Config{startperl},' t/*.t
fd73a2
fd73a2
%build
fd73a2
perl Makefile.PL INSTALLDIRS=vendor
fd73a2
make %{?_smp_mflags}
fd73a2
fd73a2
%install
fd73a2
make pure_install DESTDIR=%{buildroot} UNINST=0
fd73a2
find %{buildroot} -type f -name .packlist -delete
fd73a2
%{_fixperms} %{buildroot}
fd73a2
fd73a2
%check
fd73a2
make test
fd73a2
fd73a2
%files
fd73a2
%license LICENSE
fd73a2
%doc Changes CONTRIBUTING.mkdn history README Todo t/
fd73a2
%{perl_vendorlib}/CPAN/
fd73a2
%{perl_vendorlib}/Parse/
fd73a2
%{_mandir}/man3/CPAN::Meta.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::Converter.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::Feature.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::History.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::History::Meta_1_0.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::History::Meta_1_1.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::History::Meta_1_2.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::History::Meta_1_3.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::History::Meta_1_4.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::Merge.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::Prereqs.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::Spec.3*
fd73a2
%{_mandir}/man3/CPAN::Meta::Validator.3*
fd73a2
%{_mandir}/man3/Parse::CPAN::Meta.3*
fd73a2
fd73a2
%changelog
fd73a2
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.150010-396
fd73a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fd73a2
fd73a2
* Mon Dec 18 2017 Petr Pisar <ppisar@redhat.com> - 2.150010-395
fd73a2
- Rewrite shell bang according to used perl
fd73a2
fd73a2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.150010-394
fd73a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fd73a2
fd73a2
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.150010-393
fd73a2
- Perl 5.26 rebuild
fd73a2
fd73a2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.150010-2
fd73a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fd73a2
fd73a2
* Fri Aug 19 2016 Paul Howarth <paul@city-fan.org> - 2.150010-1
fd73a2
- Update to 2.150010
fd73a2
  Added:
fd73a2
  - Merged Parse::CPAN::Meta 1.4420 into this distribution
fd73a2
  Fixed:
fd73a2
  - CPAN::Meta::Prereqs now fully accepts phases and types starting with 'x_';
fd73a2
    new 'phases' and 'types_in' interfaces have been added
fd73a2
  - No longer relies on JSON backend for data structure cloning; this is much
fd73a2
    faster than using JSON::PP
fd73a2
  - The cloning routine would raise an error on expected types when it
fd73a2
    previously would stringify; the old behavior is restored
fd73a2
  - Fixed used of Encode in Parse::CPAN::Meta::load_json_string (cherry picked
fd73a2
    from Parse::CPAN::Meta 1.4422)
fd73a2
  - Added "use warnings" to Parse::CPAN::Meta
fd73a2
  - The YAML and JSON backend variables are ignored when building/testing the
fd73a2
    perl core itself, where non-core backends are not yet installed
fd73a2
  Tests:
fd73a2
  - The 'extra_mappings' feature for meta merging is now tested and documented
fd73a2
  - During tests, delete new environment variables added by Parse::CPAN::Meta
fd73a2
    1.4418
fd73a2
  Spec:
fd73a2
  - Clarifies acceptable values for booleans
fd73a2
  - Cleaned up text and links of historical specs
fd73a2
- Obsolete old perl-Parse-CPAN-Meta package
fd73a2
- Simplify find command using -delete
fd73a2
fd73a2
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.150005-365
fd73a2
- Increase release to favour standalone package
fd73a2
fd73a2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.150005-3
fd73a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fd73a2
fd73a2
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.150005-2
fd73a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fd73a2
fd73a2
* Sat Jun 13 2015 Paul Howarth <paul@city-fan.org> - 2.150005-1
fd73a2
- Update to 2.150005
fd73a2
  - Metadata merging now does deep hash merging as long as keys don't conflict
fd73a2
  - Serialized CPAN::Meta objects now include a x_serialization_backend entry
fd73a2
  - Declared extra developer prereq
fd73a2
  - Added test for 'x_deprecated' field in "provides"
fd73a2
  - Noted explicitly that historical META spec files are licensed under the
fd73a2
    same terms as Perl
fd73a2
  - Changed some test data from UTF-8 to ASCII
fd73a2
fd73a2
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.150001-345
fd73a2
- Increase release to favour standalone package
fd73a2
fd73a2
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.150001-2
fd73a2
- Perl 5.22 rebuild
fd73a2
fd73a2
* Tue Mar 10 2015 Paul Howarth <paul@city-fan.org> - 2.150001-1
fd73a2
- Update to 2.150001
fd73a2
  - Include allowed values for license field in 1.x historic licenses rather
fd73a2
    than linking to Module::Build
fd73a2
  - Documented when fragment merging became available
fd73a2
fd73a2
* Tue Jan 13 2015 Petr Pisar <ppisar@redhat.com> - 2.143240-2
fd73a2
- Correct dependencies
fd73a2
fd73a2
* Thu Nov 20 2014 Paul Howarth <paul@city-fan.org> - 2.143240-1
fd73a2
- Update to 2.143240
fd73a2
  - Give correct path in nested merges such as resources
fd73a2
  - Removed strings test that should have been removed when
fd73a2
    CPAN::Meta::Requirements was removed to a separate dist
fd73a2
fd73a2
* Tue Nov 11 2014 Petr Šabata <contyk@redhat.com> - 2.142690-1
fd73a2
 - Update to 2.142690
fd73a2
  - Fixed use of incorrect method in CPAN::Meta::Merge implementation
fd73a2
  - Clarified documentation that no_index is a list of exclusions, and that
fd73a2
    indexers should generally exclude 'inc', 'xt' and 't' as well
fd73a2
  - CPAN::Meta::History::Meta_1_0 through 1_4 are added as a permanent
fd73a2
    record of 1.x versions of the metaspec
fd73a2
fd73a2
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.142060-2
fd73a2
- Perl 5.20 rebuild
fd73a2
fd73a2
* Mon Jul 28 2014 Paul Howarth <paul@city-fan.org> - 2.142060-1
fd73a2
- Update to 2.142060
fd73a2
  - Added ability for CPAN::Meta::Converter to convert metadata fragments
fd73a2
    (incomplete portions of a metadata structure)
fd73a2
  - Optimized internal use of JSON for datastructure cloning
fd73a2
  - Removed dependency on List::Util 1.33
fd73a2
  - Clarified language around 'dynamic_config' in the Spec
fd73a2
  - Clarified use of 'file' for the 'provides' field in the Spec
fd73a2
  - CPAN::Meta::Merge is a new class for merging two possibly overlapping
fd73a2
    instances of metadata, which will accept both CPAN::Meta objects and
fd73a2
    (possibly incomplete) hashrefs of metadata
fd73a2
- Use %%license
fd73a2
fd73a2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.140640-2
fd73a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fd73a2
fd73a2
* Wed Mar 26 2014 Paul Howarth <paul@city-fan.org> - 2.140640-1
fd73a2
- Update to 2.140640
fd73a2
  - Improved bad version handling during META conversion
fd73a2
  - When downgrading multiple licenses to version 1.x META formats, if all the
fd73a2
    licenses are open source, the downgraded license will be "open_source", not
fd73a2
    "unknown"
fd73a2
  - Added a 'load_string' method that guesses whether the string is YAML or
fd73a2
    JSON
fd73a2
- Drop obsoletes/provides for old tests sub-package
fd73a2
- Classify buildreqs by usage
fd73a2
- Package upstream's CONTRIBUTING file
fd73a2
- Make %%files list more explicit
fd73a2
fd73a2
* Fri Oct 11 2013 Paul Howarth <paul@city-fan.org> - 2.132830-1
fd73a2
- Update to 2.132830
fd73a2
  - Fixed incorrectly encoded META.yml
fd73a2
  - META validation used to allow a scalar value when a list (i.e. array
fd73a2
    reference) was required for a field; this has been tightened and
fd73a2
    validation will now fail if a scalar value is given
fd73a2
  - Installation on Perls < 5.12 will uninstall older versions installed
fd73a2
    due to being bundled with ExtUtils::MakeMaker
fd73a2
  - Updated Makefile.PL logic to support PERL_NO_HIGHLANDER
fd73a2
  - Dropped ExtUtils::MakeMaker configure_requires dependency to 6.17
fd73a2
  - CPAN::Meta::Prereqs now has a 'merged_requirements' method for combining
fd73a2
    requirements across multiple phases and types
fd73a2
  - Invalid 'meta-spec' is no longer a fatal error: instead, it will usually
fd73a2
    be treated as spec version "1.0" (prior to formalization of the meta-spec
fd73a2
    field); conversion has some heuristics for guessing a version depending on
fd73a2
    other fields if 'meta-spec' is missing or invalid
fd73a2
- Don't need to remove empty directories from the buildroot
fd73a2
fd73a2
* Thu Sep  5 2013 Paul Howarth <paul@city-fan.org> - 2.132140-1
fd73a2
- update to latest upstream version
fd73a2
fd73a2
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.120921-291
fd73a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fd73a2
fd73a2
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 2.120921-290
fd73a2
- Increase release to favour standalone package
fd73a2
fd73a2
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 2.120921-6
fd73a2
- Perl 5.18 rebuild
fd73a2
fd73a2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.120921-5
fd73a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fd73a2
fd73a2
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.120921-4
fd73a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fd73a2
fd73a2
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 2.120921-3
fd73a2
- Perl 5.16 rebuild
fd73a2
fd73a2
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 2.120921-2
fd73a2
- Build-require Data::Dumper for tests
fd73a2
fd73a2
* Mon Apr 02 2012 Iain Arnell <iarnell@gmail.com> 2.120921-1
fd73a2
- update to latest upstream version
fd73a2
fd73a2
* Fri Mar 30 2012 Iain Arnell <iarnell@gmail.com> 2.120900-1
fd73a2
- update to latest upstream version
fd73a2
fd73a2
* Sun Mar 04 2012 Iain Arnell <iarnell@gmail.com> 2.120630-1
fd73a2
- update to latest upstream version
fd73a2
fd73a2
* Wed Feb 22 2012 Iain Arnell <iarnell@gmail.com> 2.120530-1
fd73a2
- update to latest upstream version
fd73a2
fd73a2
* Sat Feb 04 2012 Iain Arnell <iarnell@gmail.com> 2.120351-1
fd73a2
- update to latest upstream version
fd73a2
fd73a2
* Sun Jan 22 2012 Iain Arnell <iarnell@gmail.com> 2.113640-3
fd73a2
- drop tests subpackage; move tests to main package documentation
fd73a2
fd73a2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.113640-2
fd73a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fd73a2
fd73a2
* Tue Jan  3 2012 Marcela Mašláňová <mmaslano@redhat.com> 2.113640-1
fd73a2
- update to latest version, which deprecated Version::Requirements
fd73a2
fd73a2
* Fri Sep 23 2011 Iain Arnell <iarnell@gmail.com> 2.112621-1
fd73a2
- update to latest upstream version
fd73a2
- clean up spec for modern rpmbuild
fd73a2
fd73a2
* Sat Aug 27 2011 Iain Arnell <iarnell@gmail.com> 2.112150-1
fd73a2
- update to latest upstream version
fd73a2
fd73a2
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.110930-2
fd73a2
- Perl mass rebuild
fd73a2
fd73a2
* Sun Apr 03 2011 Iain Arnell <iarnell@gmail.com> 2.110930-1
fd73a2
- update to latest upstream version
fd73a2
fd73a2
* Sat Apr 02 2011 Iain Arnell <iarnell@gmail.com> 2.110910-1
fd73a2
- update to latest upstream version
fd73a2
fd73a2
* Sun Mar 06 2011 Iain Arnell <iarnell@gmail.com> 2.110580-1
fd73a2
- update to latest upstream version
fd73a2
- drop BR perl(Storable)
fd73a2
fd73a2
* Sat Feb 26 2011 Iain Arnell <iarnell@gmail.com> 2.110550-1
fd73a2
- update to latest upstream version
fd73a2
fd73a2
* Thu Feb 17 2011 Iain Arnell <iarnell@gmail.com> 2.110440-1
fd73a2
- update to latest upstream
fd73a2
- drop BR perl(autodie)
fd73a2
- drop BR perl(Data::Dumper)
fd73a2
fd73a2
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.110350-2
fd73a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fd73a2
fd73a2
* Fri Feb 04 2011 Iain Arnell <iarnell@gmail.com> 2.110350-1
fd73a2
- update to latest upstream version
fd73a2
fd73a2
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.102400-2
fd73a2
- 661697 rebuild for fixing problems with vendorach/lib
fd73a2
fd73a2
* Sun Aug 29 2010 Iain Arnell <iarnell@gmail.com> 2.102400-1
fd73a2
- update by Fedora::App::MaintainerTools 0.006
fd73a2
- updating to latest GA CPAN version (2.102400)
fd73a2
- added a new br on perl(Carp) (version 0)
fd73a2
- added a new br on perl(Data::Dumper) (version 0)
fd73a2
- altered br on perl(ExtUtils::MakeMaker) (0 => 6.31)
fd73a2
- added a new br on perl(File::Spec) (version 0)
fd73a2
- added a new br on perl(File::Temp) (version 0.20)
fd73a2
- added a new br on perl(IO::Dir) (version 0)
fd73a2
- added a new br on perl(Scalar::Util) (version 0)
fd73a2
- added a new br on perl(Storable) (version 0)
fd73a2
- added a new br on perl(autodie) (version 0)
fd73a2
- added a new br on perl(version) (version 0.82)
fd73a2
fd73a2
* Thu Aug 05 2010 Iain Arnell <iarnell@gmail.com> 2.102160-1
fd73a2
- update to latest upstream
fd73a2
fd73a2
* Wed Jun 16 2010 Iain Arnell <iarnell@gmail.com> 2.101670-1
fd73a2
- update to latest upstream
fd73a2
fd73a2
* Mon Jun 14 2010 Iain Arnell <iarnell@gmail.com> 2.101610-1
fd73a2
- update to latest upstream
fd73a2
fd73a2
* Tue Jun 01 2010 Iain Arnell <iarnell@gmail.com> 2.101461-2
fd73a2
- rebuild for perl-5.12
fd73a2
fd73a2
* Fri May 28 2010 Iain Arnell <iarnell@gmail.com> 2.101461-1
fd73a2
- Specfile autogenerated by cpanspec 1.78.
fd73a2
- drop explicit requirements