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