diff --git a/dotnet3.1.spec b/dotnet3.1.spec index 1b16cb7..fe88d8c 100644 --- a/dotnet3.1.spec +++ b/dotnet3.1.spec @@ -55,7 +55,7 @@ Name: dotnet3.1 Version: %{sdk_rpm_version} -Release: 2%{?dist} +Release: 3%{?dist} Summary: .NET Core Runtime and SDK License: MIT and ASL 2.0 and BSD and LGPLv2+ and CC-BY and CC0 and MS-PL and EPL-1.0 and GPL+ and GPLv2 and ISC and OFL and zlib URL: https://github.com/dotnet/ @@ -406,6 +406,16 @@ cat /etc/os-release %if %{without bootstrap} # We need to create a copy because we will mutate this cp -a %{_libdir}/dotnet previously-built-dotnet + +# .NET Core 3.1 doesn't (yet) know about RHEL 9, so lets hack the RHEL +# 9 RID into there, for now. This hack can be removed when the 3.1.112 +# SDK is available in the buildroot. +%if 0%{?rhel} == 9 +find -iname RuntimeIdentifierGraph.json +cat $(find -iname RuntimeIdentifierGraph.json) +sed -i -e 's|rhel.8|rhel.9|g' $(find -iname RuntimeIdentifierGraph.json) +%endif + %endif %if 0%{?fedora} > 32 || 0%{?rhel} > 8 @@ -560,6 +570,9 @@ echo "Testing build results for debug symbols..." %changelog +* Wed Feb 17 2021 Omair Majid - 3.1.112-3 +- Hack an RID for RHEL 9 into the build SDK + * Wed Feb 17 2021 Omair Majid - 3.1.112-2 - Add Fedora 35 Runtime ID