blob: 3a76a49463576d764fc8d06870726bd2c253004d (
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
71
72
73
74
75
76
77
78
79
80
|
#sbs-git:sdk/simulator-opengl
Name: simulator-opengl
Summary: opengl-es acceleration module for emulator
Version: 0.2.17
Release: 1
License: MIT
URL: http://www.khronos.org
Source0: %{name}-%{version}.tar.gz
Source1001: packaging/simulator-opengl.manifest
ExclusiveArch: %{ix86}
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xext)
Provides : libGL.so
%description
Opengl-es acceleration module for emulator.
This package contains 4 shared libraries, libGL, libEGL, libGLESv1, libGLESv2.
%package devel
Summary: opengl-es acceleration module for emulator (devel)
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig(x11)
%description devel
Opengl-es acceleration module for emulator. (devel)
%prep
%setup -q
%build
cp %{SOURCE1001} .
make
%install
mkdir -p %{buildroot}/usr/lib
cp -r lib/* %{buildroot}/usr/lib/
mkdir -p %{buildroot}/usr/include
cp -r include/EGL %{buildroot}/usr/include/
cp -r include/GL %{buildroot}/usr/include/
cp -r include/GLES %{buildroot}/usr/include/
cp -r include/GLES2 %{buildroot}/usr/include/
cp -r include/KHR %{buildroot}/usr/include/
mkdir -p %{buildroot}/etc/emulator
cp systemd/virtgl.sh %{buildroot}/etc/emulator/
mkdir -p %{buildroot}/usr/lib/systemd/system
cp systemd/emul-opengl-mode.service %{buildroot}/usr/lib/systemd/system/
cp systemd/emul-opengl-yagl.service %{buildroot}/usr/lib/systemd/system/
mkdir -p %{buildroot}/usr/lib/systemd/system/emulator_preinit.target.wants
ln -s -f systemd/emul-opengl-mode.service %{buildroot}/usr/lib/systemd/system/emulator_preinit.target.wants/
ln -s -f systemd/emul-opengl-yagl.service %{buildroot}/usr/lib/systemd/system/emulator_preinit.target.wants/
%files
%manifest simulator-opengl.manifest
%defattr(-,root,root,-)
/usr/lib/libGL*
/usr/lib/libEGL*
/usr/lib/libGLES*
/usr/lib/host-gl/*
/etc/emulator/virtgl.sh
/usr/lib/systemd/system/emul-opengl-mode.service
/usr/lib/systemd/system/emul-opengl-yagl.service
/usr/lib/systemd/system/emulator_preinit.target.wants/emul-opengl-mode.service
/usr/lib/systemd/system/emulator_preinit.target.wants/emul-opengl-yagl.service
%files devel
%manifest simulator-opengl.manifest
%defattr(-,root,root,-)
/usr/include/EGL
/usr/include/GL
/usr/include/GLES
/usr/include/GLES2
/usr/include/KHR
/usr/lib/pkgconfig/*
|