Sub-package perl-inc-latest

This commit is contained in:
Jitka Plesnikova 2015-01-30 13:23:42 +01:00
parent fd6fcf71af
commit fc9106206d

View File

@ -5,7 +5,7 @@
Name: perl-Module-Build
Epoch: 2
Version: %{cpan_version_major}%{?cpan_version_minor:.%cpan_version_minor}
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Build and install Perl modules
License: GPL+ or Artistic
Group: Development/Libraries
@ -78,6 +78,7 @@ Requires: perl(ExtUtils::Install) >= 0.3
Requires: perl(ExtUtils::Manifest) >= 1.54
Requires: perl(ExtUtils::Mkbootstrap)
Requires: perl(ExtUtils::ParseXS) >= 2.21
Requires: perl(inc::latest)
Requires: perl(Module::Metadata) >= 1.000002
# Keep PAR support optional (PAR::Dist)
Requires: perl(Perl::OSType) >= 1
@ -115,6 +116,17 @@ so even platforms like MacOS (traditional) can use it fairly easily. Its
only prerequisites are modules that are included with perl 5.6.0, and it
works fine on perl 5.005 if you can install a few additional modules.
%package -n perl-inc-latest
Summary: Use modules bundled in inc/ if they are newer than installed ones
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(ExtUtils::Installed)
Conflicts: perl-Module-Build < 2:0.42.10-4
%description -n perl-inc-latest
The C<inc::latest> module helps bootstrap configure-time dependencies for
CPAN distributions. These dependencies get bundled into the C<inc>
directory within a distribution and are used by Build.PL (or Makefile.PL).
%prep
%setup -q -n Module-Build-%{cpan_version}
@ -133,11 +145,19 @@ LANG=C TEST_SIGNATURE=1 MB_TEST_EXPERIMENTAL=1 ./Build test
%files
%doc Changes contrib LICENSE README
%{_bindir}/config_data
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/Module
%{_mandir}/man1/config_data*
%{_mandir}/man3/Module::Build*
%files -n perl-inc-latest
%{perl_vendorlib}/inc
%{_mandir}/man3/inc::latest*
%changelog
* Fri Jan 30 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2:0.42.10-4
- Sub-package perl-inc-latest
* Thu Dec 11 2014 Petr Pisar <ppisar@redhat.com> - 2:0.42.10-3
- Disable File::ShareDir optional tests when bootstrapping