]>
Commit | Line | Data |
---|---|---|
1 | Summary: Userspace interface to kernel DRM services | |
2 | Summary(pl.UTF-8): Interfejs przestrzeni użytkownika do usług DRM jądra | |
3 | Name: libdrm | |
4 | Version: 2.4.84 | |
5 | Release: 1 | |
6 | License: MIT | |
7 | Group: Libraries | |
8 | Source0: https://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 35b9544bc2ad864acd1abaa1a2b99092 | |
10 | URL: https://dri.freedesktop.org/ | |
11 | BuildRequires: autoconf >= 2.63 | |
12 | BuildRequires: automake >= 1:1.10 | |
13 | BuildRequires: docbook-dtd42-xml | |
14 | BuildRequires: docbook-style-xsl | |
15 | BuildRequires: libpthread-stubs >= 0.4 | |
16 | BuildRequires: libtool >= 2:2.2 | |
17 | BuildRequires: libxslt-progs | |
18 | BuildRequires: pkgconfig | |
19 | BuildRequires: sed >= 4.0 | |
20 | BuildRequires: valgrind | |
21 | %ifarch %{ix86} %{x8664} x32 | |
22 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10 | |
23 | %endif | |
24 | BuildRequires: xorg-util-util-macros >= 1.12 | |
25 | Requires: xorg-lib-libpciaccess >= 0.10 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Userspace interface to kernel DRM services. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Interfejs przestrzeni użytkownika do usług DRM jądra. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for libdrm library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdrm | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | ||
40 | %description devel | |
41 | Header files for libdrm library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki libdrm. | |
45 | ||
46 | %package static | |
47 | Summary: Static libdrm library | |
48 | Summary(pl.UTF-8): Statyczna biblioteka libdrm | |
49 | Group: Development/Libraries | |
50 | Requires: %{name}-devel = %{version}-%{release} | |
51 | ||
52 | %description static | |
53 | Static libdrm library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Statyczna biblioteka libdrm. | |
57 | ||
58 | %prep | |
59 | %setup -q | |
60 | ||
61 | %build | |
62 | %{__libtoolize} | |
63 | %{__aclocal} | |
64 | %{__autoconf} | |
65 | %{__autoheader} | |
66 | %{__automake} | |
67 | %configure \ | |
68 | --disable-silent-rules \ | |
69 | --enable-static \ | |
70 | %ifarch %{arm} aarch64 | |
71 | --enable-etnaviv-experimental-api \ | |
72 | --enable-exynos-experimental-api \ | |
73 | --enable-freedreno-experimental-api \ | |
74 | --enable-omap-experimental-api \ | |
75 | --enable-tegra-experimental-api | |
76 | %endif | |
77 | ||
78 | %{__make} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
86 | # obsoleted by pkg-config | |
87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_libdir}/libdrm.so.*.*.* | |
98 | %attr(755,root,root) %ghost %{_libdir}/libdrm.so.2 | |
99 | %attr(755,root,root) %{_libdir}/libdrm_amdgpu.so.*.*.* | |
100 | %attr(755,root,root) %ghost %{_libdir}/libdrm_amdgpu.so.1 | |
101 | %ifarch %{ix86} %{x8664} x32 | |
102 | %attr(755,root,root) %{_libdir}/libdrm_intel.so.*.*.* | |
103 | %attr(755,root,root) %ghost %{_libdir}/libdrm_intel.so.1 | |
104 | %endif | |
105 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so.*.*.* | |
106 | %attr(755,root,root) %ghost %{_libdir}/libdrm_nouveau.so.2 | |
107 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so.*.*.* | |
108 | %attr(755,root,root) %ghost %{_libdir}/libdrm_radeon.so.1 | |
109 | %ifarch %{arm} aarch64 | |
110 | %attr(755,root,root) %{_libdir}/libdrm_etnaviv.so.*.*.* | |
111 | %attr(755,root,root) %ghost %{_libdir}/libdrm_etnaviv.so.1 | |
112 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so.*.*.* | |
113 | %attr(755,root,root) %ghost %{_libdir}/libdrm_exynos.so.1 | |
114 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so.*.*.* | |
115 | %attr(755,root,root) %ghost %{_libdir}/libdrm_freedreno.so.1 | |
116 | %attr(755,root,root) %{_libdir}/libdrm_omap.so.*.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/libdrm_omap.so.1 | |
118 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so.*.*.* | |
119 | %attr(755,root,root) %ghost %{_libdir}/libdrm_tegra.so.0 | |
120 | %endif | |
121 | %attr(755,root,root) %{_libdir}/libkms.so.*.*.* | |
122 | %attr(755,root,root) %ghost %{_libdir}/libkms.so.1 | |
123 | %{_datadir}/libdrm | |
124 | ||
125 | %files devel | |
126 | %defattr(644,root,root,755) | |
127 | %attr(755,root,root) %{_libdir}/libdrm.so | |
128 | %attr(755,root,root) %{_libdir}/libdrm_amdgpu.so | |
129 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so | |
130 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so | |
131 | %attr(755,root,root) %{_libdir}/libkms.so | |
132 | %{_includedir}/libdrm | |
133 | %{_includedir}/libkms | |
134 | %{_includedir}/libsync.h | |
135 | %{_includedir}/xf86drm.h | |
136 | %{_includedir}/xf86drmMode.h | |
137 | %{_pkgconfigdir}/libdrm.pc | |
138 | %{_pkgconfigdir}/libdrm_amdgpu.pc | |
139 | %{_pkgconfigdir}/libdrm_nouveau.pc | |
140 | %{_pkgconfigdir}/libdrm_radeon.pc | |
141 | %{_pkgconfigdir}/libkms.pc | |
142 | %ifarch %{ix86} %{x8664} x32 | |
143 | %attr(755,root,root) %{_libdir}/libdrm_intel.so | |
144 | %{_pkgconfigdir}/libdrm_intel.pc | |
145 | %endif | |
146 | %ifarch %{arm} aarch64 | |
147 | %attr(755,root,root) %{_libdir}/libdrm_etnaviv.so | |
148 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so | |
149 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so | |
150 | %attr(755,root,root) %{_libdir}/libdrm_omap.so | |
151 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so | |
152 | %{_includedir}/exynos | |
153 | %{_includedir}/freedreno | |
154 | %{_includedir}/omap | |
155 | # already included above | |
156 | #%{_includedir}/libdrm/etnaviv_drmif.h | |
157 | #%{_includedir}/libdrm/tegra.h | |
158 | #%{_includedir}/libdrm/vc4_packet.h | |
159 | #%{_includedir}/libdrm/vc4_qpu_defines.h | |
160 | %{_pkgconfigdir}/libdrm_etnaviv.pc | |
161 | %{_pkgconfigdir}/libdrm_exynos.pc | |
162 | %{_pkgconfigdir}/libdrm_freedreno.pc | |
163 | %{_pkgconfigdir}/libdrm_omap.pc | |
164 | %{_pkgconfigdir}/libdrm_tegra.pc | |
165 | %{_pkgconfigdir}/libdrm_vc4.pc | |
166 | %endif | |
167 | %{_mandir}/man3/drm*.3* | |
168 | %{_mandir}/man7/drm*.7* | |
169 | ||
170 | %files static | |
171 | %defattr(644,root,root,755) | |
172 | %{_libdir}/libdrm.a | |
173 | %{_libdir}/libdrm_amdgpu.a | |
174 | %ifarch %{ix86} %{x8664} x32 | |
175 | %{_libdir}/libdrm_intel.a | |
176 | %endif | |
177 | %{_libdir}/libdrm_nouveau.a | |
178 | %{_libdir}/libdrm_radeon.a | |
179 | %ifarch %{arm} aarch64 | |
180 | %{_libdir}/libdrm_etnaviv.a | |
181 | %{_libdir}/libdrm_exynos.a | |
182 | %{_libdir}/libdrm_freedreno.a | |
183 | %{_libdir}/libdrm_omap.a | |
184 | %{_libdir}/libdrm_tegra.a | |
185 | %endif | |
186 | %{_libdir}/libkms.a |