Add %%{perl_minver} macro and re-add BR on perl(:VERSION)

This commit is contained in:
Björn Esser 2022-11-16 11:07:09 +01:00
parent 7a840ca6bc
commit e16250c08b
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -56,6 +56,10 @@
%global glibc_minver 2.28 %global glibc_minver 2.28
# Minimum version of Perl needed for some build-scripts.
%global perl_minver 5.14
# The libxcrypt-devel package conflicts with out-dated manuals # The libxcrypt-devel package conflicts with out-dated manuals
# shipped with the man-pages packages *before* this EVR. # shipped with the man-pages packages *before* this EVR.
%global man_pages_minver 4.15-3 %global man_pages_minver 4.15-3
@ -158,7 +162,7 @@ fi \
Name: libxcrypt Name: libxcrypt
Version: 4.4.31 Version: 4.4.31
Release: 4%{?dist} Release: 5%{?dist}
Summary: Extended crypt library for descrypt, md5crypt, bcrypt, and others Summary: Extended crypt library for descrypt, md5crypt, bcrypt, and others
# For explicit license breakdown, see the # For explicit license breakdown, see the
@ -180,7 +184,7 @@ BuildRequires: fipscheck
BuildRequires: gcc BuildRequires: gcc
BuildRequires: glibc-devel >= %{glibc_minver} BuildRequires: glibc-devel >= %{glibc_minver}
BuildRequires: make BuildRequires: make
BuildRequires: perl-interpreter >= 5.14.0 BuildRequires: perl-interpreter >= %{perl_minver}
BuildRequires: perl(Class::Struct) BuildRequires: perl(Class::Struct)
BuildRequires: perl(Cwd) BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter) BuildRequires: perl(Exporter)
@ -194,6 +198,7 @@ BuildRequires: perl(open)
BuildRequires: perl(POSIX) BuildRequires: perl(POSIX)
BuildRequires: perl(Symbol) BuildRequires: perl(Symbol)
BuildRequires: perl(utf8) BuildRequires: perl(utf8)
BuildRequires: perl(:VERSION) >= %{perl_minver}
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
%if %{without bootstrap} %if %{without bootstrap}
@ -568,6 +573,9 @@ done
%changelog %changelog
* Wed Nov 16 2022 Björn Esser <besser82@fedoraproject.org> - 4.4.31-5
- Add %%{perl_minver} macro and re-add BR on perl(:VERSION)
* Wed Nov 16 2022 Björn Esser <besser82@fedoraproject.org> - 4.4.31-4 * Wed Nov 16 2022 Björn Esser <besser82@fedoraproject.org> - 4.4.31-4
- Add BR for perl modules to run the skip-if-exec-format-error script - Add BR for perl modules to run the skip-if-exec-format-error script
- Move the BR for minimum Perl version to perl-interpreter - Move the BR for minimum Perl version to perl-interpreter