diff options
author | WonYoung Choi <wy80.choi@samsung.com> | 2016-12-19 19:33:33 +0900 |
---|---|---|
committer | WonYoung Choi <wy80.choi@samsung.com> | 2016-12-19 21:07:03 +0900 |
commit | fb2e4101239d4fa9d69039e562205b4c4842cfb5 (patch) | |
tree | 1035270d7c842dc8170699b08e59cf66042770ad | |
parent | ca339f6ccc6263737d5f4651f8457f9475c9c39d (diff) | |
download | widget-control-fb2e4101239d4fa9d69039e562205b4c4842cfb5.tar.gz widget-control-fb2e4101239d4fa9d69039e562205b4c4842cfb5.tar.bz2 widget-control-fb2e4101239d4fa9d69039e562205b4c4842cfb5.zip |
Apply dotnet RPM macrossubmit/tizen_tv/20161229.044941submit/tizen_mobile/20161222.053906submit/tizen_common/20161229.045021accepted/tizen/tv/20161229.113309accepted/tizen/mobile/20161223.100615accepted/tizen/common/20170111.133652
Change-Id: I940b092db35fe35a3ce2d32324f1ef39a9d9f701
Signed-off-by: WonYoung Choi <wy80.choi@samsung.com>
-rwxr-xr-x | packaging/csapi-widget-control.spec | 53 |
1 files changed, 10 insertions, 43 deletions
diff --git a/packaging/csapi-widget-control.spec b/packaging/csapi-widget-control.spec index af668e1..da018fd 100755 --- a/packaging/csapi-widget-control.spec +++ b/packaging/csapi-widget-control.spec @@ -1,11 +1,3 @@ -%{!?dotnet_assembly_path: %define dotnet_assembly_path /opt/usr/share/dotnet.tizen/framework} - -%if 0%{?tizen_build_devel_mode} -%define BUILDCONF Debug -%else -%define BUILDCONF Release -%endif - Name: csapi-widget-control Summary: Tizen widget control API for C# Version: 1.0.2 @@ -17,62 +9,37 @@ Source0: %{name}-%{version}.tar.gz Source1: %{name}.manifest AutoReqProv: no -ExcludeArch: %{ix86} aarch64 - -BuildRequires: mono-compiler -BuildRequires: mono-devel +ExcludeArch: aarch64 %ix86 BuildRequires: dotnet-build-tools -# C# API Requries +# C# API Requires BuildRequires: csapi-tizen-nuget BuildRequires: csapi-application-nuget +%define Assemblies Tizen.Applications.WidgetControl %description -Tizen widget control API for C# +%{summary} + +%dotnet_import_sub_packages %prep %setup -q cp %{SOURCE1} . -%define Assemblies Tizen.Applications.WidgetControl - %build for ASM in %{Assemblies}; do -# NuGet Restore -find $ASM/*.project.json -exec nuget restore {} \; -# Build -find $ASM/*.csproj -exec xbuild {} /p:Configuration=%{BUILDCONF} \; -# NuGet Pack -nuget pack $ASM/$ASM.nuspec -Version %{version} -Properties Configuration=%{BUILDCONF} +%dotnet_build $ASM +%dotnet_pack $ASM/$ASM.nuspec %{version} done %install -# Runtime Binary -mkdir -p %{buildroot}%{dotnet_assembly_path} for ASM in %{Assemblies}; do -%if 0%{?_with_corefx} - install -p -m 644 $ASM/bin/%{BUILDCONF}/$ASM.dll %{buildroot}%{dotnet_assembly_path} -%else - install -p -m 644 $ASM/bin/%{BUILDCONF}/Net45/$ASM.dll %{buildroot}%{dotnet_assembly_path} -%endif +%dotnet_install $ASM done -# NuGet -mkdir -p %{buildroot}/nuget -install -p -m 644 *.nupkg %{buildroot}/nuget %files %manifest %{name}.manifest %license LICENSE -%attr(644,root,root) %{dotnet_assembly_path}/*.dll - -%package nuget -Summary: NuGet package for %{name} -Group: Development/Libraries - -%description nuget -NuGet package for %{name} - -%files nuget -/nuget/*.nupkg +%attr(644,root,root) %{dotnet_assembly_files}
\ No newline at end of file |