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