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