X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fcsapi-tizenfx.spec;h=3dde5a72ad2d935dd6b4e717e27e7cceab6171e0;hb=fc16884c591d4161bce1d0fdc979fc25706feb54;hp=d94af6f3fa42320a00991dbf40edb7dc530e9050;hpb=85821e5ca0b9203081506cf7719e59d7dc1be16a;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/packaging/csapi-tizenfx.spec b/packaging/csapi-tizenfx.spec index d94af6f..3dde5a7 100644 --- a/packaging/csapi-tizenfx.spec +++ b/packaging/csapi-tizenfx.spec @@ -3,14 +3,13 @@ %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.120 +Version: 4.0.0.301 Release: 1 Group: Development/Libraries License: Apache-2.0 @@ -24,6 +23,9 @@ BuildArch: noarch ExcludeArch: aarch64 AutoReqProv: no +Requires(post): vconf + + %description %{summary} @@ -46,6 +48,7 @@ Dummy assemblies of Tizen .NET %package full Summary: All Tizen .NET assemblies Group: Development/Libraries +Requires: %{name} = %{version}-%{release} AutoReqProv: no %description full @@ -62,7 +65,8 @@ All .pdb files of Tizen .NET %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 @@ -71,7 +75,8 @@ Tizen .NET assemblies for Common profile %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 @@ -80,7 +85,8 @@ Tizen .NET assemblies for Mobile profile %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 @@ -89,7 +95,8 @@ Tizen .NET assemblies for Emulator of Mobile profile %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 @@ -98,7 +105,8 @@ Tizen .NET assemblies for TV profile %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 @@ -107,7 +115,8 @@ Tizen .NET assemblies for IVI profile %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 @@ -131,13 +140,11 @@ GetFileList tv > tv.filelist 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 --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-00301 %install mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH} @@ -145,12 +152,21 @@ mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE} -install -p -m 644 %{_tizenfx_bin_path}/bin/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} -install -p -m 644 %{_tizenfx_bin_path}/bin/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH} -install -p -m 644 %{_tizenfx_bin_path}/bin/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} -install -p -m 644 %{_tizenfx_bin_path}/bin_dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} +install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} +install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH} +install -p -m 644 %{_tizenfx_bin_path}/bin/platform/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} +install -p -m 644 %{_tizenfx_bin_path}/bin/platform/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH} +install -p -m 644 %{_tizenfx_bin_path}/bin/platform/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_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 @@ -159,7 +175,6 @@ install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE %files full %manifest %{name}.manifest -%license LICENSE %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/* @@ -168,24 +183,18 @@ install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE %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