From a27c16c6910d5e2065193e2a3280c3b425d2fefa Mon Sep 17 00:00:00 2001 From: Wonyoung Choi Date: Tue, 8 Jan 2019 18:56:47 +0900 Subject: [PATCH] [Tizen] Fix rpm spec file --- packaging/opentk.spec | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/packaging/opentk.spec b/packaging/opentk.spec index 260c31c..ceee882 100644 --- a/packaging/opentk.spec +++ b/packaging/opentk.spec @@ -50,36 +50,22 @@ 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_DRAFT_PATH} +mkdir -p %{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} +install -p -m 644 artifacts/bin/OpenTK.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} +install -p -m 644 artifacts/bin/OpenTK.pdb %{buildroot}%{DOTNET_ASSEMBLY_PATH} -mkdir -p %{buildroot}/nuget/draft -install -p -m 644 artifacts/OpenTK.*.nupkg %{buildroot}/nuget/draft - - -%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 - -%post nuget -rm -f /nuget/OpenTK.*.nupkg -cp -a /nuget/draft/OpenTK.*.nupkg /nuget/ +mkdir -p %{buildroot}/nuget +install -p -m 644 artifacts/OpenTK.*.nupkg %{buildroot}/nuget %files %license License.txt %manifest %{name}.manifest -%attr(644,root,root) %{DOTNET_ASSEMBLY_DRAFT_PATH}/*.dll +%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll %files nuget -%attr(644,root,root) /nuget/draft/*.nupkg +%attr(644,root,root) /nuget/*.nupkg %files debug -%attr(644,root,root) %{DOTNET_ASSEMBLY_DRAFT_PATH}/*.pdb +%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb -- 2.7.4