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