]>
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 |
ef82e1d4 | 5 | Release: 1 |
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 |
ff8ca3fa | 20 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10 |
0db70b09 | 21 | BuildRequires: xorg-util-util-macros >= 1.12 |
ff8ca3fa | 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 | |
57 | ||
58 | %build | |
63d6347e JB |
59 | %{__libtoolize} |
60 | %{__aclocal} | |
61 | %{__autoconf} | |
62 | %{__autoheader} | |
63 | %{__automake} | |
ea609aa2 | 64 | %configure \ |
ce57d5ee | 65 | --disable-silent-rules \ |
abd97ae4 | 66 | --enable-static \ |
0db70b09 | 67 | %ifarch arm aarch64 |
abd97ae4 | 68 | --enable-exynos-experimental-api \ |
219ddaee | 69 | --enable-freedreno-experimental-api \ |
75d4edce | 70 | --enable-omap-experimental-api \ |
3e5be409 | 71 | --enable-tegra-experimental-api |
abd97ae4 | 72 | %endif |
3e5be409 | 73 | |
ae5c0e3f JB |
74 | %{__make} |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %attr(755,root,root) %{_libdir}/libdrm.so.*.*.* | |
f4765dc5 | 91 | %attr(755,root,root) %ghost %{_libdir}/libdrm.so.2 |
205b48e9 | 92 | %attr(755,root,root) %{_libdir}/libdrm_intel.so.*.*.* |
f4765dc5 | 93 | %attr(755,root,root) %ghost %{_libdir}/libdrm_intel.so.1 |
2ce26aa4 | 94 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so.*.*.* |
75d4edce | 95 | %attr(755,root,root) %ghost %{_libdir}/libdrm_nouveau.so.2 |
0db735c2 | 96 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so.*.*.* |
f4765dc5 | 97 | %attr(755,root,root) %ghost %{_libdir}/libdrm_radeon.so.1 |
0db70b09 | 98 | %ifarch arm aarch64 |
abd97ae4 JB |
99 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so.*.*.* |
100 | %attr(755,root,root) %ghost %{_libdir}/libdrm_exynos.so.1 | |
219ddaee JB |
101 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so.*.*.* |
102 | %attr(755,root,root) %ghost %{_libdir}/libdrm_freedreno.so.1 | |
103 | %attr(755,root,root) %{_libdir}/libdrm_omap.so.*.*.* | |
104 | %attr(755,root,root) %ghost %{_libdir}/libdrm_omap.so.1 | |
3e5be409 JB |
105 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so.*.*.* |
106 | %attr(755,root,root) %ghost %{_libdir}/libdrm_tegra.so.0 | |
abd97ae4 | 107 | %endif |
ce57d5ee | 108 | %attr(755,root,root) %{_libdir}/libkms.so.*.*.* |
05a899bd | 109 | %attr(755,root,root) %ghost %{_libdir}/libkms.so.1 |
ae5c0e3f JB |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
113 | %attr(755,root,root) %{_libdir}/libdrm.so | |
205b48e9 | 114 | %attr(755,root,root) %{_libdir}/libdrm_intel.so |
2ce26aa4 | 115 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so |
0db735c2 | 116 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so |
05a899bd | 117 | %attr(755,root,root) %{_libdir}/libkms.so |
ae5c0e3f | 118 | %{_libdir}/libdrm.la |
205b48e9 | 119 | %{_libdir}/libdrm_intel.la |
2ce26aa4 | 120 | %{_libdir}/libdrm_nouveau.la |
0db735c2 | 121 | %{_libdir}/libdrm_radeon.la |
05a899bd | 122 | %{_libdir}/libkms.la |
de673389 | 123 | %{_includedir}/libdrm |
05a899bd | 124 | %{_includedir}/libkms |
5783ce64 | 125 | %{_includedir}/xf86drm.h |
d1214479 | 126 | %{_includedir}/xf86drmMode.h |
ae5c0e3f | 127 | %{_pkgconfigdir}/libdrm.pc |
cfd6b9e4 | 128 | %{_pkgconfigdir}/libdrm_intel.pc |
2ce26aa4 | 129 | %{_pkgconfigdir}/libdrm_nouveau.pc |
0db735c2 | 130 | %{_pkgconfigdir}/libdrm_radeon.pc |
05a899bd | 131 | %{_pkgconfigdir}/libkms.pc |
0db70b09 | 132 | %ifarch arm aarch64 |
abd97ae4 | 133 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so |
219ddaee | 134 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so |
abd97ae4 | 135 | %attr(755,root,root) %{_libdir}/libdrm_omap.so |
3e5be409 | 136 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so |
abd97ae4 | 137 | %{_libdir}/libdrm_exynos.la |
219ddaee | 138 | %{_libdir}/libdrm_freedreno.la |
abd97ae4 | 139 | %{_libdir}/libdrm_omap.la |
3e5be409 | 140 | %{_libdir}/libdrm_tegra.la |
abd97ae4 | 141 | %{_includedir}/exynos |
219ddaee | 142 | %{_includedir}/freedreno |
abd97ae4 | 143 | %{_includedir}/omap |
3e5be409 JB |
144 | # already included above |
145 | #%{_includedir}/libdrm/tegra.h | |
abd97ae4 | 146 | %{_pkgconfigdir}/libdrm_exynos.pc |
219ddaee | 147 | %{_pkgconfigdir}/libdrm_freedreno.pc |
abd97ae4 | 148 | %{_pkgconfigdir}/libdrm_omap.pc |
3e5be409 | 149 | %{_pkgconfigdir}/libdrm_tegra.pc |
abd97ae4 | 150 | %endif |
27379078 JB |
151 | %{_mandir}/man3/drm*.3* |
152 | %{_mandir}/man7/drm*.7* | |
ae5c0e3f JB |
153 | |
154 | %files static | |
155 | %defattr(644,root,root,755) | |
156 | %{_libdir}/libdrm.a | |
205b48e9 | 157 | %{_libdir}/libdrm_intel.a |
2ce26aa4 | 158 | %{_libdir}/libdrm_nouveau.a |
0db735c2 | 159 | %{_libdir}/libdrm_radeon.a |
0db70b09 | 160 | %ifarch arm aarch64 |
abd97ae4 | 161 | %{_libdir}/libdrm_exynos.a |
219ddaee | 162 | %{_libdir}/libdrm_freedreno.a |
abd97ae4 | 163 | %{_libdir}/libdrm_omap.a |
3e5be409 | 164 | %{_libdir}/libdrm_tegra.a |
abd97ae4 | 165 | %endif |
05a899bd | 166 | %{_libdir}/libkms.a |