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