]>
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 |
aadf9ede | 4 | Version: 2.4.59 |
851c92f8 | 5 | Release: 2 |
ae5c0e3f JB |
6 | License: MIT |
7 | Group: Libraries | |
ea609aa2 | 8 | Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 |
aadf9ede | 9 | # Source0-md5: d32a1d37c2546ee11fc5924abeedb23e |
38af8e00 | 10 | Patch0: libdrm-intel-init.patch |
ae5c0e3f | 11 | URL: http://dri.freedesktop.org/ |
ff8ca3fa JB |
12 | BuildRequires: autoconf >= 2.63 |
13 | BuildRequires: automake >= 1:1.10 | |
107988c4 | 14 | BuildRequires: docbook-dtd42-xml |
11c071ba | 15 | BuildRequires: docbook-style-xsl |
3b84a41e | 16 | BuildRequires: libpthread-stubs |
ff8ca3fa | 17 | BuildRequires: libtool >= 2:2.2 |
107988c4 | 18 | BuildRequires: libxslt-progs |
3b84a41e | 19 | BuildRequires: pkgconfig |
0e07e224 | 20 | BuildRequires: sed >= 4.0 |
ff8ca3fa JB |
21 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10 |
22 | Requires: xorg-lib-libpciaccess >= 0.10 | |
ae5c0e3f JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | Userspace interface to kernel DRM services. | |
27 | ||
1a90a525 JR |
28 | %description -l pl.UTF-8 |
29 | Interfejs przestrzeni użytkownika do usług DRM jądra. | |
ae5c0e3f JB |
30 | |
31 | %package devel | |
32 | Summary: Header files for libdrm library | |
0f3b1a92 | 33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdrm |
ae5c0e3f JB |
34 | Group: Development/Libraries |
35 | Requires: %{name} = %{version}-%{release} | |
36 | ||
37 | %description devel | |
38 | Header files for libdrm library. | |
39 | ||
1a90a525 JR |
40 | %description devel -l pl.UTF-8 |
41 | Pliki nagłówkowe biblioteki libdrm. | |
ae5c0e3f JB |
42 | |
43 | %package static | |
44 | Summary: Static libdrm library | |
0f3b1a92 | 45 | Summary(pl.UTF-8): Statyczna biblioteka libdrm |
ae5c0e3f JB |
46 | Group: Development/Libraries |
47 | Requires: %{name}-devel = %{version}-%{release} | |
48 | ||
49 | %description static | |
50 | Static libdrm library. | |
51 | ||
1a90a525 | 52 | %description static -l pl.UTF-8 |
ae5c0e3f JB |
53 | Statyczna biblioteka libdrm. |
54 | ||
55 | %prep | |
56 | %setup -q | |
38af8e00 | 57 | %patch0 -p1 |
ae5c0e3f JB |
58 | |
59 | %build | |
63d6347e JB |
60 | %{__libtoolize} |
61 | %{__aclocal} | |
62 | %{__autoconf} | |
63 | %{__autoheader} | |
64 | %{__automake} | |
ea609aa2 | 65 | %configure \ |
ce57d5ee | 66 | --disable-silent-rules \ |
abd97ae4 JB |
67 | --enable-static \ |
68 | %ifarch arm | |
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 |
205b48e9 | 93 | %attr(755,root,root) %{_libdir}/libdrm_intel.so.*.*.* |
f4765dc5 | 94 | %attr(755,root,root) %ghost %{_libdir}/libdrm_intel.so.1 |
2ce26aa4 | 95 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so.*.*.* |
75d4edce | 96 | %attr(755,root,root) %ghost %{_libdir}/libdrm_nouveau.so.2 |
0db735c2 | 97 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so.*.*.* |
f4765dc5 | 98 | %attr(755,root,root) %ghost %{_libdir}/libdrm_radeon.so.1 |
abd97ae4 | 99 | %ifarch arm |
abd97ae4 JB |
100 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so.*.*.* |
101 | %attr(755,root,root) %ghost %{_libdir}/libdrm_exynos.so.1 | |
219ddaee JB |
102 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so.*.*.* |
103 | %attr(755,root,root) %ghost %{_libdir}/libdrm_freedreno.so.1 | |
104 | %attr(755,root,root) %{_libdir}/libdrm_omap.so.*.*.* | |
105 | %attr(755,root,root) %ghost %{_libdir}/libdrm_omap.so.1 | |
3e5be409 JB |
106 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so.*.*.* |
107 | %attr(755,root,root) %ghost %{_libdir}/libdrm_tegra.so.0 | |
abd97ae4 | 108 | %endif |
ce57d5ee | 109 | %attr(755,root,root) %{_libdir}/libkms.so.*.*.* |
05a899bd | 110 | %attr(755,root,root) %ghost %{_libdir}/libkms.so.1 |
ae5c0e3f JB |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libdrm.so | |
205b48e9 | 115 | %attr(755,root,root) %{_libdir}/libdrm_intel.so |
2ce26aa4 | 116 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so |
0db735c2 | 117 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so |
05a899bd | 118 | %attr(755,root,root) %{_libdir}/libkms.so |
ae5c0e3f | 119 | %{_libdir}/libdrm.la |
205b48e9 | 120 | %{_libdir}/libdrm_intel.la |
2ce26aa4 | 121 | %{_libdir}/libdrm_nouveau.la |
0db735c2 | 122 | %{_libdir}/libdrm_radeon.la |
05a899bd | 123 | %{_libdir}/libkms.la |
de673389 | 124 | %{_includedir}/libdrm |
05a899bd | 125 | %{_includedir}/libkms |
5783ce64 | 126 | %{_includedir}/xf86drm.h |
d1214479 | 127 | %{_includedir}/xf86drmMode.h |
ae5c0e3f | 128 | %{_pkgconfigdir}/libdrm.pc |
cfd6b9e4 | 129 | %{_pkgconfigdir}/libdrm_intel.pc |
2ce26aa4 | 130 | %{_pkgconfigdir}/libdrm_nouveau.pc |
0db735c2 | 131 | %{_pkgconfigdir}/libdrm_radeon.pc |
05a899bd | 132 | %{_pkgconfigdir}/libkms.pc |
abd97ae4 JB |
133 | %ifarch arm |
134 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so | |
219ddaee | 135 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so |
abd97ae4 | 136 | %attr(755,root,root) %{_libdir}/libdrm_omap.so |
3e5be409 | 137 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so |
abd97ae4 | 138 | %{_libdir}/libdrm_exynos.la |
219ddaee | 139 | %{_libdir}/libdrm_freedreno.la |
abd97ae4 | 140 | %{_libdir}/libdrm_omap.la |
3e5be409 | 141 | %{_libdir}/libdrm_tegra.la |
abd97ae4 | 142 | %{_includedir}/exynos |
219ddaee | 143 | %{_includedir}/freedreno |
abd97ae4 | 144 | %{_includedir}/omap |
3e5be409 JB |
145 | # already included above |
146 | #%{_includedir}/libdrm/tegra.h | |
abd97ae4 | 147 | %{_pkgconfigdir}/libdrm_exynos.pc |
219ddaee | 148 | %{_pkgconfigdir}/libdrm_freedreno.pc |
abd97ae4 | 149 | %{_pkgconfigdir}/libdrm_omap.pc |
3e5be409 | 150 | %{_pkgconfigdir}/libdrm_tegra.pc |
abd97ae4 | 151 | %endif |
27379078 JB |
152 | %{_mandir}/man3/drm*.3* |
153 | %{_mandir}/man7/drm*.7* | |
ae5c0e3f JB |
154 | |
155 | %files static | |
156 | %defattr(644,root,root,755) | |
157 | %{_libdir}/libdrm.a | |
205b48e9 | 158 | %{_libdir}/libdrm_intel.a |
2ce26aa4 | 159 | %{_libdir}/libdrm_nouveau.a |
0db735c2 | 160 | %{_libdir}/libdrm_radeon.a |
abd97ae4 JB |
161 | %ifarch arm |
162 | %{_libdir}/libdrm_exynos.a | |
219ddaee | 163 | %{_libdir}/libdrm_freedreno.a |
abd97ae4 | 164 | %{_libdir}/libdrm_omap.a |
3e5be409 | 165 | %{_libdir}/libdrm_tegra.a |
abd97ae4 | 166 | %endif |
05a899bd | 167 | %{_libdir}/libkms.a |