[Build] Set TFM supported by Tizen to vconf (#2026)
[platform/core/csapi/tizenfx.git] / packaging / csapi-tizenfx.spec.in
index 702b0c8..cc8ab0b 100644 (file)
@@ -11,6 +11,7 @@
 %define DOTNET_NUGET_SOURCE /nuget
 
 %define TIZEN_NET_RUNTIME_IDENTIFIERS @rid_version@
+%define TIZEN_NET_TARGET_FRAMEWORK_MONIKERS @tfm_support@
 
 Name:       csapi-tizenfx
 Summary:    Assemblies of Tizen .NET
@@ -81,6 +82,14 @@ AutoReqProv: no
 %description tools
 Tools for TizenFX
 
+%package dummy
+Summary:   not used package
+Group:     Development/Libraries
+AutoReqProv: no
+
+%description dummy
+not used package
+
 %package full
 Summary:   All Tizen .NET assemblies
 Group:     Development/Libraries
@@ -201,6 +210,7 @@ install -p -m 644 tools/bin/* %{buildroot}%{DOTNET_TOOLS_PATH}
 /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
 
 %files
 %license LICENSE
@@ -213,12 +223,15 @@ install -p -m 644 tools/bin/* %{buildroot}%{DOTNET_TOOLS_PATH}
 %manifest %{name}.manifest
 %{DOTNET_TOOLS_PATH}/*
 
+%files dummy
+
 %files full
 %manifest %{name}.manifest
-%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
-%attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
-%attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
-%attr(644,root,root) %{DOTNET_PRELOAD_PATH}/*
+%defattr(644,root,root,755)
+%{DOTNET_ASSEMBLY_PATH}/*.dll
+%{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll
+%{DOTNET_ASSEMBLY_RES_PATH}/*
+%{DOTNET_PRELOAD_PATH}/*
 
 %files debug
 %manifest %{name}.manifest