1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: Direct Rendering Manager runtime library |
---|
4 | Summary(ja): Direct Rendering Manager ランタイムライブラリ |
---|
5 | Name: libdrm |
---|
6 | Version: 2.4.19 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | License: MIT |
---|
9 | Group: System Environment/Libraries |
---|
10 | URL: http://dri.sourceforge.net |
---|
11 | Source0: http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.bz2 |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
13 | |
---|
14 | BuildRequires: pkgconfig automake autoconf libtool |
---|
15 | BuildRequires: libxcb-devel |
---|
16 | BuildRequires: udev |
---|
17 | BuildRequires: kernel-headers >= 2.6.27-1 |
---|
18 | |
---|
19 | Source2: 91-drm-modeset.rules |
---|
20 | |
---|
21 | Patch3: libdrm-make-dri-perms-okay.patch |
---|
22 | |
---|
23 | Patch10: libdrm-2.4.16-no-pthread-stubs.patch |
---|
24 | |
---|
25 | %description |
---|
26 | Direct Rendering Manager runtime library |
---|
27 | |
---|
28 | %package devel |
---|
29 | Summary: Direct Rendering Manager development package |
---|
30 | Summary(ja): Direct Rendering Manager 開発パッケージ |
---|
31 | Group: Development/Libraries |
---|
32 | Requires: %{name} = %{version}-%{release} |
---|
33 | Requires: kernel-headers >= 2.6.27-7 |
---|
34 | |
---|
35 | %description devel |
---|
36 | Direct Rendering Manager development package |
---|
37 | |
---|
38 | # compat32 |
---|
39 | %package -n compat32-%{name} |
---|
40 | Summary: Direct Rendering Manager runtime library |
---|
41 | Summary(ja): Direct Rendering Manager ランタイムライブラリ |
---|
42 | Group: System Environment/Libraries |
---|
43 | Requires: %{name} = %{version}-%{release} |
---|
44 | |
---|
45 | %description -n compat32-%{name} |
---|
46 | Direct Rendering Manager runtime library |
---|
47 | |
---|
48 | %package -n compat32-%{name}-devel |
---|
49 | Summary: Direct Rendering Manager development package |
---|
50 | Summary(ja): Direct Rendering Manager 開発パッケージ |
---|
51 | Group: Development/Libraries |
---|
52 | Requires: compat32-%{name} = %{version}-%{release} |
---|
53 | Requires: %{name}-devel = %{version}-%{release} |
---|
54 | |
---|
55 | %description -n compat32-%{name}-devel |
---|
56 | Direct Rendering Manager development package |
---|
57 | |
---|
58 | %prep |
---|
59 | %setup -q |
---|
60 | %patch3 -p1 -b .forceperms |
---|
61 | %patch10 -p1 -b .no-pthread-stubs |
---|
62 | |
---|
63 | %build |
---|
64 | autoreconf -v --install || exit 1 |
---|
65 | %configure \ |
---|
66 | --enable-udev \ |
---|
67 | --enable-intel \ |
---|
68 | --enable-radeon-experimental-api \ |
---|
69 | --enable-nouveau-experimental-api |
---|
70 | make |
---|
71 | |
---|
72 | %install |
---|
73 | rm -rf $RPM_BUILD_ROOT |
---|
74 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
75 | mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/ |
---|
76 | install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT/lib/udev/rules.d/ |
---|
77 | |
---|
78 | # NOTE: We intentionally don't ship *.la files |
---|
79 | find $RPM_BUILD_ROOT -type f -name '*.la' | xargs rm -f -- || : |
---|
80 | find $RPM_BUILD_ROOT -type f -name '*_drm.h' | xargs rm -f -- || : |
---|
81 | for i in drm.h drm_mode.h drm_sarea.h r300_reg.h via_3d_reg.h |
---|
82 | do |
---|
83 | rm -f $RPM_BUILD_ROOT/usr/include/drm/$i |
---|
84 | done |
---|
85 | |
---|
86 | %clean |
---|
87 | rm -rf $RPM_BUILD_ROOT |
---|
88 | |
---|
89 | %post -p /sbin/ldconfig |
---|
90 | %postun -p /sbin/ldconfig |
---|
91 | |
---|
92 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
93 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
94 | |
---|
95 | %files |
---|
96 | %defattr(-,root,root,-) |
---|
97 | %doc README |
---|
98 | %{_libdir}/libdrm.so.* |
---|
99 | %{_libdir}/libdrm_intel.so.* |
---|
100 | %{_libdir}/libdrm_radeon.so.* |
---|
101 | %{_libdir}/libdrm_nouveau.so.* |
---|
102 | /lib/udev/rules.d/91-drm-modeset.rules |
---|
103 | |
---|
104 | %files devel |
---|
105 | %defattr(-,root,root,-) |
---|
106 | %dir %{_includedir}/drm |
---|
107 | # FIXME should be in drm/ too |
---|
108 | %{_includedir}/xf86drm.h |
---|
109 | %{_includedir}/xf86drmMode.h |
---|
110 | %{_includedir}/intel_bufmgr.h |
---|
111 | %{_includedir}/drm/radeon*.h |
---|
112 | %{_includedir}/drm/nouveau_*.h |
---|
113 | %{_includedir}/nouveau/nouveau_*.h |
---|
114 | %{_libdir}/libdrm.so |
---|
115 | %{_libdir}/libdrm_intel.so |
---|
116 | %{_libdir}/libdrm_radeon.so |
---|
117 | %{_libdir}/libdrm_nouveau.so |
---|
118 | %{_libdir}/pkgconfig/libdrm.pc |
---|
119 | %{_libdir}/pkgconfig/libdrm_intel.pc |
---|
120 | %{_libdir}/pkgconfig/libdrm_radeon.pc |
---|
121 | %{_libdir}/pkgconfig/libdrm_nouveau.pc |
---|
122 | |
---|
123 | # compat32 |
---|
124 | %if %{build_compat32} |
---|
125 | %files -n compat32-%{name} |
---|
126 | %defattr(-,root,root,-) |
---|
127 | %{_libdir}/libdrm.so.* |
---|
128 | %{_libdir}/libdrm_intel.so.* |
---|
129 | %{_libdir}/libdrm_radeon.so.* |
---|
130 | %{_libdir}/libdrm_nouveau.so.* |
---|
131 | |
---|
132 | %files -n compat32-%{name}-devel |
---|
133 | %defattr(-,root,root,-) |
---|
134 | %{_libdir}/libdrm.so |
---|
135 | %{_libdir}/libdrm_intel.so |
---|
136 | %{_libdir}/libdrm_radeon.so |
---|
137 | %{_libdir}/libdrm_nouveau.so |
---|
138 | %{_libdir}/pkgconfig/libdrm.pc |
---|
139 | %{_libdir}/pkgconfig/libdrm_intel.pc |
---|
140 | %{_libdir}/pkgconfig/libdrm_radeon.pc |
---|
141 | %{_libdir}/pkgconfig/libdrm_nouveau.pc |
---|
142 | %endif |
---|
143 | |
---|
144 | %changelog |
---|
145 | * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-1 |
---|
146 | - new upstream release |
---|
147 | |
---|
148 | * Thu Mar 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.18-1 |
---|
149 | - new upstream release |
---|
150 | |
---|
151 | * Mon Jan 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.17-1 |
---|
152 | - new upstream release |
---|
153 | |
---|
154 | * Sat Dec 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.16-1 |
---|
155 | - new upstream release |
---|
156 | - drop Patch5 |
---|
157 | - add BR: libatomic_ops-devel |
---|
158 | |
---|
159 | * Sat Nov 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-2 |
---|
160 | - ad Patch5, pull in intel bo busy. |
---|
161 | |
---|
162 | * Fri Jul 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-1 |
---|
163 | - new upstream release |
---|
164 | - drop upstream patch |
---|
165 | |
---|
166 | * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.9-4 |
---|
167 | - added compat32 package for x86_64 arch support |
---|
168 | |
---|
169 | * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-3 |
---|
170 | - add /dev/dri/card* rule to 91-drm-modeset.rules |
---|
171 | |
---|
172 | * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-2 |
---|
173 | - build libdrm_nouveau |
---|
174 | - add Patch9 to update nouveau code |
---|
175 | - move /etc/udev/rules.d/91-drm-modeset.rules to /lib/udev/rules.d/ |
---|
176 | - remove i915modeset |
---|
177 | |
---|
178 | * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-1 |
---|
179 | - new upstream release |
---|
180 | |
---|
181 | * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.7-1 |
---|
182 | - new upstream release |
---|
183 | |
---|
184 | * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-1 |
---|
185 | - new upstream release |
---|
186 | |
---|
187 | * Thu Dec 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.3-1 |
---|
188 | - new upstream release |
---|
189 | |
---|
190 | * Sat Dec 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-4 |
---|
191 | - remove kernel header files from -devel package. |
---|
192 | - add BR: kernel-headers >= 2.6.27-1 |
---|
193 | - add Requires; kernel-headers >= 2.6.27-1 to -devel package |
---|
194 | |
---|
195 | * Tue Oct 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-3 |
---|
196 | - update to libdrm-2.4.0 release |
---|
197 | |
---|
198 | * Tue Jul 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-2.20080303 |
---|
199 | - update to new git snapshot |
---|
200 | |
---|
201 | * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1 |
---|
202 | - new versioning policy |
---|
203 | |
---|
204 | * Fri Jan 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl0.1 |
---|
205 | - update to upstream snapshot |
---|
206 | |
---|
207 | * Thu Jan 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.0-0vl1 |
---|
208 | - new upstream release |
---|
209 | |
---|
210 | * Wed Feb 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1 |
---|
211 | - initial build for Vine Linux partially based on FC package |
---|
212 | |
---|
213 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.0-2.2 |
---|
214 | - bump again for double-long bug on ppc(64) |
---|
215 | |
---|
216 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 2.0-2.1 |
---|
217 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
218 | |
---|
219 | * Wed Jan 11 2006 Mike A. Harris <mharris@redhat.com> 2.0-2 |
---|
220 | - Replaced the temporary tongue-in-cheek humourous package summary and |
---|
221 | description with the proper package descriptions, as many people didn't get |
---|
222 | the joke, while others felt it was getting old. Ah well, I had my fun for |
---|
223 | a while anyway. ;o) |
---|
224 | |
---|
225 | * Wed Nov 30 2005 Mike A. Harris <mharris@redhat.com> 2.0-1 |
---|
226 | - Updated libdrm to version 2.0 from dri.sf.net. This is an ABI incompatible |
---|
227 | release, meaning everything linked to it needs to be recompiled. |
---|
228 | |
---|
229 | * Tue Nov 01 2005 Mike A. Harris <mharris@redhat.com> 1.0.5-1 |
---|
230 | - Updated libdrm to version 1.0.5 from dri.sf.net upstream to work around |
---|
231 | mesa unichrome dri driver compile failure. |
---|
232 | |
---|
233 | * Mon Oct 24 2005 Mike A. Harris <mharris@redhat.com> 1.0.4-1 |
---|
234 | - Updated libdrm to version 1.0.4 from X11R7 RC1 |
---|
235 | - Remove i915_drv.h, imagine_drv.h, mach64_drv.h, mga_drv.h, mga_ucode.h, |
---|
236 | r128_drv.h, radeon_drv.h, savage_drv.h, sis_drv.h, sis_ds.h, tdfx_drv.h, |
---|
237 | via_drv.h, via_ds.h, via_mm.h, via_verifier.h from file manifest. |
---|
238 | |
---|
239 | * Tue Oct 04 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-3 |
---|
240 | - Update BuildRoot to use Fedora Packaging Guidelines. |
---|
241 | - Add missing "BuildRequires: libX11-devel, pkgconfig" |
---|
242 | |
---|
243 | * Thu Sep 29 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-2 |
---|
244 | - Add missing documentation to doc macro |
---|
245 | - Fix spec file project URL |
---|
246 | |
---|
247 | * Sat Sep 03 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-1 |
---|
248 | - Initial build. |
---|