Blame SPECS/perl-CPAN-Meta.spec

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