%define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res
%define DOTNET_NUGET_SOURCE /nuget
-# If tizenfx_use_prebuilt is 1, use prebuilt binaries instead of building source at gbs build.
-# Default value is 1, if want to build source at gbs build, set tizenfx_use_prebuilt to 0.
-%define _tizenfx_use_prebuilt %{?tizenfx_use_prebuilt:%{tizenfx_use_prebuilt}}%{!?tizenfx_use_prebuilt:1}
+%define DOTNET_TIZEN_API_VERSION 4
+
%define _tizenfx_bin_path Artifacts
Name: csapi-tizenfx
Summary: Assemblies of Tizen .NET
-Version: 4.0.0.169
+Version: 4.0.0.253
Release: 1
Group: Development/Libraries
License: Apache-2.0
ExcludeArch: aarch64
AutoReqProv: no
+Requires(post): vconf
+
+
%description
%{summary}
%package full
Summary: All Tizen .NET assemblies
Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
AutoReqProv: no
%description full
%package common
Summary: Tizen .NET assemblies for Common profile
Group: Development/Libraries
-Requires: csapi-tizenfx-dummy
+Requires: %{name} = %{version}-%{release}
+Requires: csapi-tizenfx-dummy = %{version}-%{release}
AutoReqProv: no
%description common
%package mobile
Summary: Tizen .NET assemblies for Mobile profile
Group: Development/Libraries
-Requires: csapi-tizenfx-dummy
+Requires: %{name} = %{version}-%{release}
+Requires: csapi-tizenfx-dummy = %{version}-%{release}
AutoReqProv: no
%description mobile
%package mobile-emul
Summary: Tizen .NET assemblies for Emulator of Mobile profile
Group: Development/Libraries
-Requires: csapi-tizenfx-dummy
+Requires: %{name} = %{version}-%{release}
+Requires: csapi-tizenfx-dummy = %{version}-%{release}
AutoReqProv: no
%description mobile-emul
%package tv
Summary: Tizen .NET assemblies for TV profile
Group: Development/Libraries
-Requires: csapi-tizenfx-dummy
+Requires: %{name} = %{version}-%{release}
+Requires: csapi-tizenfx-dummy = %{version}-%{release}
AutoReqProv: no
%description tv
%package ivi
Summary: Tizen .NET assemblies for IVI profile
Group: Development/Libraries
-Requires: csapi-tizenfx-dummy
+Requires: %{name} = %{version}-%{release}
+Requires: csapi-tizenfx-dummy = %{version}-%{release}
AutoReqProv: no
%description ivi
%package wearable
Summary: Tizen .NET assemblies for Wearable profile
Group: Development/Libraries
-Requires: csapi-tizenfx-dummy
+Requires: %{name} = %{version}-%{release}
+Requires: csapi-tizenfx-dummy = %{version}-%{release}
AutoReqProv: no
%description wearable
GetFileList ivi > ivi.filelist
GetFileList wearable > wearable.filelist
-%if ! %{_tizenfx_use_prebuilt}
- rm -fr %{_tizenfx_bin_path}/bin
- rm -f %{_tizenfx_bin_path}/*.nupkg
- export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
- ./build.sh --full
- ./build.sh --dummy
- ./build.sh --pack
-%endif
+rm -fr %{_tizenfx_bin_path}
+export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
+./build.sh --full
+./build.sh --dummy
+./build.sh --pack 4.0.0-preview1-00253
%install
mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH}
install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE}
+%post
+vconftool set -t int "db/dotnet/tizen_api_version" %{DOTNET_TIZEN_API_VERSION} -f
+
+
+%files
+%license LICENSE
+
%files nuget
%{DOTNET_NUGET_SOURCE}/*.nupkg
%files full
%manifest %{name}.manifest
-%license LICENSE
%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
%attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/*
%files common -f common.filelist
%manifest %{name}.manifest
-%license LICENSE
%files mobile -f mobile.filelist
%manifest %{name}.manifest
-%license LICENSE
%files mobile-emul -f mobile-emul.filelist
%manifest %{name}.manifest
-%license LICENSE
%files tv -f tv.filelist
%manifest %{name}.manifest
-%license LICENSE
%files ivi -f ivi.filelist
%manifest %{name}.manifest
-%license LICENSE
%files wearable -f wearable.filelist
%manifest %{name}.manifest
-%license LICENSE