From: Wonyoung Choi Date: Wed, 19 Sep 2018 07:04:54 +0000 (+0900) Subject: [Tizen] Fix spec file to override OpenTK.dll X-Git-Tag: submit/tizen/20180919.071116^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a77917f2f7cfa518f66052c4bf95d404ebb25937;p=platform%2Fcore%2Fcsapi%2Fopentk.git [Tizen] Fix spec file to override OpenTK.dll --- diff --git a/packaging/opentk.spec b/packaging/opentk.spec index 4cbda004..2473d5fe 100644 --- a/packaging/opentk.spec +++ b/packaging/opentk.spec @@ -50,23 +50,33 @@ cp %{SOURCE1} . %install %define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework +%define DOTNET_ASSEMBLY_DRAFT_PATH /usr/share/dotnet.tizen/framework/draft -mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH} +mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DRAFT_PATH} -install -p -m 644 artifacts/bin/OpenTK.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} -install -p -m 644 artifacts/bin/OpenTK.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH} +install -p -m 644 artifacts/bin/OpenTK.dll %{buildroot}%{DOTNET_ASSEMBLY_DRAFT_PATH} +install -p -m 644 artifacts/bin/OpenTK.pdb %{buildroot}%{DOTNET_ASSEMBLY_DRAFT_PATH} mkdir -p %{buildroot}/nuget install -p -m 644 artifacts/OpenTK.*.nupkg %{buildroot}/nuget +%post +rm -f %{DOTNET_ASSEMBLY_PATH}/OpenTK.dll +cp -a %{DOTNET_ASSEMBLY_DRAFT_PATH}/OpenTK.dll %{DOTNET_ASSEMBLY_PATH}/OpenTK.dll + +%post debug +rm -f %{DOTNET_ASSEMBLY_PATH}/OpenTK.pdb +cp -a %{DOTNET_ASSEMBLY_DRAFT_PATH}/OpenTK.pdb %{DOTNET_ASSEMBLY_PATH}/OpenTK.pdb + + %files %license License.txt %manifest %{name}.manifest -%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll +%attr(644,root,root) %{DOTNET_ASSEMBLY_DRAFT_PATH}/*.dll %files nuget %attr(644,root,root) /nuget/*.nupkg %files debug -%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb +%attr(644,root,root) %{DOTNET_ASSEMBLY_DRAFT_PATH}/*.pdb