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