]>
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.44 | |
5 | Release: 1 | |
6 | License: MIT | |
7 | Group: Libraries | |
8 | Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: b760b1f2ae4ec6452383164ec697cd5d | |
10 | URL: http://dri.freedesktop.org/ | |
11 | BuildRequires: autoconf >= 2.63 | |
12 | BuildRequires: automake >= 1:1.10 | |
13 | BuildRequires: docbook-dtd42-xml | |
14 | BuildRequires: libpthread-stubs | |
15 | BuildRequires: libtool >= 2:2.2 | |
16 | BuildRequires: libxslt-progs | |
17 | BuildRequires: pkgconfig | |
18 | BuildRequires: sed >= 4.0 | |
19 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10 | |
20 | Requires: xorg-lib-libpciaccess >= 0.10 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Userspace interface to kernel DRM services. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Interfejs przestrzeni użytkownika do usług DRM jądra. | |
28 | ||
29 | %package devel | |
30 | Summary: Header files for libdrm library | |
31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdrm | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | Header files for libdrm library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki libdrm. | |
40 | ||
41 | %package static | |
42 | Summary: Static libdrm library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka libdrm | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static libdrm library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka libdrm. | |
52 | ||
53 | %prep | |
54 | %setup -q | |
55 | ||
56 | %build | |
57 | %{__libtoolize} | |
58 | %{__aclocal} | |
59 | %{__autoconf} | |
60 | %{__autoheader} | |
61 | %{__automake} | |
62 | %configure \ | |
63 | --disable-silent-rules \ | |
64 | --enable-static \ | |
65 | %ifarch arm | |
66 | --enable-exynos-experimental-api \ | |
67 | --enable-omap-experimental-api \ | |
68 | %endif | |
69 | --enable-vmwgfx-experimental-api | |
70 | %{__make} | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %attr(755,root,root) %{_libdir}/libdrm.so.*.*.* | |
87 | %attr(755,root,root) %ghost %{_libdir}/libdrm.so.2 | |
88 | %attr(755,root,root) %{_libdir}/libdrm_intel.so.*.*.* | |
89 | %attr(755,root,root) %ghost %{_libdir}/libdrm_intel.so.1 | |
90 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so.*.*.* | |
91 | %attr(755,root,root) %ghost %{_libdir}/libdrm_nouveau.so.2 | |
92 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so.*.*.* | |
93 | %attr(755,root,root) %ghost %{_libdir}/libdrm_radeon.so.1 | |
94 | %ifarch arm | |
95 | %attr(755,root,root) %{_libdir}/libdrm_omap.so.*.*.* | |
96 | %attr(755,root,root) %ghost %{_libdir}/libdrm_omap.so.1 | |
97 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so.*.*.* | |
98 | %attr(755,root,root) %ghost %{_libdir}/libdrm_exynos.so.1 | |
99 | %endif | |
100 | %attr(755,root,root) %{_libdir}/libkms.so.*.*.* | |
101 | %attr(755,root,root) %ghost %{_libdir}/libkms.so.1 | |
102 | ||
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
105 | %attr(755,root,root) %{_libdir}/libdrm.so | |
106 | %attr(755,root,root) %{_libdir}/libdrm_intel.so | |
107 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so | |
108 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so | |
109 | %attr(755,root,root) %{_libdir}/libkms.so | |
110 | %{_libdir}/libdrm.la | |
111 | %{_libdir}/libdrm_intel.la | |
112 | %{_libdir}/libdrm_nouveau.la | |
113 | %{_libdir}/libdrm_radeon.la | |
114 | %{_libdir}/libkms.la | |
115 | %{_includedir}/libdrm | |
116 | %{_includedir}/libkms | |
117 | %{_includedir}/xf86drm.h | |
118 | %{_includedir}/xf86drmMode.h | |
119 | %{_pkgconfigdir}/libdrm.pc | |
120 | %{_pkgconfigdir}/libdrm_intel.pc | |
121 | %{_pkgconfigdir}/libdrm_nouveau.pc | |
122 | %{_pkgconfigdir}/libdrm_radeon.pc | |
123 | %{_pkgconfigdir}/libkms.pc | |
124 | %ifarch arm | |
125 | %attr(755,root,root) %{_libdir}/libdrm_exynos.so | |
126 | %attr(755,root,root) %{_libdir}/libdrm_omap.so | |
127 | %{_libdir}/libdrm_exynos.la | |
128 | %{_libdir}/libdrm_omap.la | |
129 | %{_includedir}/exynos | |
130 | %{_includedir}/omap | |
131 | %{_pkgconfigdir}/libdrm_exynos.pc | |
132 | %{_pkgconfigdir}/libdrm_omap.pc | |
133 | %endif | |
134 | %{_mandir}/man3/drm*.3* | |
135 | %{_mandir}/man7/drm*.7* | |
136 | ||
137 | %files static | |
138 | %defattr(644,root,root,755) | |
139 | %{_libdir}/libdrm.a | |
140 | %{_libdir}/libdrm_intel.a | |
141 | %{_libdir}/libdrm_nouveau.a | |
142 | %{_libdir}/libdrm_radeon.a | |
143 | %ifarch arm | |
144 | %{_libdir}/libdrm_exynos.a | |
145 | %{_libdir}/libdrm_omap.a | |
146 | %endif | |
147 | %{_libdir}/libkms.a |