]>
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.61 | |
5 | Release: 1 | |
6 | License: MIT | |
7 | Group: Libraries | |
8 | Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: c3d31138d63e0edde3f5b93cd88fb93a | |
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: xorg-lib-libpciaccess-devel >= 0.10 | |
21 | BuildRequires: xorg-util-util-macros >= 1.12 | |
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 | ||
58 | %build | |
59 | %{__libtoolize} | |
60 | %{__aclocal} | |
61 | %{__autoconf} | |
62 | %{__autoheader} | |
63 | %{__automake} | |
64 | %configure \ | |
65 | --disable-silent-rules \ | |
66 | --enable-static \ | |
67 | %ifarch arm aarch64 | |
68 | --enable-exynos-experimental-api \ | |
69 | --enable-freedreno-experimental-api \ | |
70 | --enable-omap-experimental-api \ | |
71 | --enable-tegra-experimental-api | |
72 | %endif | |
73 | ||
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.*.*.* | |
91 | %attr(755,root,root) %ghost %{_libdir}/libdrm.so.2 | |
92 | %attr(755,root,root) %{_libdir}/libdrm_intel.so.*.*.* | |
93 | %attr(755,root,root) %ghost %{_libdir}/libdrm_intel.so.1 | |
94 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so.*.*.* | |
95 | %attr(755,root,root) %ghost %{_libdir}/libdrm_nouveau.so.2 | |
96 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so.*.*.* | |
97 | %attr(755,root,root) %ghost %{_libdir}/libdrm_radeon.so.1 | |
98 | %ifarch arm aarch64 | |
99 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so.*.*.* | |
100 | %attr(755,root,root) %ghost %{_libdir}/libdrm_exynos.so.1 | |
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 | |
105 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so.*.*.* | |
106 | %attr(755,root,root) %ghost %{_libdir}/libdrm_tegra.so.0 | |
107 | %endif | |
108 | %attr(755,root,root) %{_libdir}/libkms.so.*.*.* | |
109 | %attr(755,root,root) %ghost %{_libdir}/libkms.so.1 | |
110 | ||
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
113 | %attr(755,root,root) %{_libdir}/libdrm.so | |
114 | %attr(755,root,root) %{_libdir}/libdrm_intel.so | |
115 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so | |
116 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so | |
117 | %attr(755,root,root) %{_libdir}/libkms.so | |
118 | %{_libdir}/libdrm.la | |
119 | %{_libdir}/libdrm_intel.la | |
120 | %{_libdir}/libdrm_nouveau.la | |
121 | %{_libdir}/libdrm_radeon.la | |
122 | %{_libdir}/libkms.la | |
123 | %{_includedir}/libdrm | |
124 | %{_includedir}/libkms | |
125 | %{_includedir}/xf86drm.h | |
126 | %{_includedir}/xf86drmMode.h | |
127 | %{_pkgconfigdir}/libdrm.pc | |
128 | %{_pkgconfigdir}/libdrm_intel.pc | |
129 | %{_pkgconfigdir}/libdrm_nouveau.pc | |
130 | %{_pkgconfigdir}/libdrm_radeon.pc | |
131 | %{_pkgconfigdir}/libkms.pc | |
132 | %ifarch arm aarch64 | |
133 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so | |
134 | %attr(755,root,root) %{_libdir}/libdrm_freedreno.so | |
135 | %attr(755,root,root) %{_libdir}/libdrm_omap.so | |
136 | %attr(755,root,root) %{_libdir}/libdrm_tegra.so | |
137 | %{_libdir}/libdrm_exynos.la | |
138 | %{_libdir}/libdrm_freedreno.la | |
139 | %{_libdir}/libdrm_omap.la | |
140 | %{_libdir}/libdrm_tegra.la | |
141 | %{_includedir}/exynos | |
142 | %{_includedir}/freedreno | |
143 | %{_includedir}/omap | |
144 | # already included above | |
145 | #%{_includedir}/libdrm/tegra.h | |
146 | %{_pkgconfigdir}/libdrm_exynos.pc | |
147 | %{_pkgconfigdir}/libdrm_freedreno.pc | |
148 | %{_pkgconfigdir}/libdrm_omap.pc | |
149 | %{_pkgconfigdir}/libdrm_tegra.pc | |
150 | %endif | |
151 | %{_mandir}/man3/drm*.3* | |
152 | %{_mandir}/man7/drm*.7* | |
153 | ||
154 | %files static | |
155 | %defattr(644,root,root,755) | |
156 | %{_libdir}/libdrm.a | |
157 | %{_libdir}/libdrm_intel.a | |
158 | %{_libdir}/libdrm_nouveau.a | |
159 | %{_libdir}/libdrm_radeon.a | |
160 | %ifarch arm aarch64 | |
161 | %{_libdir}/libdrm_exynos.a | |
162 | %{_libdir}/libdrm_freedreno.a | |
163 | %{_libdir}/libdrm_omap.a | |
164 | %{_libdir}/libdrm_tegra.a | |
165 | %endif | |
166 | %{_libdir}/libkms.a |