summaryrefslogtreecommitdiff
path: root/packaging/opentk.spec
blob: dcc579363322f0b059408e3fa122974198107653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Name:       opentk
Summary:    C# binding for OpenGL, OpenGL ES
Version:    3.0.4
Release:    1
Group:      Development/Libraries
License:    MIT
URL:        https://github.com/opentk/opentk/
Source0:    %{name}-%{version}.tar.gz
Source1:    %{name}.manifest

BuildArch:   noarch
AutoReqProv: no

BuildRequires: dotnet-build-tools
BuildRequires: csapi-tizenfx-nuget

%description
The Open Toolkit library is a fast, low-level C# binding for OpenGL, OpenGL ES and OpenAL.
It runs on all major platforms and powers hundreds of apps, games and scientific research.

%package nuget
Summary:   NuGet package for %{name}
Group:     Development/Libraries
AutoReqProv: no

%description nuget
NuGet package for %{name}

%package debug
Summary:   All .pdb files of Tizen .NET
Group:     Development/Libraries
AutoReqProv: no

%description debug
All .pdb files of Tizen .NET


%prep
%setup -q
cp %{SOURCE1} .


%build
%{?asan:export ASAN_OPTIONS=use_sigaltstack=false:allow_user_segv_handler=true:handle_sigfpe=false:`cat /ASAN_OPTIONS`}

./build-tizen.sh


%install

%define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework

mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_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
install -p -m 644 artifacts/OpenTK.*.nupkg %{buildroot}/nuget

%files
%license License.txt
%manifest %{name}.manifest
%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll

%files nuget
%attr(644,root,root) /nuget/*.nupkg

%files debug
%attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.pdb