HS Files added for IVI ARM release
[adaptation/panda/libdrm.git] / libdrm-2.4.39 / packaging / libdrm.spec
1 Name:       libdrm
2 Summary:    Userspace interface to kernel DRM services -- runtime
3 Version:    2.4.39
4 Release:    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
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_intel.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
102 %{_libdir}/lib*.so
103 %{_libdir}/pkgconfig/*
104
105 %files slp1
106 %{_libdir}/libdrm_slp*.so.*
107
108 %files -n libkms
109 %defattr(-,root,root,-)
110 %{_libdir}/libkms.so.*
111