]>
Commit | Line | Data |
---|---|---|
1 | Summary: Userspace interface to kernel DRM services | |
2 | Summary(pl.UTF-8): Interfejs przestrzeni użytkownika do usług DRM jądra | |
3 | Name: libdrm | |
4 | Version: 2.4.63 | |
5 | Release: 1 | |
6 | License: MIT | |
7 | Group: Libraries | |
8 | Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 519da97017ea0e2cbea65c972c2be26e | |
10 | URL: http://dri.freedesktop.org/ | |
11 | BuildRequires: autoconf >= 2.63 | |
12 | BuildRequires: automake >= 1:1.10 | |
13 | BuildRequires: docbook-dtd42-xml | |
14 | BuildRequires: docbook-style-xsl | |
15 | BuildRequires: libpthread-stubs | |
16 | BuildRequires: libtool >= 2:2.2 | |
17 | BuildRequires: libxslt-progs | |
18 | BuildRequires: pkgconfig | |
19 | BuildRequires: sed >= 4.0 | |
20 | BuildRequires: valgrind | |
21 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10 | |
22 | BuildRequires: xorg-util-util-macros >= 1.12 | |
23 | Requires: xorg-lib-libpciaccess >= 0.10 | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Userspace interface to kernel DRM services. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Interfejs przestrzeni użytkownika do usług DRM jądra. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for libdrm library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdrm | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | Header files for libdrm library. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe biblioteki libdrm. | |
43 | ||
44 | %package static | |
45 | Summary: Static libdrm library | |
46 | Summary(pl.UTF-8): Statyczna biblioteka libdrm | |
47 | Group: Development/Libraries | |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static libdrm library. | |
52 | ||
53 | %description static -l pl.UTF-8 | |
54 | Statyczna biblioteka libdrm. | |
55 | ||
56 | %prep | |
57 | %setup -q | |
58 | ||
59 | %build | |
60 | %{__libtoolize} | |
61 | %{__aclocal} | |
62 | %{__autoconf} | |
63 | %{__autoheader} | |
64 | %{__automake} | |
65 | %configure \ | |
66 | --disable-silent-rules \ | |
67 | --enable-static \ | |
68 | %ifarch arm aarch64 | |
69 | --enable-exynos-experimental-api \ | |
70 | --enable-freedreno-experimental-api \ | |
71 | --enable-omap-experimental-api \ | |
72 | --enable-tegra-experimental-api | |
73 | %endif | |
74 | ||
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.*.*.* | |
92 | %attr(755,root,root) %ghost %{_libdir}/libdrm.so.2 | |
93 | %attr(755,root,root) %{_libdir}/libdrm_amdgpu.so.*.*.* | |
94 | %attr(755,root,root) %ghost %{_libdir}/libdrm_amdgpu.so.1 | |
95 | %attr(755,root,root) %{_libdir}/libdrm_intel.so.*.*.* | |
96 | %attr(755,root,root) %ghost %{_libdir}/libdrm_intel.so.1 | |
97 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so.*.*.* | |
98 | %attr(755,root,root) %ghost %{_libdir}/libdrm_nouveau.so.2 | |
99 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so.*.*.* | |
100 | %attr(755,root,root) %ghost %{_libdir}/libdrm_radeon.so.1 | |
101 | %ifarch arm aarch64 | |
102 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so.*.*.* | |
103 | %attr(755,root,root) %ghost %{_libdir}/libdrm_exynos.so.1 | |
104 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so.*.*.* | |
105 | %attr(755,root,root) %ghost %{_libdir}/libdrm_freedreno.so.1 | |
106 | %attr(755,root,root) %{_libdir}/libdrm_omap.so.*.*.* | |
107 | %attr(755,root,root) %ghost %{_libdir}/libdrm_omap.so.1 | |
108 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so.*.*.* | |
109 | %attr(755,root,root) %ghost %{_libdir}/libdrm_tegra.so.0 | |
110 | %endif | |
111 | %attr(755,root,root) %{_libdir}/libkms.so.*.*.* | |
112 | %attr(755,root,root) %ghost %{_libdir}/libkms.so.1 | |
113 | ||
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_libdir}/libdrm.so | |
117 | %attr(755,root,root) %{_libdir}/libdrm_amdgpu.so | |
118 | %attr(755,root,root) %{_libdir}/libdrm_intel.so | |
119 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so | |
120 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so | |
121 | %attr(755,root,root) %{_libdir}/libkms.so | |
122 | %{_libdir}/libdrm.la | |
123 | %{_libdir}/libdrm_amdgpu.la | |
124 | %{_libdir}/libdrm_intel.la | |
125 | %{_libdir}/libdrm_nouveau.la | |
126 | %{_libdir}/libdrm_radeon.la | |
127 | %{_libdir}/libkms.la | |
128 | %{_includedir}/libdrm | |
129 | %{_includedir}/libkms | |
130 | %{_includedir}/xf86drm.h | |
131 | %{_includedir}/xf86drmMode.h | |
132 | %{_pkgconfigdir}/libdrm.pc | |
133 | %{_pkgconfigdir}/libdrm_amdgpu.pc | |
134 | %{_pkgconfigdir}/libdrm_intel.pc | |
135 | %{_pkgconfigdir}/libdrm_nouveau.pc | |
136 | %{_pkgconfigdir}/libdrm_radeon.pc | |
137 | %{_pkgconfigdir}/libkms.pc | |
138 | %ifarch arm aarch64 | |
139 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so | |
140 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so | |
141 | %attr(755,root,root) %{_libdir}/libdrm_omap.so | |
142 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so | |
143 | %{_libdir}/libdrm_exynos.la | |
144 | %{_libdir}/libdrm_freedreno.la | |
145 | %{_libdir}/libdrm_omap.la | |
146 | %{_libdir}/libdrm_tegra.la | |
147 | %{_includedir}/exynos | |
148 | %{_includedir}/freedreno | |
149 | %{_includedir}/omap | |
150 | # already included above | |
151 | #%{_includedir}/libdrm/tegra.h | |
152 | %{_pkgconfigdir}/libdrm_exynos.pc | |
153 | %{_pkgconfigdir}/libdrm_freedreno.pc | |
154 | %{_pkgconfigdir}/libdrm_omap.pc | |
155 | %{_pkgconfigdir}/libdrm_tegra.pc | |
156 | %endif | |
157 | %{_mandir}/man3/drm*.3* | |
158 | %{_mandir}/man7/drm*.7* | |
159 | ||
160 | %files static | |
161 | %defattr(644,root,root,755) | |
162 | %{_libdir}/libdrm.a | |
163 | %{_libdir}/libdrm_amdgpu.a | |
164 | %{_libdir}/libdrm_intel.a | |
165 | %{_libdir}/libdrm_nouveau.a | |
166 | %{_libdir}/libdrm_radeon.a | |
167 | %ifarch arm aarch64 | |
168 | %{_libdir}/libdrm_exynos.a | |
169 | %{_libdir}/libdrm_freedreno.a | |
170 | %{_libdir}/libdrm_omap.a | |
171 | %{_libdir}/libdrm_tegra.a | |
172 | %endif | |
173 | %{_libdir}/libkms.a |