diff --git a/gendep.macros b/gendep.macros index b09ff19..1a73e40 100644 --- a/gendep.macros +++ b/gendep.macros @@ -791,6 +791,15 @@ Requires: perl(warnings) \ Requires: perl(XSLoader) \ Provides: perl(GDBM_File) = 1.18 \ %{nil} +%global gendep_perl_FindBin \ +Requires: perl(:VERSION) >= 5.0.0 \ +Requires: perl(Carp) \ +Requires: perl(Cwd) \ +Requires: perl(Exporter) \ +Requires: perl(File::Basename) \ +Requires: perl(File::Spec) \ +Provides: perl(FindBin) = 1.51 \ +%{nil} %global gendep_perl_Getopt_Long \ Requires: perl(:VERSION) >= 5.4.0 \ Requires: perl(Exporter) \ @@ -2141,9 +2150,7 @@ Requires: perl(:VERSION) >= 5.10.1 \ Requires: perl(:VERSION) >= 5.6.0 \ Requires: perl(Carp) \ Requires: perl(Config) \ -Requires: perl(Cwd) \ Requires: perl(Exporter) \ -Requires: perl(File::Basename) \ Requires: perl(File::Spec) \ Requires: perl(I18N::LangTags) \ Requires: perl(Symbol) \ @@ -2159,7 +2166,6 @@ Provides: perl(English) = 1.10 \ Provides: perl(File::Basename) = 2.85 \ Provides: perl(File::Compare) = 1.1006 \ Provides: perl(File::Copy) = 2.34 \ -Provides: perl(FindBin) = 1.51 \ Provides: perl(Getopt::Std) = 1.12 \ Provides: perl(Pod::Functions) = 1.13 \ Provides: perl(SelectSaver) = 1.02 \ diff --git a/perl.spec b/perl.spec index 0a80b08..2f15643 100644 --- a/perl.spec +++ b/perl.spec @@ -392,6 +392,7 @@ Requires: perl-Fcntl, perl-fields, perl-File-DosGlob, perl-File-Fetch, Requires: perl-File-Find, perl-File-Path, perl-File-stat, perl-File-Temp, Requires: perl-FileCache, perl-FileHandle, Requires: perl-Filter, perl-Filter-Simple, +Requires: perl-FindBin, %if %{with gdbm} Requires: perl-GDBM_File, %endif @@ -1987,6 +1988,22 @@ The Filter::Simple Perl module provides a simplified interface to Filter::Util::Call; one that is sufficient for most common cases. %endif +%package FindBin +Summary: Locate a directory of an original Perl script +License: GPL+ or Artistic +Epoch: 0 +Version: 1.51 +Requires: %perl_compat +%if %{defined perl_bootstrap} +%gendep_perl_FindBin +%endif +BuildArch: noarch +Conflicts: perl-interpreter < 4:5.30.1-451 + +%description FindBin +Locates the full path to the script bin directory to allow the use of paths +relative to the bin directory. + %if %{with gdbm} %package GDBM_File Summary: Perl5 access to the gdbm library @@ -4750,6 +4767,10 @@ popd %exclude %{privlib}/Filter/Simple.pm %exclude %{_mandir}/man3/Filter::Simple.3* +# FindBin +%exclude %{privlib}/FindBin.pm +%exclude %{_mandir}/man3/FindBin.* + %if %{with gdbm} # GDBM_File %exclude %{archlib}/GDBM_File.pm @@ -6032,6 +6053,10 @@ popd %{_mandir}/man3/Filter::Simple.3* %endif +%files FindBin +%{privlib}/FindBin.pm +%{_mandir}/man3/FindBin.* + %if %{with gdbm} %files GDBM_File %{archlib}/GDBM_File.pm @@ -6908,6 +6933,7 @@ popd - Subpackage Thread - Subpackage Unicode::UCD - Subpackage diagnostics and move splain tool from perl-utils there +- Subpackage FindBin * Wed Jan 29 2020 Fedora Release Engineering - 4:5.30.1-450 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild