]>
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 |
f8b06321 | 4 | Version: 2.4.62 |
4be48ab0 | 5 | Release: 2 |
ae5c0e3f JB |
6 | License: MIT |
7 | Group: Libraries | |
ea609aa2 | 8 | Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 |
f8b06321 | 9 | # Source0-md5: c9291bae0e5ca65d1483821d3698d3ab |
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 |
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 |
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 |
0db70b09 | 99 | %ifarch arm aarch64 |
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 |
0db70b09 | 133 | %ifarch arm aarch64 |
abd97ae4 | 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 |
0db70b09 | 161 | %ifarch arm aarch64 |
abd97ae4 | 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 |