diff options
author | WonYoung Choi <wy80.choi@samsung.com> | 2016-12-19 19:12:55 +0900 |
---|---|---|
committer | WonYoung Choi <wy80.choi@samsung.com> | 2016-12-19 21:02:07 +0900 |
commit | c5daccb1c8f60f32a1060fb750db2d4ecfb8e76e (patch) | |
tree | 96589f5450c952b0894a6ecd7c6c4995123919ec | |
parent | 0da53ab65857382103116f0bb237ac8633b88970 (diff) | |
download | push-c5daccb1c8f60f32a1060fb750db2d4ecfb8e76e.tar.gz push-c5daccb1c8f60f32a1060fb750db2d4ecfb8e76e.tar.bz2 push-c5daccb1c8f60f32a1060fb750db2d4ecfb8e76e.zip |
Apply dotnet RPM macrossubmit/tizen_tv/20161229.044941submit/tizen_common/20170111.191659submit/tizen_common/20161229.045021submit/tizen/20161220.010222accepted/tizen/tv/20161229.113307accepted/tizen/common/20170111.194334accepted/tizen/common/20170111.133650
Change-Id: I64e27d76f88373e467539261019fdee1cc0b5ae7
Signed-off-by: WonYoung Choi <wy80.choi@samsung.com>
-rw-r--r-- | packaging/csapi-push.spec | 54 |
1 files changed, 11 insertions, 43 deletions
diff --git a/packaging/csapi-push.spec b/packaging/csapi-push.spec index 9476379..43a5f34 100644 --- a/packaging/csapi-push.spec +++ b/packaging/csapi-push.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-push Summary: Tizen Push API for C# Version: 1.0.2 @@ -17,60 +9,36 @@ 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 +%define Assemblies Tizen.Messaging.Push + %description -Tizen Push API for C# +%{summary} + +%dotnet_import_sub_packages %prep %setup -q cp %{SOURCE1} . -%define Assemblies Tizen.Messaging.Push - %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 |