require perl(MODULE_COMPAT) for Fedora < 38 and RHEL
ce294ea
(Remove perl(MODULE_COMPAT), it will be replaced by generators,
2023-01-13) removed the `Requires: perl(:MODULE_COMPAT_*)` entirely.
This is not suitable for merging to older Fedora or RHEL releases. Make
the requirement conditional.
This commit is contained in:
parent
ce294eae02
commit
6fcfc2d4a2
13
git.spec
13
git.spec
@ -14,6 +14,13 @@
|
|||||||
%bcond_with linkcheck
|
%bcond_with linkcheck
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Settings for Fedora >= 38
|
||||||
|
%if 0%{?fedora} >= 38
|
||||||
|
%bcond_with perl_modcompat
|
||||||
|
%else
|
||||||
|
%bcond_without perl_modcompat
|
||||||
|
%endif
|
||||||
|
|
||||||
# Settings for Fedora and EL >= 9
|
# Settings for Fedora and EL >= 9
|
||||||
%if 0%{?fedora} || 0%{?rhel} >= 9
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
||||||
%bcond_without asciidoctor
|
%bcond_without asciidoctor
|
||||||
@ -464,6 +471,9 @@ Requires: git = %{version}-%{release}
|
|||||||
Summary: Perl interface to Git
|
Summary: Perl interface to Git
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires: git = %{version}-%{release}
|
Requires: git = %{version}-%{release}
|
||||||
|
%if %{with perl_modcompat}
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
%endif
|
||||||
%description -n perl-Git
|
%description -n perl-Git
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
@ -471,6 +481,9 @@ Requires: git = %{version}-%{release}
|
|||||||
Summary: Perl interface to Git::SVN
|
Summary: Perl interface to Git::SVN
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Requires: git = %{version}-%{release}
|
Requires: git = %{version}-%{release}
|
||||||
|
%if %{with perl_modcompat}
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
%endif
|
||||||
%description -n perl-Git-SVN
|
%description -n perl-Git-SVN
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user