[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>
Wed, 8 Dec 2021 16:14:52 +0000 (19:14 +0300)
packaging/coreclr.spec

index b08f5de..64c293b 100755 (executable)
@@ -665,6 +665,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