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