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