From: Wonyoung Choi Date: Thu, 8 Feb 2018 08:02:35 +0000 (+0900) Subject: Delete spec generating script X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc7f50da8d318e39ef1ebcf8fdc334f0811a617e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Delete spec generating script RPM version and NUGET version should be modified manually Change-Id: I649c8fdc171baee7a5b4d481ed2db31409912a4e --- diff --git a/packaging/csapi-tizenfx.spec b/packaging/csapi-tizenfx.spec index 6fd612ede..c4bac3119 100644 --- a/packaging/csapi-tizenfx.spec +++ b/packaging/csapi-tizenfx.spec @@ -1,11 +1,18 @@ -# Auto-generated from csapi-tizenfx.spec.in by makespec.sh + +# !!!! IMPORTANT !!!! +# Increase below _RPM_VERSION and _NUGET_VERSION when public/internal APIs are added or changed. + +################################################################################################ %define TIZEN_NET_API_VERSION 4 -%define TIZEN_NET_RPM_VERSION 4.0.1.72+nui84 -%define TIZEN_NET_NUGET_VERSION 4.0.1-preview1-00072 -%define TIZEN_NET_INTERNAL_NUGET_VERSION 4.0.1.72 -%define NATIVE_DALI_VERSION 1.2.84 -%define CHECK_NATIVE_DEPS 0 +%define TIZEN_NET_RPM_VERSION 4.0.1.73+nui85 +%define TIZEN_NET_NUGET_VERSION 4.0.1-preview1-00073 +%define TIZEN_NET_INTERNAL_NUGET_VERSION 4.0.1.73 +%define NATIVE_DALI_VERSION 1.2.85 + +################################################################################################ + +%define CHECK_NATIVE_DEPS 1 %define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework %define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref diff --git a/packaging/csapi-tizenfx.spec.in b/packaging/csapi-tizenfx.spec.in deleted file mode 100644 index c35e778cb..000000000 --- a/packaging/csapi-tizenfx.spec.in +++ /dev/null @@ -1,220 +0,0 @@ - -%define TIZEN_NET_API_VERSION @api_version@ -%define TIZEN_NET_RPM_VERSION @rpm_version@ -%define TIZEN_NET_NUGET_VERSION @nuget_version@ -%define TIZEN_NET_INTERNAL_NUGET_VERSION @internal_nuget_version@ -%define NATIVE_DALI_VERSION @dali_version@ -%define CHECK_NATIVE_DEPS @check_native_deps@ - -%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_NUGET_SOURCE /nuget - -Name: csapi-tizenfx -Summary: Assemblies of Tizen .NET -Version: %{TIZEN_NET_RPM_VERSION} -Release: 1 -Group: Development/Libraries -License: Apache-2.0 -URL: https://www.tizen.org -Source0: %{name}-%{version}.tar.gz -Source1: %{name}.manifest - -BuildArch: noarch -ExcludeArch: aarch64 -AutoReqProv: no - -BuildRequires: dotnet-build-tools -Requires(post): /usr/bin/vconftool - -%if 0%{CHECK_NATIVE_DEPS} -BuildRequires: dali = %{NATIVE_DALI_VERSION} -%endif - -%description -%{summary} - -%package nuget -Summary: NuGet package for %{name} -Group: Development/Libraries -AutoReqProv: no - -%description nuget -NuGet package for %{name} - -%package dummy -Summary: Dummy assemblies of Tizen .NET -Group: Development/Libraries -AutoReqProv: no - -%description dummy -Dummy assemblies of Tizen .NET - -%package full -Summary: All Tizen .NET assemblies -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -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: %{name} = %{version}-%{release} -Requires: csapi-tizenfx-dummy = %{version}-%{release} -AutoReqProv: no - -%description common -Tizen .NET assemblies for Common profile - -%package mobile -Summary: Tizen .NET assemblies for Mobile profile -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: csapi-tizenfx-dummy = %{version}-%{release} -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: %{name} = %{version}-%{release} -Requires: csapi-tizenfx-dummy = %{version}-%{release} -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 -Requires: %{name} = %{version}-%{release} -Requires: csapi-tizenfx-dummy = %{version}-%{release} -AutoReqProv: no - -%description tv -Tizen .NET assemblies for TV profile - -%package ivi -Summary: Tizen .NET assemblies for IVI profile -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: csapi-tizenfx-dummy = %{version}-%{release} -AutoReqProv: no - -%description ivi -Tizen .NET assemblies for IVI profile - -%package wearable -Summary: Tizen .NET assemblies for Wearable profile -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: csapi-tizenfx-dummy = %{version}-%{release} -AutoReqProv: no - -%description wearable -Tizen .NET assemblies for Wearable profile - -%prep -%setup -q -cp %{SOURCE1} . - -%build - -%define _tizenfx_bin_path Artifacts - -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 %{TIZEN_NET_NUGET_VERSION} %{TIZEN_NET_INTERNAL_NUGET_VERSION} - -%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 Runtime Assemblies -install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} -install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} - -# Install Debug Symbols -install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH} -install -p -m 644 %{_tizenfx_bin_path}/bin/internal/*.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH} - -# Install Resource files -[ -d %{_tizenfx_bin_path}/bin/public/res ] \ - && install -p -m 644 %{_tizenfx_bin_path}/bin/public/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} -[ -d %{_tizenfx_bin_path}/bin/internal/res ] \ - && install -p -m 644 %{_tizenfx_bin_path}/bin/internal/res/* %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} - -# Install Dummy Assemblies -install -p -m 644 %{_tizenfx_bin_path}/bin/dummy/*.dll %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} - -# Install NuGet Packages -install -p -m 644 %{_tizenfx_bin_path}/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE} - -%post -/usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f - - -%files -%license LICENSE - -%files nuget -%{DOTNET_NUGET_SOURCE}/*.nupkg - -%files dummy -%attr(644,root,root) %{DOTNET_ASSEMBLY_DUMMY_PATH}/*.dll - -%files full -%manifest %{name}.manifest -%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll -%attr(644,root,root) %{DOTNET_ASSEMBLY_RES_PATH}/* - -%files debug -%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb - -%files common -f common.filelist -%manifest %{name}.manifest - -%files mobile -f mobile.filelist -%manifest %{name}.manifest - -%files mobile-emul -f mobile-emul.filelist -%manifest %{name}.manifest - -%files tv -f tv.filelist -%manifest %{name}.manifest - -%files ivi -f ivi.filelist -%manifest %{name}.manifest - -%files wearable -f wearable.filelist -%manifest %{name}.manifest diff --git a/packaging/makespec.sh b/packaging/makespec.sh deleted file mode 100755 index b183d7cd9..000000000 --- a/packaging/makespec.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -SCRIPT_FILE=$(readlink -f $0) -SCRIPT_DIR=$(dirname $SCRIPT_FILE) - -VERSION_FILE=$SCRIPT_DIR/version.txt -RPMSPEC=$SCRIPT_DIR/csapi-tizenfx.spec -RPMSPEC_IN=$RPMSPEC.in - -CHECK_NATIVE_DEPS=1 - -source $VERSION_FILE - -while getopts ":r:n:i:c:" opt; do - case $opt in - r) RPM_VERSION=$OPTARG ;; - n) NUGET_VERSION=$OPTARG ;; - i) INTERNAL_NUGET_VERSION=$OPTARG ;; - c) CHECK_NATIVE_DEPS=$OPTARG ;; - :) echo "Option -$OPTARG requires an argument."; exit 1 ;; - esac -done - -RPM_VERSION=$RPM_VERSION+$RPM_VERSION_SUFFIX - -# Update RPM Spec -echo "# Auto-generated from $(basename $RPMSPEC_IN) by makespec.sh" | cat - $RPMSPEC_IN > $RPMSPEC -sed -i -e "s/@api_version@/$API_VERSION/g" $RPMSPEC -sed -i -e "s/@rpm_version@/$RPM_VERSION/g" $RPMSPEC -sed -i -e "s/@nuget_version@/$NUGET_VERSION/g" $RPMSPEC -sed -i -e "s/@internal_nuget_version@/$INTERNAL_NUGET_VERSION/g" $RPMSPEC -sed -i -e "s/@dali_version@/$DALI_VERSION/g" $RPMSPEC -sed -i -e "s/@check_native_deps@/$CHECK_NATIVE_DEPS/g" $RPMSPEC diff --git a/packaging/version.txt b/packaging/version.txt deleted file mode 100755 index 6c04e91dd..000000000 --- a/packaging/version.txt +++ /dev/null @@ -1,13 +0,0 @@ -# Tizen .NET API Level -API_VERSION=4 - -# Default Versions (will be replaced by CI) -RPM_VERSION=4.0.1.999 -NUGET_VERSION=4.0.1-preview1-99999 -INTERNAL_NUGET_VERSION=4.0.1.999 - -# RPM Version Suffix -RPM_VERSION_SUFFIX=nui85 - -# Native Dependencies -DALI_VERSION=1.2.85