Provide perl version in perl(:VERSION) dependency symbol

Expressing minimal Perl version as "perl >= 1:5.006" is insufficient:

The Perl version is defined by perl-libs, not perl.
Modules requiring specific Perl but no perl interpreter should not
pull in the perl package.
The epoch numbers are tedious to synchronize.
The auto-generated value is not normalized (1:5.006001).

After this change we will update perl-generators to produce
perl(:VERSION) dependency instead and we will rebuild perl and
perl-Exporter again to leverage this capability.
This commit is contained in:
Petr Písař 2015-10-09 14:39:59 +02:00
parent bfe1e476f7
commit 93c55e6eff
1 changed files with 4 additions and 1 deletions

View File

@ -169,6 +169,8 @@ Group: Development/Languages
License: GPL+ or Artistic
# Compat provides
Provides: %perl_compat
# Interpreter version to fulfil required genersted from "require 5.006;"
Provides: perl(:VERSION) = %{perl_version}
# Threading provides
Provides: perl(:WITH_ITHREADS)
Provides: perl(:WITH_THREADS)
@ -4615,7 +4617,7 @@ popd
# Old changelog entries are preserved in CVS.
%changelog
* Wed Oct 07 2015 Petr Pisar <ppisar@redhat.com> - 4:5.22.0-351
* Fri Oct 09 2015 Petr Pisar <ppisar@redhat.com> - 4:5.22.0-351
- Sub-package Attribute-Handlers
- Sub-package Devel-Peek
- Sub-package Devel-SelfStubber
@ -4629,6 +4631,7 @@ popd
- Sub-package IPC-SysV
- Sub-package Test
- Sub-package utilities (splain) into perl-utils
- Provide perl version in perl(:VERSION) dependency symbol
* Fri Aug 07 2015 Petr Pisar <ppisar@redhat.com> - 4:5.22.0-350
- Sub-package Memoize