From bcbb6516e76b23c2fef9e3d666fe3aa6196ed4a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 9 Jan 2020 16:27:24 +0100 Subject: [PATCH] Subpackage feature --- gendep.macros | 4 +++- perl.spec | 31 ++++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/gendep.macros b/gendep.macros index 2e3f0cf..9325e19 100644 --- a/gendep.macros +++ b/gendep.macros @@ -688,6 +688,9 @@ Requires: perl(strict) \ Requires: perl(XSLoader) \ Provides: perl(Fcntl) = 1.13 \ %{nil} +%global gendep_perl_feature \ +Provides: perl(feature) = 1.54 \ +%{nil} %global gendep_perl_fields \ Requires: perl(:VERSION) >= 5.8.0 \ Requires: perl(strict) \ @@ -2207,7 +2210,6 @@ Provides: perl(DB) = 1.08 \ Provides: perl(EVERY::LAST) \ Provides: perl(Pod::Functions) = 1.13 \ Provides: perl(dumpvar.pl) \ -Provides: perl(feature) = 1.54 \ Provides: perl(filetest) = 1.03 \ Provides: perl(less) = 0.03 \ Provides: perl(perl5db.pl) \ diff --git a/perl.spec b/perl.spec index d5fa1e4..8a6e277 100644 --- a/perl.spec +++ b/perl.spec @@ -390,7 +390,7 @@ Requires: perl-ExtUtils-Command, Requires: perl-ExtUtils-Embed, perl-ExtUtils-Install, Requires: perl-ExtUtils-MakeMaker, perl-ExtUtils-Manifest, Requires: perl-ExtUtils-Miniperl, perl-ExtUtils-ParseXS, -Requires: perl-Fcntl, perl-fields, +Requires: perl-Fcntl, perl-feature, perl-fields, Requires: perl-File-Basename, perl-File-Compare, perl-File-Copy, Requires: perl-File-DosGlob, perl-File-Fetch, Requires: perl-File-Find, perl-File-Path, perl-File-stat, perl-File-Temp, @@ -1860,6 +1860,26 @@ Conflicts: perl-interpreter < 4:5.30.1-451 %description Fcntl Fcntl module provides file operation related options. +%package feature +Summary: Pragma to enable new Perl features +License: GPL+ or Artistic +Epoch: 0 +Version: 1.54 +BuildArch: noarch +Requires: %perl_compat +Requires: perl(Carp) +%if %{defined perl_bootstrap} +%gendep_perl_feature +%endif +Conflicts: perl < 4:5.30.1-451 + +%description feature +It is usually impossible to add new syntax to Perl without breaking some +existing programs. This pragma provides a way to minimize that risk. New +syntactic constructs, or new semantic meanings to older constructs, can be +enabled by "use feature 'foo'", and will be parsed only when the appropriate +feature pragma is in scope. + %package fields Summary: Compile-time class fields License: GPL+ or Artistic @@ -4963,6 +4983,10 @@ popd %exclude %{archlib}/auto/Fcntl %exclude %{_mandir}/man3/Fcntl.3* +# feature +%exclude %{privlib}/feature.pm +%exclude %{_mandir}/man3/feature.3* + # fields %exclude %{privlib}/fields.pm %exclude %{_mandir}/man3/fields.3* @@ -6292,6 +6316,10 @@ popd %{archlib}/auto/Fcntl %{_mandir}/man3/Fcntl.3* +%files feature +%{privlib}/feature.pm +%{_mandir}/man3/feature.3* + %files fields %{privlib}/fields.pm %{_mandir}/man3/fields.3* @@ -7290,6 +7318,7 @@ popd - Subpackage SelectSaver - Move UNIVERSAL to perl-libs - Subpackage DynaLoader +- Subpackage feature * Wed Jan 29 2020 Fedora Release Engineering - 4:5.30.1-450 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild