[Tizen] Fix spec file to override OpenTK.dll accepted/tizen/unified/20180919.142009 submit/tizen/20180919.071116
authorWonyoung Choi <wy80.choi@samsung.com>
Wed, 19 Sep 2018 07:04:54 +0000 (16:04 +0900)
committerWonyoung Choi <wy80.choi@samsung.com>
Wed, 19 Sep 2018 07:04:54 +0000 (16:04 +0900)
packaging/opentk.spec

index 4cbda004910fa2d13e4a215766b72f1d92ca55e9..2473d5fe7a37bdb85b973836ca78c67c43d5b18b 100644 (file)
@@ -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