[Tizen] Add new vconf to set runtime_version
authorj-h.choi <j-h.choi@samsung.com>
Tue, 8 Jun 2021 05:14:12 +0000 (14:14 +0900)
committerGleb Balykov <g.balykov@samsung.com>
Tue, 27 Sep 2022 12:50:22 +0000 (15:50 +0300)
packaging/coreclr.spec

index 4f46f0cd5cd53762313f7e86da81c3d507c8eb94..7bcbc07e6b09f508ab3d032d28c01abdaeaf7fd5 100755 (executable)
@@ -684,6 +684,10 @@ cp ./nuget/*.nupkg %{buildroot}/nuget
 rm -f %{_datadir}/%{netcoreappdir}/*.Backup
 %endif
 
-%post -p /sbin/ldconfig
+#From .NET6.0, the version is accumulated in vconf and set in descending order
+#%{dotnet_version}:x.x.x:~~~:6.0.0
+%post
+/usr/bin/vconftool set -t string db/dotnet/runtime_version %{dotnet_version} -f
+/sbin/ldconfig
 
 %postun -p /sbin/ldconfig