diff --git a/gendep.macros b/gendep.macros index a366742..a3aa121 100644 --- a/gendep.macros +++ b/gendep.macros @@ -437,6 +437,17 @@ Provides: perl(ExtUtils::CBuilder::Platform::dec_osf) = 0.280231 \ Provides: perl(ExtUtils::CBuilder::Platform::linux) = 0.280206 \ Provides: perl(ExtUtils::CBuilder::Platform::os2) = 0.280231 \ %{nil} +%global gendep_perl_ExtUtils_Constant \ +Requires: perl(ExtUtils::Constant::Base) \ +Requires: perl(ExtUtils::Constant::Utils) \ +Requires: perl(ExtUtils::Constant::XS) \ +Requires: perl(Text::Wrap) \ +Provides: perl(ExtUtils::Constant) = 0.25 \ +Provides: perl(ExtUtils::Constant::Base) = 0.06 \ +Provides: perl(ExtUtils::Constant::ProxySubs) = 0.09 \ +Provides: perl(ExtUtils::Constant::Utils) = 0.04 \ +Provides: perl(ExtUtils::Constant::XS) = 0.03 \ +%{nil} %global gendep_perl_ExtUtils_Command \ Requires: perl(:VERSION) >= 5.5.30 \ Requires: perl(Exporter) \ @@ -1738,9 +1749,6 @@ Requires: perl(Class::Struct) \ Requires: perl(Config) \ Requires: perl(Cwd) \ Requires: perl(Exporter) \ -Requires: perl(ExtUtils::Constant::Base) \ -Requires: perl(ExtUtils::Constant::Utils) \ -Requires: perl(ExtUtils::Constant::XS) \ Requires: perl(Fcntl) \ Requires: perl(File::Basename) \ Requires: perl(File::Spec) \ @@ -1752,7 +1760,6 @@ Requires: perl(POSIX) \ Requires: perl(Scalar::Util) >= 1.10 \ Requires: perl(Symbol) \ Requires: perl(Text::Tabs) \ -Requires: perl(Text::Wrap) \ Requires: perl(Tie::Handle) \ Requires: perl(Tie::Hash) \ Requires: perl(Tie::StdHandle) \ @@ -1804,11 +1811,6 @@ Provides: perl(Dumpvalue) = 1.19 \ Provides: perl(DynaLoader) = 1.45 \ Provides: perl(EVERY::LAST) \ Provides: perl(English) = 1.10 \ -Provides: perl(ExtUtils::Constant) = 0.25 \ -Provides: perl(ExtUtils::Constant::Base) = 0.06 \ -Provides: perl(ExtUtils::Constant::ProxySubs) = 0.09 \ -Provides: perl(ExtUtils::Constant::Utils) = 0.04 \ -Provides: perl(ExtUtils::Constant::XS) = 0.03 \ Provides: perl(Fcntl) = 1.13 \ Provides: perl(File::Basename) = 2.85 \ Provides: perl(File::Compare) = 1.1006 \ diff --git a/perl.spec b/perl.spec index 60ea185..1028a32 100644 --- a/perl.spec +++ b/perl.spec @@ -379,7 +379,8 @@ Requires: perl-Devel-Peek, perl-Devel-PPPort, perl-Devel-SelfStubber, Requires: perl-Digest, perl-Digest-MD5, perl-Digest-SHA, Requires: perl-Encode, perl-Encode-devel, perl-encoding Requires: perl-Env, perl-Errno, perl-experimental, perl-Exporter, -Requires: perl-ExtUtils-CBuilder, perl-ExtUtils-Command, +Requires: perl-ExtUtils-CBuilder, perl-ExtUtils-Constant, +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, @@ -1328,6 +1329,26 @@ appropriate compilers and linkers in a cross-platform manner. It was motivated by the Module::Build project, but may be useful for other purposes as well. %endif +%package ExtUtils-Constant +Summary: Generate XS code to import C header constants +License: GPL+ or Artistic +Epoch: 0 +Version: 0.25 +BuildArch: noarch +Requires: %perl_compat +Requires: perl(Data::Dumper) +# ExtUtils::Constant::Aaargh56Hash not used on recent Perls +# FileHandle not used on recent Perls +# POSIX not used on recent Perls +Conflicts: perl-interpreter < 4:5.30.1-451 +%if %{defined perl_bootstrap} +%gendep_perl_ExtUtils_Constant +%endif + +%description ExtUtils-Constant +ExtUtils::Constant facilitates generating C and XS wrapper code to allow +Perl modules to AUTOLOAD constants defined in C library header files. + %if %{dual_life} || %{rebuild_from_scratch} %package ExtUtils-Command Summary: Perl routines to replace common UNIX commands in Makefiles @@ -3565,6 +3586,12 @@ popd %exclude %{privlib}/ExtUtils/CBuilder.pm %exclude %{_mandir}/man3/ExtUtils::CBuilder* +# ExtUtils-Constant +%exclude %{privlib}/ExtUtils/Constant +%exclude %{privlib}/ExtUtils/Constant.pm +%exclude %{_mandir}/man3/ExtUtils::Constant::* +%exclude %{_mandir}/man3/ExtUtils::Constant.3* + # ExtUtils-Command %exclude %{privlib}/ExtUtils/Command.pm %exclude %{_mandir}/man3/ExtUtils::Command.* @@ -4493,6 +4520,12 @@ popd %{_mandir}/man3/ExtUtils::CBuilder* %endif +%files ExtUtils-Constant +%{privlib}/ExtUtils/Constant +%{privlib}/ExtUtils/Constant.pm +%{_mandir}/man3/ExtUtils::Constant::* +%{_mandir}/man3/ExtUtils::Constant.3* + %if %{dual_life} || %{rebuild_from_scratch} %files ExtUtils-Command %dir %{privlib}/ExtUtils @@ -5258,6 +5291,7 @@ popd %changelog * Mon Feb 03 2020 Petr Pisar - 4:5.30.1-451 - Subpackage AutoLoader and AutoSplit +- Subpackage ExtUtils-Constant * Wed Jan 29 2020 Fedora Release Engineering - 4:5.30.1-450 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild