Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/perl-Config-AutoConf.git#3fe8cb9c9576e33c2a91ad185cb2f75eec7562a9
This commit is contained in:
DistroBaker 2021-01-12 12:08:27 +00:00
parent 7488e1c52e
commit ed33590856

View File

@ -1,6 +1,11 @@
# Use File::Slurper for reading file content
%bcond_without perl_Config_AutoConf_enables_File_Slurper
# Use Scalar::Util for detecting numbers
%bcond_without perl_Config_AutoConf_enables_Scalar_Util
Name: perl-Config-AutoConf
Version: 0.319
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A module to implement some of AutoConf macros in pure Perl
License: GPL+ or Artistic
URL: https://metacpan.org/release/Config-AutoConf
@ -8,6 +13,7 @@ Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/Config-AutoCon
BuildArch: noarch
# Build
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
@ -21,9 +27,14 @@ BuildRequires: perl(Config)
BuildRequires: perl(constant)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Basename)
%if %{with perl_Config_AutoConf_enables_File_Slurper}
BuildRequires: perl(File::Slurper)
%endif
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
%if %{with perl_Config_AutoConf_enables_Scalar_Util}
BuildRequires: perl(Scalar::Util) >= 1.18
%endif
BuildRequires: perl(Text::ParseWords)
# Tests only
BuildRequires: perl(Cwd)
@ -31,6 +42,12 @@ BuildRequires: perl(ExtUtils::CBuilder)
# Unused BuildRequires: perl(IO::String)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "$(/usr/bin/perl -V:version)"; echo $version))
%if %{with perl_Config_AutoConf_enables_File_Slurper}
Suggests: perl(File::Slurper)
%endif
%if %{with perl_Config_AutoConf_enables_Scalar_Util}
Suggests: perl(Scalar::Util) >= 1.18
%endif
%description
This module simulates some of the tasks autoconf macros do. To detect
@ -56,6 +73,10 @@ a command, a library and similar.
%{_mandir}/man3/*
%changelog
* Tue Jan 12 2021 Petr Pisar <ppisar@redhat.com> - 0.319-2
- Suggest File::Slurper for reading file content
- Suggest Scalar::Util for detecting numbers
* Sun Oct 04 2020 Emmanuel Seyman <emmanuel@seyman.fr> - 0.319-1
- Update to 0.319