]>
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 |
0e106314 | 4 | Version: 2.4.68 |
1d42ce43 | 5 | Release: 1 |
ae5c0e3f JB |
6 | License: MIT |
7 | Group: Libraries | |
0e106314 JB |
8 | Source0: https://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: bcc96848d969cecf28223f668eeff354 | |
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 |
3b84a41e | 15 | BuildRequires: libpthread-stubs |
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 |
ff8ca3fa | 21 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10 |
0db70b09 | 22 | BuildRequires: xorg-util-util-macros >= 1.12 |
ff8ca3fa | 23 | Requires: xorg-lib-libpciaccess >= 0.10 |
ae5c0e3f JB |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Userspace interface to kernel DRM services. | |
28 | ||
1a90a525 JR |
29 | %description -l pl.UTF-8 |
30 | Interfejs przestrzeni użytkownika do usług DRM jądra. | |
ae5c0e3f JB |
31 | |
32 | %package devel | |
33 | Summary: Header files for libdrm library | |
0f3b1a92 | 34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdrm |
ae5c0e3f JB |
35 | Group: Development/Libraries |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | Header files for libdrm library. | |
40 | ||
1a90a525 JR |
41 | %description devel -l pl.UTF-8 |
42 | Pliki nagłówkowe biblioteki libdrm. | |
ae5c0e3f JB |
43 | |
44 | %package static | |
45 | Summary: Static libdrm library | |
0f3b1a92 | 46 | Summary(pl.UTF-8): Statyczna biblioteka libdrm |
ae5c0e3f JB |
47 | Group: Development/Libraries |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static libdrm library. | |
52 | ||
1a90a525 | 53 | %description static -l pl.UTF-8 |
ae5c0e3f JB |
54 | Statyczna biblioteka libdrm. |
55 | ||
56 | %prep | |
57 | %setup -q | |
58 | ||
59 | %build | |
63d6347e JB |
60 | %{__libtoolize} |
61 | %{__aclocal} | |
62 | %{__autoconf} | |
63 | %{__autoheader} | |
64 | %{__automake} | |
ea609aa2 | 65 | %configure \ |
ce57d5ee | 66 | --disable-silent-rules \ |
abd97ae4 | 67 | --enable-static \ |
0db70b09 | 68 | %ifarch arm aarch64 |
abd97ae4 | 69 | --enable-exynos-experimental-api \ |
219ddaee | 70 | --enable-freedreno-experimental-api \ |
75d4edce | 71 | --enable-omap-experimental-api \ |
3e5be409 | 72 | --enable-tegra-experimental-api |
abd97ae4 | 73 | %endif |
3e5be409 | 74 | |
ae5c0e3f JB |
75 | %{__make} |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_libdir}/libdrm.so.*.*.* | |
f4765dc5 | 92 | %attr(755,root,root) %ghost %{_libdir}/libdrm.so.2 |
1d42ce43 AM |
93 | %attr(755,root,root) %{_libdir}/libdrm_amdgpu.so.*.*.* |
94 | %attr(755,root,root) %ghost %{_libdir}/libdrm_amdgpu.so.1 | |
205b48e9 | 95 | %attr(755,root,root) %{_libdir}/libdrm_intel.so.*.*.* |
f4765dc5 | 96 | %attr(755,root,root) %ghost %{_libdir}/libdrm_intel.so.1 |
2ce26aa4 | 97 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so.*.*.* |
75d4edce | 98 | %attr(755,root,root) %ghost %{_libdir}/libdrm_nouveau.so.2 |
0db735c2 | 99 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so.*.*.* |
f4765dc5 | 100 | %attr(755,root,root) %ghost %{_libdir}/libdrm_radeon.so.1 |
0db70b09 | 101 | %ifarch arm aarch64 |
abd97ae4 JB |
102 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so.*.*.* |
103 | %attr(755,root,root) %ghost %{_libdir}/libdrm_exynos.so.1 | |
219ddaee JB |
104 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so.*.*.* |
105 | %attr(755,root,root) %ghost %{_libdir}/libdrm_freedreno.so.1 | |
106 | %attr(755,root,root) %{_libdir}/libdrm_omap.so.*.*.* | |
107 | %attr(755,root,root) %ghost %{_libdir}/libdrm_omap.so.1 | |
3e5be409 JB |
108 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so.*.*.* |
109 | %attr(755,root,root) %ghost %{_libdir}/libdrm_tegra.so.0 | |
abd97ae4 | 110 | %endif |
ce57d5ee | 111 | %attr(755,root,root) %{_libdir}/libkms.so.*.*.* |
05a899bd | 112 | %attr(755,root,root) %ghost %{_libdir}/libkms.so.1 |
ae5c0e3f JB |
113 | |
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_libdir}/libdrm.so | |
1d42ce43 | 117 | %attr(755,root,root) %{_libdir}/libdrm_amdgpu.so |
205b48e9 | 118 | %attr(755,root,root) %{_libdir}/libdrm_intel.so |
2ce26aa4 | 119 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so |
0db735c2 | 120 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so |
05a899bd | 121 | %attr(755,root,root) %{_libdir}/libkms.so |
ae5c0e3f | 122 | %{_libdir}/libdrm.la |
1d42ce43 | 123 | %{_libdir}/libdrm_amdgpu.la |
205b48e9 | 124 | %{_libdir}/libdrm_intel.la |
2ce26aa4 | 125 | %{_libdir}/libdrm_nouveau.la |
0db735c2 | 126 | %{_libdir}/libdrm_radeon.la |
05a899bd | 127 | %{_libdir}/libkms.la |
de673389 | 128 | %{_includedir}/libdrm |
05a899bd | 129 | %{_includedir}/libkms |
5783ce64 | 130 | %{_includedir}/xf86drm.h |
d1214479 | 131 | %{_includedir}/xf86drmMode.h |
ae5c0e3f | 132 | %{_pkgconfigdir}/libdrm.pc |
1d42ce43 | 133 | %{_pkgconfigdir}/libdrm_amdgpu.pc |
cfd6b9e4 | 134 | %{_pkgconfigdir}/libdrm_intel.pc |
2ce26aa4 | 135 | %{_pkgconfigdir}/libdrm_nouveau.pc |
0db735c2 | 136 | %{_pkgconfigdir}/libdrm_radeon.pc |
05a899bd | 137 | %{_pkgconfigdir}/libkms.pc |
0db70b09 | 138 | %ifarch arm aarch64 |
abd97ae4 | 139 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so |
219ddaee | 140 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so |
abd97ae4 | 141 | %attr(755,root,root) %{_libdir}/libdrm_omap.so |
3e5be409 | 142 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so |
abd97ae4 | 143 | %{_libdir}/libdrm_exynos.la |
219ddaee | 144 | %{_libdir}/libdrm_freedreno.la |
abd97ae4 | 145 | %{_libdir}/libdrm_omap.la |
3e5be409 | 146 | %{_libdir}/libdrm_tegra.la |
abd97ae4 | 147 | %{_includedir}/exynos |
219ddaee | 148 | %{_includedir}/freedreno |
abd97ae4 | 149 | %{_includedir}/omap |
3e5be409 JB |
150 | # already included above |
151 | #%{_includedir}/libdrm/tegra.h | |
abd97ae4 | 152 | %{_pkgconfigdir}/libdrm_exynos.pc |
219ddaee | 153 | %{_pkgconfigdir}/libdrm_freedreno.pc |
abd97ae4 | 154 | %{_pkgconfigdir}/libdrm_omap.pc |
3e5be409 | 155 | %{_pkgconfigdir}/libdrm_tegra.pc |
abd97ae4 | 156 | %endif |
27379078 JB |
157 | %{_mandir}/man3/drm*.3* |
158 | %{_mandir}/man7/drm*.7* | |
ae5c0e3f JB |
159 | |
160 | %files static | |
161 | %defattr(644,root,root,755) | |
162 | %{_libdir}/libdrm.a | |
1d42ce43 | 163 | %{_libdir}/libdrm_amdgpu.a |
205b48e9 | 164 | %{_libdir}/libdrm_intel.a |
2ce26aa4 | 165 | %{_libdir}/libdrm_nouveau.a |
0db735c2 | 166 | %{_libdir}/libdrm_radeon.a |
0db70b09 | 167 | %ifarch arm aarch64 |
abd97ae4 | 168 | %{_libdir}/libdrm_exynos.a |
219ddaee | 169 | %{_libdir}/libdrm_freedreno.a |
abd97ae4 | 170 | %{_libdir}/libdrm_omap.a |
3e5be409 | 171 | %{_libdir}/libdrm_tegra.a |
abd97ae4 | 172 | %endif |
05a899bd | 173 | %{_libdir}/libkms.a |