X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fcsapi-tizenfx.spec;h=025edafb3775d6508a101dca7c3cbb9b3ed40416;hb=6393f848c8202f94d7f486d70a4e676c44739f6d;hp=222e1ec9ca4b6a8807d8f32dbb280fc686936800;hpb=57e5880344ef05210c691e3af19df5e388b42193;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/packaging/csapi-tizenfx.spec b/packaging/csapi-tizenfx.spec index 222e1ec..025edaf 100644 --- a/packaging/csapi-tizenfx.spec +++ b/packaging/csapi-tizenfx.spec @@ -3,9 +3,11 @@ %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res %define DOTNET_NUGET_SOURCE /nuget +%define _tizenfx_bin_path Artifacts + Name: csapi-tizenfx Summary: Assemblies of Tizen .NET -Version: 4.0.0.66 +Version: 4.0.0.224 Release: 1 Group: Development/Libraries License: Apache-2.0 @@ -13,7 +15,10 @@ URL: https://www.tizen.org Source0: %{name}-%{version}.tar.gz Source1: %{name}.manifest +BuildRequires: dotnet-build-tools + BuildArch: noarch +ExcludeArch: aarch64 AutoReqProv: no %description @@ -35,6 +40,49 @@ AutoReqProv: no %description dummy Dummy assemblies of Tizen .NET +%package full +Summary: All Tizen .NET assemblies +Group: Development/Libraries +AutoReqProv: no + +%description full +All Tizen .NET assemblies + +%package debug +Summary: All .pdb files of Tizen .NET +Group: Development/Libraries +AutoReqProv: no + +%description debug +All .pdb files of Tizen .NET + +%package common +Summary: Tizen .NET assemblies for Common profile +Group: Development/Libraries +Requires: csapi-tizenfx-dummy +AutoReqProv: no + +%description common +Tizen .NET assemblies for Common profile + +%package mobile +Summary: Tizen .NET assemblies for Mobile profile +Group: Development/Libraries +Requires: csapi-tizenfx-dummy +AutoReqProv: no + +%description mobile +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 +AutoReqProv: no + +%description mobile-emul +Tizen .NET assemblies for Emulator of Mobile profile + %package tv Summary: Tizen .NET assemblies for TV profile Group: Development/Libraries @@ -44,35 +92,97 @@ AutoReqProv: no %description tv Tizen .NET assemblies for TV profile +%package ivi +Summary: Tizen .NET assemblies for IVI profile +Group: Development/Libraries +Requires: csapi-tizenfx-dummy +AutoReqProv: no + +%description ivi +Tizen .NET assemblies for IVI profile + +%package wearable +Summary: Tizen .NET assemblies for Wearable profile +Group: Development/Libraries +Requires: csapi-tizenfx-dummy +AutoReqProv: no + +%description wearable +Tizen .NET assemblies for Wearable profile + %prep %setup -q cp %{SOURCE1} . %build +GetFileList() { + PROFILE=$1 + cat pkg/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#" +} + +GetFileList common > common.filelist +GetFileList mobile > mobile.filelist +GetFileList mobile-emul > mobile-emul.filelist +GetFileList tv > tv.filelist +GetFileList ivi > ivi.filelist +GetFileList wearable > wearable.filelist + +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-00224 + %install mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH} mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE} -install -p -m 644 binaries/frameworks/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} -install -p -m 644 binaries/frameworks/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} -install -p -m 644 binaries/frameworks_dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} -install -p -m 644 binaries/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE} +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} + +%files nuget +%{DOTNET_NUGET_SOURCE}/*.nupkg + +%files dummy +%attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll -%files +%files full %manifest %{name}.manifest %license LICENSE %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll %attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/* -%files nuget -%{DOTNET_NUGET_SOURCE}/*.nupkg +%files debug +%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb -%files dummy -%attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll +%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 tv -f csapi-tizenfx-tv.files +%files wearable -f wearable.filelist %manifest %{name}.manifest %license LICENSE