]>
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 |
75d4edce | 4 | Version: 2.4.34 |
24275852 | 5 | Release: 1 |
ae5c0e3f JB |
6 | License: MIT |
7 | Group: Libraries | |
ea609aa2 | 8 | Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 |
75d4edce | 9 | # Source0-md5: 293cb2b31392d52caa02ab0861dfc2c9 |
05a899bd | 10 | Patch0: %{name}-kms.patch |
ae5c0e3f | 11 | URL: http://dri.freedesktop.org/ |
ff8ca3fa JB |
12 | BuildRequires: autoconf >= 2.63 |
13 | BuildRequires: automake >= 1:1.10 | |
3b84a41e | 14 | BuildRequires: libpthread-stubs |
ff8ca3fa | 15 | BuildRequires: libtool >= 2:2.2 |
3b84a41e | 16 | BuildRequires: pkgconfig |
ff8ca3fa JB |
17 | BuildRequires: xorg-lib-libpciaccess-devel >= 0.10 |
18 | Requires: xorg-lib-libpciaccess >= 0.10 | |
ae5c0e3f JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Userspace interface to kernel DRM services. | |
23 | ||
1a90a525 JR |
24 | %description -l pl.UTF-8 |
25 | Interfejs przestrzeni użytkownika do usług DRM jądra. | |
ae5c0e3f JB |
26 | |
27 | %package devel | |
28 | Summary: Header files for libdrm library | |
0f3b1a92 | 29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdrm |
ae5c0e3f JB |
30 | Group: Development/Libraries |
31 | Requires: %{name} = %{version}-%{release} | |
32 | ||
33 | %description devel | |
34 | Header files for libdrm library. | |
35 | ||
1a90a525 JR |
36 | %description devel -l pl.UTF-8 |
37 | Pliki nagłówkowe biblioteki libdrm. | |
ae5c0e3f JB |
38 | |
39 | %package static | |
40 | Summary: Static libdrm library | |
0f3b1a92 | 41 | Summary(pl.UTF-8): Statyczna biblioteka libdrm |
ae5c0e3f JB |
42 | Group: Development/Libraries |
43 | Requires: %{name}-devel = %{version}-%{release} | |
44 | ||
45 | %description static | |
46 | Static libdrm library. | |
47 | ||
1a90a525 | 48 | %description static -l pl.UTF-8 |
ae5c0e3f JB |
49 | Statyczna biblioteka libdrm. |
50 | ||
51 | %prep | |
52 | %setup -q | |
05a899bd | 53 | %patch0 -p1 |
ae5c0e3f JB |
54 | |
55 | %build | |
63d6347e JB |
56 | %{__libtoolize} |
57 | %{__aclocal} | |
58 | %{__autoconf} | |
59 | %{__autoheader} | |
60 | %{__automake} | |
ea609aa2 | 61 | %configure \ |
ce57d5ee | 62 | --disable-silent-rules \ |
05a899bd | 63 | --enable-vmwgfx-experimental-api \ |
75d4edce | 64 | --enable-omap-experimental-api \ |
ea609aa2 | 65 | --enable-static |
ae5c0e3f JB |
66 | %{__make} |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %{__make} install \ | |
72 | DESTDIR=$RPM_BUILD_ROOT | |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post -p /sbin/ldconfig | |
78 | %postun -p /sbin/ldconfig | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %attr(755,root,root) %{_libdir}/libdrm.so.*.*.* | |
f4765dc5 | 83 | %attr(755,root,root) %ghost %{_libdir}/libdrm.so.2 |
205b48e9 | 84 | %attr(755,root,root) %{_libdir}/libdrm_intel.so.*.*.* |
f4765dc5 | 85 | %attr(755,root,root) %ghost %{_libdir}/libdrm_intel.so.1 |
2ce26aa4 | 86 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so.*.*.* |
75d4edce AM |
87 | %attr(755,root,root) %ghost %{_libdir}/libdrm_nouveau.so.2 |
88 | %attr(755,root,root) %{_libdir}/libdrm_omap.so.*.*.* | |
89 | %attr(755,root,root) %ghost %{_libdir}/libdrm_omap.so.1 | |
0db735c2 | 90 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so.*.*.* |
f4765dc5 | 91 | %attr(755,root,root) %ghost %{_libdir}/libdrm_radeon.so.1 |
ce57d5ee | 92 | %attr(755,root,root) %{_libdir}/libkms.so.*.*.* |
05a899bd | 93 | %attr(755,root,root) %ghost %{_libdir}/libkms.so.1 |
ae5c0e3f JB |
94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_libdir}/libdrm.so | |
205b48e9 | 98 | %attr(755,root,root) %{_libdir}/libdrm_intel.so |
2ce26aa4 | 99 | %attr(755,root,root) %{_libdir}/libdrm_nouveau.so |
75d4edce | 100 | %attr(755,root,root) %{_libdir}/libdrm_omap.so |
0db735c2 | 101 | %attr(755,root,root) %{_libdir}/libdrm_radeon.so |
05a899bd | 102 | %attr(755,root,root) %{_libdir}/libkms.so |
ae5c0e3f | 103 | %{_libdir}/libdrm.la |
205b48e9 | 104 | %{_libdir}/libdrm_intel.la |
2ce26aa4 | 105 | %{_libdir}/libdrm_nouveau.la |
75d4edce | 106 | %{_libdir}/libdrm_omap.la |
0db735c2 | 107 | %{_libdir}/libdrm_radeon.la |
05a899bd | 108 | %{_libdir}/libkms.la |
de673389 | 109 | %{_includedir}/libdrm |
05a899bd | 110 | %{_includedir}/libkms |
75d4edce | 111 | %{_includedir}/omap |
5783ce64 | 112 | %{_includedir}/xf86drm.h |
d1214479 | 113 | %{_includedir}/xf86drmMode.h |
ae5c0e3f | 114 | %{_pkgconfigdir}/libdrm.pc |
cfd6b9e4 | 115 | %{_pkgconfigdir}/libdrm_intel.pc |
2ce26aa4 | 116 | %{_pkgconfigdir}/libdrm_nouveau.pc |
75d4edce | 117 | %{_pkgconfigdir}/libdrm_omap.pc |
0db735c2 | 118 | %{_pkgconfigdir}/libdrm_radeon.pc |
05a899bd | 119 | %{_pkgconfigdir}/libkms.pc |
ae5c0e3f JB |
120 | |
121 | %files static | |
122 | %defattr(644,root,root,755) | |
123 | %{_libdir}/libdrm.a | |
205b48e9 | 124 | %{_libdir}/libdrm_intel.a |
2ce26aa4 | 125 | %{_libdir}/libdrm_nouveau.a |
75d4edce | 126 | %{_libdir}/libdrm_omap.a |
0db735c2 | 127 | %{_libdir}/libdrm_radeon.a |
05a899bd | 128 | %{_libdir}/libkms.a |