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