X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fcsapi-tizenfx.spec;h=26cc9690fc9d1162230d2d23d22a8cc06b2c4539;hb=53e31f81c86e4d6839499160c006c099abfe8a63;hp=0f940195bec81282959aaab2e8e3fde7253fecef;hpb=b104b823c1d2c33b4ea7297227a414a7d47c223e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/packaging/csapi-tizenfx.spec b/packaging/csapi-tizenfx.spec index 0f94019..26cc969 100644 --- a/packaging/csapi-tizenfx.spec +++ b/packaging/csapi-tizenfx.spec @@ -1,13 +1,14 @@ # Auto-generated from csapi-tizenfx.spec.in by makespec.sh %define TIZEN_NET_API_VERSION 8 -%define TIZEN_NET_RPM_VERSION 8.0.0.15177+nui550 -%define TIZEN_NET_NUGET_VERSION 8.0.0.15177 +%define TIZEN_NET_RPM_VERSION 8.0.0.15288+nui550 +%define TIZEN_NET_NUGET_VERSION 8.0.0.15288 %define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework %define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res %define DOTNET_TOOLS_PATH /usr/share/dotnet.tizen/tools +%define DOTNET_PRELOAD_PATH /usr/share/dotnet.tizen/preload %define DOTNET_NUGET_SOURCE /nuget %define TIZEN_NET_RUNTIME_IDENTIFIERS 4.0.0:5.0.0:5.5.0:6.0.0 @@ -29,6 +30,40 @@ AutoReqProv: no BuildRequires: dotnet-build-tools Requires(post): /usr/bin/vconftool +# BuildRequires for StructValidator +BuildRequires: coregl +BuildRequires: pkgconfig(elementary) +BuildRequires: pkgconfig(efl-extension) +BuildRequires: pkgconfig(capi-media-camera) +BuildRequires: pkgconfig(rua) +BuildRequires: pkgconfig(component-based-core-base) +BuildRequires: pkgconfig(notification) +BuildRequires: pkgconfig(capi-appfw-service-application) +BuildRequires: pkgconfig(capi-appfw-application) +BuildRequires: pkgconfig(capi-appfw-widget-application) +%if "%{profile}" != "tv" +BuildRequires: pkgconfig(capi-appfw-watch-application) +%endif +BuildRequires: pkgconfig(data-control) +BuildRequires: pkgconfig(capi-location-manager) +BuildRequires: pkgconfig(capi-media-vision) +BuildRequires: pkgconfig(capi-network-bluetooth) +BuildRequires: pkgconfig(capi-network-wifi-direct) +BuildRequires: pkgconfig(key-manager) +%if "%{profile}" == "tv" +BuildRequires: pkgconfig(trustzone-nwd) +%else +BuildRequires: pkgconfig(tef-libteec) +%endif +BuildRequires: pkgconfig(capi-system-sensor) +BuildRequires: pkgconfig(capi-system-runtime-info) +BuildRequires: pkgconfig(capi-telephony) +BuildRequires: pkgconfig(capi-ui-inputmethod) +BuildRequires: pkgconfig(stt-engine) +BuildRequires: pkgconfig(tts-engine) +BuildRequires: pkgconfig(chromium-efl) + + %description %{summary} @@ -131,17 +166,37 @@ rm -fr %{_tizenfx_bin_path} export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true %define build_cmd ./tools/scripts/retry.sh ./tools/scripts/timeout.sh -t 600 ./build.sh +%if %{defined profile} +%{build_cmd} --full /p:BuildProfile=%{profile} +%else %{build_cmd} --full +%endif %{build_cmd} --pack %{TIZEN_NET_NUGET_VERSION} +dotnet validate-struct %{_tizenfx_bin_path}/bin/public || echo " + ####################################################### + ##################### W A R N I N G ################### + ####################################################### + # The sturct size mismatches MUST BE FIXED. # + # It will make building errors later # + ####################################################### +" + + +# Generate filelist for rpm packaging GetFileList() { PROFILE=$1 - cat packaging/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#" - for f in $(cat packaging/PlatformFileList.txt | grep -v -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1); do + cat packaging/PlatformFileList.txt | grep -v "\.preload" | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#" + for f in $(cat packaging/PlatformFileList.txt | grep -v -E "#$PROFILE[[:space:]]|#$PROFILE$|\.preload" | cut -d# -f1); do if [ -f %{_tizenfx_bin_path}/bin/dummy/$f ]; then echo "%{DOTNET_ASSEMBLY_PATH}/ref/$f" fi done + for f in $(cat packaging/PlatformFileList.txt | grep "\.preload" | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1); do + if [ -f packaging/preload/$f ]; then + echo "%{DOTNET_PRELOAD_PATH}/$f" + fi + done } GetFileList common > common.filelist @@ -156,6 +211,7 @@ mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE} mkdir -p %{buildroot}%{DOTNET_TOOLS_PATH} +mkdir -p %{buildroot}%{DOTNET_PRELOAD_PATH} # Install Runtime Assemblies install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} @@ -181,6 +237,9 @@ install -p -m 644 packaging/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE} # Install Tools install -p -m 644 tools/bin/* %{buildroot}%{DOTNET_TOOLS_PATH} +# Install Preload +install -p -m 644 packaging/preload/*.preload %{buildroot}%{DOTNET_PRELOAD_PATH} + %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