]>
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 |
d39b16e6 | 4 | Version: 2.4.99 |
1d42ce43 | 5 | Release: 1 |
ae5c0e3f JB |
6 | License: MIT |
7 | Group: Libraries | |
0e106314 | 8 | Source0: https://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 |
d39b16e6 | 9 | # Source0-md5: 72539626815b35159a63d45bc4c14ee6 |
0e106314 | 10 | URL: https://dri.freedesktop.org/ |
ff8ca3fa JB |
11 | BuildRequires: autoconf >= 2.63 |
12 | BuildRequires: automake >= 1:1.10 | |
107988c4 | 13 | BuildRequires: docbook-dtd42-xml |
d39b16e6 | 14 | BuildRequires: docbook-style-xsl-nons |
f8e7425f | 15 | BuildRequires: libpthread-stubs >= 0.4 |
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 |
0da36293 | 21 | %ifarch %{ix86} %{x8664} x32 |
ff8ca3fa | 22 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10 |
0da36293 | 23 | %endif |
0db70b09 | 24 | BuildRequires: xorg-util-util-macros >= 1.12 |
d713945c | 25 | %ifarch %{ix86} %{x8664} x32 |
ff8ca3fa | 26 | Requires: xorg-lib-libpciaccess >= 0.10 |
d713945c | 27 | %endif |
ae5c0e3f JB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | Userspace interface to kernel DRM services. | |
32 | ||
1a90a525 JR |
33 | %description -l pl.UTF-8 |
34 | Interfejs przestrzeni użytkownika do usług DRM jądra. | |
ae5c0e3f JB |
35 | |
36 | %package devel | |
37 | Summary: Header files for libdrm library | |
0f3b1a92 | 38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdrm |
ae5c0e3f JB |
39 | Group: Development/Libraries |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Header files for libdrm library. | |
44 | ||
1a90a525 JR |
45 | %description devel -l pl.UTF-8 |
46 | Pliki nagłówkowe biblioteki libdrm. | |
ae5c0e3f JB |
47 | |
48 | %package static | |
49 | Summary: Static libdrm library | |
0f3b1a92 | 50 | Summary(pl.UTF-8): Statyczna biblioteka libdrm |
ae5c0e3f JB |
51 | Group: Development/Libraries |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static libdrm library. | |
56 | ||
1a90a525 | 57 | %description static -l pl.UTF-8 |
ae5c0e3f JB |
58 | Statyczna biblioteka libdrm. |
59 | ||
60 | %prep | |
61 | %setup -q | |
62 | ||
63 | %build | |
63d6347e JB |
64 | %{__libtoolize} |
65 | %{__aclocal} | |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
ea609aa2 | 69 | %configure \ |
ce57d5ee | 70 | --disable-silent-rules \ |
abd97ae4 | 71 | --enable-static \ |
b1f17e13 JB |
72 | %ifarch %{arm} aarch64 |
73 | --enable-etnaviv-experimental-api \ | |
abd97ae4 | 74 | --enable-exynos-experimental-api \ |
219ddaee | 75 | --enable-freedreno-experimental-api \ |
75d4edce | 76 | --enable-omap-experimental-api \ |
3e5be409 | 77 | --enable-tegra-experimental-api |
abd97ae4 | 78 | %endif |
3e5be409 | 79 | |
ae5c0e3f JB |
80 | %{__make} |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
b1f17e13 JB |
88 | # obsoleted by pkg-config |
89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
90 | ||
ae5c0e3f JB |
91 | %clean |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_libdir}/libdrm.so.*.*.* | |
f4765dc5 | 100 | %attr(755,root,root) %ghost %{_libdir}/libdrm.so.2 |
1d42ce43 AM |
101 | %attr(755,root,root) %{_libdir}/libdrm_amdgpu.so.*.*.* |
102 | %attr(755,root,root) %ghost %{_libdir}/libdrm_amdgpu.so.1 | |
0da36293 | 103 | %ifarch %{ix86} %{x8664} x32 |
205b48e9 | 104 | %attr(755,root,root) %{_libdir}/libdrm_intel.so.*.*.* |
f4765dc5 | 105 | %attr(755,root,root) %ghost %{_libdir}/libdrm_intel.so.1 |
0da36293 | 106 | %endif |
2ce26aa4 | 107 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so.*.*.* |
75d4edce | 108 | %attr(755,root,root) %ghost %{_libdir}/libdrm_nouveau.so.2 |
0db735c2 | 109 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so.*.*.* |
f4765dc5 | 110 | %attr(755,root,root) %ghost %{_libdir}/libdrm_radeon.so.1 |
b1f17e13 JB |
111 | %ifarch %{arm} aarch64 |
112 | %attr(755,root,root) %{_libdir}/libdrm_etnaviv.so.*.*.* | |
113 | %attr(755,root,root) %ghost %{_libdir}/libdrm_etnaviv.so.1 | |
abd97ae4 JB |
114 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so.*.*.* |
115 | %attr(755,root,root) %ghost %{_libdir}/libdrm_exynos.so.1 | |
219ddaee JB |
116 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so.*.*.* |
117 | %attr(755,root,root) %ghost %{_libdir}/libdrm_freedreno.so.1 | |
118 | %attr(755,root,root) %{_libdir}/libdrm_omap.so.*.*.* | |
119 | %attr(755,root,root) %ghost %{_libdir}/libdrm_omap.so.1 | |
3e5be409 JB |
120 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so.*.*.* |
121 | %attr(755,root,root) %ghost %{_libdir}/libdrm_tegra.so.0 | |
abd97ae4 | 122 | %endif |
ce57d5ee | 123 | %attr(755,root,root) %{_libdir}/libkms.so.*.*.* |
05a899bd | 124 | %attr(755,root,root) %ghost %{_libdir}/libkms.so.1 |
56e90a6e | 125 | %{_datadir}/libdrm |
ae5c0e3f JB |
126 | |
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
129 | %attr(755,root,root) %{_libdir}/libdrm.so | |
1d42ce43 | 130 | %attr(755,root,root) %{_libdir}/libdrm_amdgpu.so |
2ce26aa4 | 131 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so |
0db735c2 | 132 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so |
05a899bd | 133 | %attr(755,root,root) %{_libdir}/libkms.so |
de673389 | 134 | %{_includedir}/libdrm |
05a899bd | 135 | %{_includedir}/libkms |
7abcfbbb | 136 | %{_includedir}/libsync.h |
5783ce64 | 137 | %{_includedir}/xf86drm.h |
d1214479 | 138 | %{_includedir}/xf86drmMode.h |
ae5c0e3f | 139 | %{_pkgconfigdir}/libdrm.pc |
1d42ce43 | 140 | %{_pkgconfigdir}/libdrm_amdgpu.pc |
2ce26aa4 | 141 | %{_pkgconfigdir}/libdrm_nouveau.pc |
0db735c2 | 142 | %{_pkgconfigdir}/libdrm_radeon.pc |
05a899bd | 143 | %{_pkgconfigdir}/libkms.pc |
0da36293 JB |
144 | %ifarch %{ix86} %{x8664} x32 |
145 | %attr(755,root,root) %{_libdir}/libdrm_intel.so | |
0da36293 JB |
146 | %{_pkgconfigdir}/libdrm_intel.pc |
147 | %endif | |
b1f17e13 JB |
148 | %ifarch %{arm} aarch64 |
149 | %attr(755,root,root) %{_libdir}/libdrm_etnaviv.so | |
abd97ae4 | 150 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so |
219ddaee | 151 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so |
abd97ae4 | 152 | %attr(755,root,root) %{_libdir}/libdrm_omap.so |
3e5be409 | 153 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so |
abd97ae4 | 154 | %{_includedir}/exynos |
219ddaee | 155 | %{_includedir}/freedreno |
abd97ae4 | 156 | %{_includedir}/omap |
3e5be409 | 157 | # already included above |
b1f17e13 | 158 | #%{_includedir}/libdrm/etnaviv_drmif.h |
3e5be409 | 159 | #%{_includedir}/libdrm/tegra.h |
0da36293 JB |
160 | #%{_includedir}/libdrm/vc4_packet.h |
161 | #%{_includedir}/libdrm/vc4_qpu_defines.h | |
b1f17e13 | 162 | %{_pkgconfigdir}/libdrm_etnaviv.pc |
abd97ae4 | 163 | %{_pkgconfigdir}/libdrm_exynos.pc |
219ddaee | 164 | %{_pkgconfigdir}/libdrm_freedreno.pc |
abd97ae4 | 165 | %{_pkgconfigdir}/libdrm_omap.pc |
3e5be409 | 166 | %{_pkgconfigdir}/libdrm_tegra.pc |
0da36293 | 167 | %{_pkgconfigdir}/libdrm_vc4.pc |
abd97ae4 | 168 | %endif |
27379078 JB |
169 | %{_mandir}/man3/drm*.3* |
170 | %{_mandir}/man7/drm*.7* | |
ae5c0e3f JB |
171 | |
172 | %files static | |
173 | %defattr(644,root,root,755) | |
174 | %{_libdir}/libdrm.a | |
1d42ce43 | 175 | %{_libdir}/libdrm_amdgpu.a |
0da36293 | 176 | %ifarch %{ix86} %{x8664} x32 |
205b48e9 | 177 | %{_libdir}/libdrm_intel.a |
0da36293 | 178 | %endif |
2ce26aa4 | 179 | %{_libdir}/libdrm_nouveau.a |
0db735c2 | 180 | %{_libdir}/libdrm_radeon.a |
b1f17e13 JB |
181 | %ifarch %{arm} aarch64 |
182 | %{_libdir}/libdrm_etnaviv.a | |
abd97ae4 | 183 | %{_libdir}/libdrm_exynos.a |
219ddaee | 184 | %{_libdir}/libdrm_freedreno.a |
abd97ae4 | 185 | %{_libdir}/libdrm_omap.a |
3e5be409 | 186 | %{_libdir}/libdrm_tegra.a |
abd97ae4 | 187 | %endif |
05a899bd | 188 | %{_libdir}/libkms.a |