blob: a83366dedc6d81e3b8563ea18feb681dbe22431c (
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
Name: libdrm
Version: 2.4.42
Release: 4
License: MIT
Url: http://cgit.freedesktop.org/mesa/drm
Summary: Userspace interface to kernel DRM services
Group: Graphics/Libraries
Source0: %{name}-%{version}.tar.bz2
Source1001: libdrm.manifest
BuildRequires: kernel-headers
BuildRequires: pkgconfig(pciaccess)
BuildRequires: pkgconfig(pthread-stubs)
BuildRequires: pkgconfig(xorg-macros)
%description
Direct Rendering Manager headers and kernel modules.
%package devel
Summary: Userspace interface to kernel DRM services
Group: Development/Libraries
Requires: kernel-headers
Requires: libdrm
%ifnarch %{arm}
Requires: libdrm-intel
%endif
%if 0%{?enable_slp}
Requires: libdrm-slp
%endif
Requires: libkms
%description devel
Direct Rendering Manager headers and kernel modules.
Development related files.
%if 0%{?enable_slp}
%package slp
Summary: Userspace interface to slp-specific kernel DRM services
Group: Development/Libraries
%description slp
Userspace interface to slp-specific kernel DRM services.
%endif
%package -n libkms
Summary: Userspace interface to kernel DRM buffer management
Group: Development/Libraries
%description -n libkms
Userspace interface to kernel DRM buffer management
%package intel
Summary: Userspace interface to intel graphics kernel DRM buffer management
Group: Development/Libraries
%description intel
Userspace interface to intel graphics kernel DRM buffer management
%prep
%setup -q
%build
cp %{SOURCE1001} .
%reconfigure \
--enable-static=yes \
--enable-udev \
--enable-libkms \
--disable-nouveau-experimental-api \
--disable-radeon \
--disable-nouveau \
--enable-exynos-experimental-api
make %{?_smp_mflags}
%install
%make_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%if 0%{?enable_slp}
%post slp -p /sbin/ldconfig
%postun slp -p /sbin/ldconfig
%endif
%post -n libkms -p /sbin/ldconfig
%postun -n libkms -p /sbin/ldconfig
%post intel -p /sbin/ldconfig
%postun intel -p /sbin/ldconfig
%files
%manifest libdrm.manifest
%{_libdir}/libdrm.so.*
%{_libdir}/libdrm_exynos.so.*
%files devel
%manifest libdrm.manifest
%{_includedir}/*
%{_libdir}/libdrm.so
%if 0%{?enable_slp}
%{_libdir}/libdrm_slp.so
%endif
%ifarch i586 i686 %ix86 x86_64
%{_libdir}/libdrm_intel.so
%endif
%{_libdir}/libkms.so
%{_libdir}/libdrm_exynos.so
%{_libdir}/pkgconfig/*
%if 0%{?enable_slp}
%files slp
%manifest libdrm.manifest
%{_libdir}/libdrm_slp*.so.*
%endif
%files -n libkms
%manifest libdrm.manifest
%{_libdir}/libkms.so.*
%ifarch i586 i686 %ix86 x86_64
%files intel
%manifest libdrm.manifest
%{_libdir}/libdrm_intel.so.*
%endif
|