summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpackaging/coreclr.spec12
1 files changed, 12 insertions, 0 deletions
diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec
index 9f4b27b..60c2f58 100755
--- a/packaging/coreclr.spec
+++ b/packaging/coreclr.spec
@@ -218,6 +218,12 @@ mkdir -p %{buildroot}%{_datadir}/%{dotnetfwdir}
mkdir -p %{buildroot}%{_datadir}/%{dotnettestdir}
ln -sf %{_datadir}/%{netcoreappdir} %{buildroot}%{_datadir}/%{dotnettizendir}/netcoreapp
+# symlink to .NET version for compatibility
+ln -sf %{dotnet_version} %{buildroot}%{_datadir}/%{netshareddir}/Microsoft.NETCore.App/2.0.0
+ln -sf %{dotnet_version} %{buildroot}%{_datadir}/%{netshareddir}/Microsoft.NETCore.App/2.1.0
+ln -sf %{dotnet_version} %{buildroot}%{_datadir}/%{netshareddir}/Microsoft.NETCore.App/2.1.1
+ln -sf %{dotnet_version} %{buildroot}%{_datadir}/%{netshareddir}/Microsoft.NETCore.App/2.1.4
+
%if 0%{skipnative}
%else
cp %{_reldir}/corerun %{buildroot}%{_datadir}/%{netcoreappdir}
@@ -284,6 +290,12 @@ cp %{_reldir}/SOS.NETCore.dll %{buildroot}%{_datadir}/%{netcoreappdir}
%{_datadir}/%{dotnetdir}/corerun
%{_datadir}/%{dotnettizendir}/netcoreapp
+# symlink to .NET version for compatibility
+%dir %{_datadir}/%{netshareddir}/Microsoft.NETCore.App/2.0.0
+%dir %{_datadir}/%{netshareddir}/Microsoft.NETCore.App/2.1.0
+%dir %{_datadir}/%{netshareddir}/Microsoft.NETCore.App/2.1.1
+%dir %{_datadir}/%{netshareddir}/Microsoft.NETCore.App/2.1.4
+
%files extra
%manifest %{name}.manifest
%dir %{_datadir}/%{dotnetfwdir}