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