1d92dae58fef40a02b997180f2f1b90697a2d039
[adaptation/panda/libdrm.git] / libdrm.spec
1 Name:       libdrm
2 Summary:    Userspace interface to kernel DRM services -- runtime
3 Version:    2.4.39
4 Release:    11.1
5 Group:      libs
6 License:    MIT 
7 Source0:    libdrm-%{version}.tar.bz2
8 Patch0:     0001-Adding-slp-subpackage.patch
9 Patch1:     0002-Adding-changes-to-configure.ac.patch
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 BuildRequires:  pkgconfig(x11)
13 BuildRequires:  pkgconfig(pthread-stubs)
14 BuildRequires:  pkgconfig(pciaccess)
15 BuildRequires:  automake
16 BuildRequires:  libtool
17
18
19 %description
20 Userspace interface to kernel DRM services -- runtime
21  This library implements the userspace interface to the kernel DRM
22  services.  DRM stands for "Direct Rendering Manager", which is the
23  kernelspace portion of the "Direct Rendering Infrastructure" (DRI).
24  The DRI is currently used on Linux to provide hardware-accelerated
25  OpenGL drivers.
26  .
27  This package provides the runtime environment for libdrm..
28
29
30
31 %package devel
32 Summary:    Userspace interface to kernel DRM services -- development files
33 Group:      libdevel
34 Requires:   libdrm = %{version}-%{release}
35 Obsoletes:   linux-libc-dev >= 2.6.29
36
37 %description devel
38 Userspace interface to kernel DRM services -- development files
39  This library implements the userspace interface to the kernel DRM
40  services.  DRM stands for "Direct Rendering Manager", which is the
41  kernelspace portion of the "Direct Rendering Infrastructure" (DRI).
42  The DRI is currently used on Linux to provide hardware-accelerated
43  OpenGL drivers.
44  .
45  This package provides the development environment for libdrm..
46
47 %package slp1
48 Summary:        Userspace interface to slp-specific kernel DRM services
49 Group:          Development/Libraries
50
51 %description slp1
52 Userspace interface to slp-specific kernel DRM services
53
54
55 %package -n libkms
56 Summary:    Userspace interface to kernel DRM buffer management
57 Group:      libs
58 Requires(post): /sbin/ldconfig
59 Requires(postun): /sbin/ldconfig
60
61 %description -n libkms
62 Userspace interface to kernel DRM buffer management
63  This library implements a unified userspace interface to the different buffer
64  management interfaces of the kernel DRM hardware drivers..
65
66 %prep
67 %setup -q -n %{name}-%{version}
68
69 %patch0 -p1
70 %patch1 -p1
71
72 %build
73 %configure --disable-static --enable-nouveau-experimental-api --enable-omap-experimental-api
74 make %{?jobs:-j%jobs}
75
76 %install
77 rm -rf %{buildroot}
78 %make_install
79
80 %post -p /sbin/ldconfig
81
82 %postun -p /sbin/ldconfig
83
84 %post -n libkms -p /sbin/ldconfig
85
86 %postun -n libkms -p /sbin/ldconfig
87
88 %files
89 %defattr(-,root,root,-)
90 %{_libdir}/libdrm.so.*
91 %{_libdir}/libdrm_omap.so.*
92 %{_libdir}/libdrm_radeon.so.*
93 %{_libdir}/libdrm_nouveau.so.*
94
95 %files devel
96 %defattr(-,root,root,-)
97 %{_includedir}/libdrm/*
98 %{_includedir}/xf86drmMode.h
99 %{_includedir}/xf86drm.h
100 %{_includedir}/libkms/*
101 %{_includedir}/omap/*
102
103 %{_libdir}/lib*.so
104 %{_libdir}/pkgconfig/*
105
106 %files slp1
107 %{_libdir}/libdrm_slp*.so.*
108
109 %files -n libkms
110 %defattr(-,root,root,-)
111 %{_libdir}/libkms.so.*
112
113 %changelog
114 * Mon Oct 22 2012 tracy.graydon@intel.com
115 - Branching for 1.0alpha
116 * Mon Aug 13 2012 Quanxian Wang <quanxian.wang@intel.com> - 2.4.37
117 - Updating to 2.4.37
118 * Tue Jun 12 2012 Rusty Lynch <rusty.lynch@intel.com> - 2.4.34-3-gc563db0
119 - Updating to new git master snapshot
120 * Fri May  4 2012 Lin Yang <lin.a.yang@intel.com>
121 - test release infrastructure