PATH=/bin:/usr/bin
vconftool set -f -t int db/dotnet/tizen_api_version 12
-vconftool set -f -t string db/dotnet/tizen_rid_version "4.0.0:5.0.0:5.5.0:6.0.0:6.5.0:7.0.0:8.0.0:9.0.0"
-vconftool set -f -t string db/dotnet/tizen_tfm_support "net6.0-tizen9.0:net6.0-tizen8.0:tizen10.0:tizen90:tizen80:tizen70:tizen60:tizen50:tizen40"
+vconftool set -f -t string db/dotnet/tizen_rid_version "9.0.0:8.0.0:7.0.0:6.5.0:6.0.0:5.5.0:5.0.0:4.0.0"
+vconftool set -f -t string db/dotnet/tizen_tfm_support "net6.0-tizen9.0:net6.0-tizen8.0:net6.0-tizen:net6.0:tizen10.0:tizen90:tizen80:tizen70:tizen60:tizen50:tizen40"
%define DOTNET_LIBRARY_PATH /usr/share/dotnet.tizen/lib
%define DOTNET_NUGET_SOURCE /nuget
-%define TIZEN_NET_RUNTIME_IDENTIFIERS 4.0.0:5.0.0:5.5.0:6.0.0:6.5.0:7.0.0:8.0.0:9.0.0
-%define TIZEN_NET_TARGET_FRAMEWORK_MONIKERS net6.0-tizen8.0:tizen10.0:tizen90:tizen80:tizen70:tizen60:tizen50:tizen40
-%define DOTNET_CORE_RUNTIME_VERSION 6.0
+%define TIZEN_NET_RUNTIME_IDENTIFIERS 9.0.0:8.0.0:7.0.0:6.5.0:6.0.0:5.5.0:5.0.0:4.0.0
+%define TIZEN_NET_TARGET_FRAMEWORK_MONIKERS net6.0-tizen9.0:net6.0-tizen8.0:net6.0-tizen:net6.0:tizen10.0:tizen90:tizen80:tizen70:tizen60:tizen50:tizen40
%define UPGRADE_SCRIPT_PATH /usr/share/upgrade/scripts
%post
/usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
/usr/bin/vconftool set -t string db/dotnet/tizen_api_path %{DOTNET_ASSEMBLY_PATH} -f
-/usr/bin/vconftool set -t string db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS} -f
-/usr/bin/vconftool set -t string db/dotnet/tizen_tfm_support %{TIZEN_NET_TARGET_FRAMEWORK_MONIKERS} -f
-/usr/bin/vconftool set -t string db/dotnet/runtime_version %{DOTNET_CORE_RUNTIME_VERSION} -f
mkdir -p %{DOTNET_LIBRARY_PATH}
touch %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
echo "db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS}" > %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
echo "db/dotnet/tizen_tfm_support %{TIZEN_NET_TARGET_FRAMEWORK_MONIKERS}" >> %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
-echo "db/dotnet/runtime_version %{DOTNET_CORE_RUNTIME_VERSION}" >> %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
%files
%license LICENSE
%define TIZEN_NET_RUNTIME_IDENTIFIERS @rid_version@
%define TIZEN_NET_TARGET_FRAMEWORK_MONIKERS @tfm_support@
-%define DOTNET_CORE_RUNTIME_VERSION 6.0
%define UPGRADE_SCRIPT_PATH /usr/share/upgrade/scripts
%post
/usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f
/usr/bin/vconftool set -t string db/dotnet/tizen_api_path %{DOTNET_ASSEMBLY_PATH} -f
-/usr/bin/vconftool set -t string db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS} -f
-/usr/bin/vconftool set -t string db/dotnet/tizen_tfm_support %{TIZEN_NET_TARGET_FRAMEWORK_MONIKERS} -f
-/usr/bin/vconftool set -t string db/dotnet/runtime_version %{DOTNET_CORE_RUNTIME_VERSION} -f
mkdir -p %{DOTNET_LIBRARY_PATH}
touch %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
echo "db/dotnet/tizen_rid_version %{TIZEN_NET_RUNTIME_IDENTIFIERS}" > %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
echo "db/dotnet/tizen_tfm_support %{TIZEN_NET_TARGET_FRAMEWORK_MONIKERS}" >> %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
-echo "db/dotnet/runtime_version %{DOTNET_CORE_RUNTIME_VERSION}" >> %{DOTNET_LIBRARY_PATH}/dotnet_resolving.info
%files
%license LICENSE
rid_list.append(key)
rid_list = list(set(rid_list))
- rid_list.sort()
+ rid_list.sort(reverse=True)
f = open(spec_dir,'r')
origin_data = f.read()
+++ /dev/null
-import os
-import xml.etree.ElementTree as ET
-
-scrpit_dir = os.path.dirname(os.path.abspath(__file__))
-spec_dir = os.path.join(scrpit_dir, "csapi-tizenfx.spec")
-nuspec_file = os.path.join(scrpit_dir, "../pkg/Tizen.NET/Tizen.NET.nuspec")
-tree = ET.parse(nuspec_file)
-root = tree.getroot()
-
-runtime_list = []
-for meta_child in root.iter():
- if meta_child.tag == "{http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd}metadata":
- for depen_child in meta_child:
- if depen_child.tag == "{http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd}dependencies":
- for group in depen_child:
- tfm = group.attrib["targetFramework"].lower()
- if tfm.startswith(".net"):
- if len(tfm) != 15:
- runtime_list.append(tfm.replace(".net", "").strip())
-
-runtime_list = list(set(runtime_list))
-runtime_list.sort(reverse=True)
-
-f = open(spec_dir,'r')
-origin_data = f.read()
-f.close()
-
-new_data = origin_data.replace("@dotnet_core_version@", ':'.join(runtime_list))
-
-f = open(spec_dir, 'w')
-f.write(new_data)
-f.close()
# Update TFM
python $SCRIPT_DIR/maketfm.py
-
-# Update Runtime Version
-python $SCRIPT_DIR/makeruntimeversion.py
-import os
+import os, re
import xml.etree.ElementTree as ET
scrpit_dir = os.path.dirname(os.path.abspath(__file__))
tree = ET.parse(nuspec_file)
root = tree.getroot()
-tfm_list1 = []
-tfm_list2 = []
+tfm_list1 = [] #tizen90, tizen80, tizen70, tizen60, tizen50, tizen40
+tfm_list2 = [] #tizen10.0
+tfm_list3 = [] #net6.0-tizen9.0, net6.0-tizen8.0, net6.0-tizen, net6.0
for meta_child in root.iter():
if meta_child.tag == "{http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd}metadata":
for depen_child in meta_child:
tfm_list1.append(tfm.replace(".", "").strip())
else:
tfm_list2.append(tfm.strip())
+ elif tfm.startswith("net"):
+ if len(tfm) < 8:
+ tfm_list3.append(tfm.strip() + "-tizen")
+ tfm_list3.append(tfm.strip())
+
tfm_list1 = list(set(tfm_list1))
tfm_list1.sort(reverse=True)
tfm_list2 = list(set(tfm_list2))
tfm_list2.sort(reverse=True)
-tfm_list = tfm_list2 + tfm_list1
+tfm_list3 = list(set(tfm_list3))
+tfm_list3.sort(key=len)
+tfm_list3.sort(key=lambda s: float(re.search(r'(\d+)\.', s).group()[0]))
+tfm_list3.reverse()
+tfm_list = tfm_list3 + tfm_list2 + tfm_list1
f = open(spec_dir,'r')
origin_data = f.read()