diff --git a/gcc-toolset-15-gcc.spec b/gcc-toolset-15-gcc.spec index 285acfa..01155e6 100644 --- a/gcc-toolset-15-gcc.spec +++ b/gcc-toolset-15-gcc.spec @@ -4,6 +4,7 @@ %global have_scl_utils 0 %endif %global gts_ver 15 +%global gts_next %(v="%{gts_ver}"; echo $((++v))) %{?scl_package:%global scl gcc-toolset-%{gts_ver}} %global scl_prefix gcc-toolset-%{gts_ver}- %if %have_scl_utils @@ -300,7 +301,7 @@ Requires: libgcc >= 4.1.2-43 Requires: libgomp >= 4.4.4-13 # lto-wrapper invokes make Requires: make -Requires: %{?scl_prefix}runtime >= %{gts_ver}.0 +Requires: (%{?scl_prefix}runtime >= %{gts_ver} with %{?scl_prefix}runtime < %{gts_next}) AutoReq: true # Various libraries are imported. #1859893 asks us to list them all. Provides: bundled(libiberty)