[521] | 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 |
---|
[582] | 6 | Version: 2.4.19 |
---|
[648] | 7 | Release: 2%{?_dist_release} |
---|
[521] | 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.* |
---|
[648] | 102 | %{_libdir}/libkms.so.* |
---|
[521] | 103 | /lib/udev/rules.d/91-drm-modeset.rules |
---|
| 104 | |
---|
| 105 | %files devel |
---|
| 106 | %defattr(-,root,root,-) |
---|
| 107 | %dir %{_includedir}/drm |
---|
[648] | 108 | %dir %{_includedir}/nouveau |
---|
| 109 | %dir %{_includedir}/libkms |
---|
[521] | 110 | # FIXME should be in drm/ too |
---|
| 111 | %{_includedir}/xf86drm.h |
---|
| 112 | %{_includedir}/xf86drmMode.h |
---|
| 113 | %{_includedir}/intel_bufmgr.h |
---|
| 114 | %{_includedir}/drm/radeon*.h |
---|
| 115 | %{_includedir}/drm/nouveau_*.h |
---|
| 116 | %{_includedir}/nouveau/nouveau_*.h |
---|
[648] | 117 | %{_includedir}/libkms/libkms.h |
---|
[521] | 118 | %{_libdir}/libdrm.so |
---|
| 119 | %{_libdir}/libdrm_intel.so |
---|
| 120 | %{_libdir}/libdrm_radeon.so |
---|
| 121 | %{_libdir}/libdrm_nouveau.so |
---|
[648] | 122 | %{_libdir}/libkms.so |
---|
[521] | 123 | %{_libdir}/pkgconfig/libdrm.pc |
---|
| 124 | %{_libdir}/pkgconfig/libdrm_intel.pc |
---|
| 125 | %{_libdir}/pkgconfig/libdrm_radeon.pc |
---|
| 126 | %{_libdir}/pkgconfig/libdrm_nouveau.pc |
---|
[648] | 127 | %{_libdir}/pkgconfig/libkms.pc |
---|
[521] | 128 | |
---|
| 129 | # compat32 |
---|
| 130 | %if %{build_compat32} |
---|
| 131 | %files -n compat32-%{name} |
---|
| 132 | %defattr(-,root,root,-) |
---|
| 133 | %{_libdir}/libdrm.so.* |
---|
| 134 | %{_libdir}/libdrm_intel.so.* |
---|
| 135 | %{_libdir}/libdrm_radeon.so.* |
---|
| 136 | %{_libdir}/libdrm_nouveau.so.* |
---|
| 137 | |
---|
| 138 | %files -n compat32-%{name}-devel |
---|
| 139 | %defattr(-,root,root,-) |
---|
| 140 | %{_libdir}/libdrm.so |
---|
| 141 | %{_libdir}/libdrm_intel.so |
---|
| 142 | %{_libdir}/libdrm_radeon.so |
---|
| 143 | %{_libdir}/libdrm_nouveau.so |
---|
| 144 | %{_libdir}/pkgconfig/libdrm.pc |
---|
| 145 | %{_libdir}/pkgconfig/libdrm_intel.pc |
---|
| 146 | %{_libdir}/pkgconfig/libdrm_radeon.pc |
---|
| 147 | %{_libdir}/pkgconfig/libdrm_nouveau.pc |
---|
| 148 | %endif |
---|
| 149 | |
---|
| 150 | %changelog |
---|
[648] | 151 | * Tue Mar 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-2 |
---|
| 152 | - add libkms |
---|
| 153 | |
---|
[582] | 154 | * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-1 |
---|
| 155 | - new upstream release |
---|
| 156 | |
---|
[537] | 157 | * Thu Mar 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.18-1 |
---|
| 158 | - new upstream release |
---|
| 159 | |
---|
[521] | 160 | * Mon Jan 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.17-1 |
---|
| 161 | - new upstream release |
---|
| 162 | |
---|
| 163 | * Sat Dec 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.16-1 |
---|
| 164 | - new upstream release |
---|
| 165 | - drop Patch5 |
---|
| 166 | - add BR: libatomic_ops-devel |
---|
| 167 | |
---|
| 168 | * Sat Nov 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-2 |
---|
| 169 | - ad Patch5, pull in intel bo busy. |
---|
| 170 | |
---|
| 171 | * Fri Jul 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-1 |
---|
| 172 | - new upstream release |
---|
| 173 | - drop upstream patch |
---|
| 174 | |
---|
| 175 | * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.9-4 |
---|
| 176 | - added compat32 package for x86_64 arch support |
---|
| 177 | |
---|
| 178 | * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-3 |
---|
| 179 | - add /dev/dri/card* rule to 91-drm-modeset.rules |
---|
| 180 | |
---|
| 181 | * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-2 |
---|
| 182 | - build libdrm_nouveau |
---|
| 183 | - add Patch9 to update nouveau code |
---|
| 184 | - move /etc/udev/rules.d/91-drm-modeset.rules to /lib/udev/rules.d/ |
---|
| 185 | - remove i915modeset |
---|
| 186 | |
---|
| 187 | * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-1 |
---|
| 188 | - new upstream release |
---|
| 189 | |
---|
| 190 | * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.7-1 |
---|
| 191 | - new upstream release |
---|
| 192 | |
---|
| 193 | * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-1 |
---|
| 194 | - new upstream release |
---|
| 195 | |
---|
| 196 | * Thu Dec 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.3-1 |
---|
| 197 | - new upstream release |
---|
| 198 | |
---|
| 199 | * Sat Dec 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-4 |
---|
| 200 | - remove kernel header files from -devel package. |
---|
| 201 | - add BR: kernel-headers >= 2.6.27-1 |
---|
| 202 | - add Requires; kernel-headers >= 2.6.27-1 to -devel package |
---|
| 203 | |
---|
| 204 | * Tue Oct 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-3 |
---|
| 205 | - update to libdrm-2.4.0 release |
---|
| 206 | |
---|
| 207 | * Tue Jul 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-2.20080303 |
---|
| 208 | - update to new git snapshot |
---|
| 209 | |
---|
| 210 | * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1 |
---|
| 211 | - new versioning policy |
---|
| 212 | |
---|
| 213 | * Fri Jan 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl0.1 |
---|
| 214 | - update to upstream snapshot |
---|
| 215 | |
---|
| 216 | * Thu Jan 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.0-0vl1 |
---|
| 217 | - new upstream release |
---|
| 218 | |
---|
| 219 | * Wed Feb 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1 |
---|
| 220 | - initial build for Vine Linux partially based on FC package |
---|
| 221 | |
---|
| 222 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.0-2.2 |
---|
| 223 | - bump again for double-long bug on ppc(64) |
---|
| 224 | |
---|
| 225 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 2.0-2.1 |
---|
| 226 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
| 227 | |
---|
| 228 | * Wed Jan 11 2006 Mike A. Harris <mharris@redhat.com> 2.0-2 |
---|
| 229 | - Replaced the temporary tongue-in-cheek humourous package summary and |
---|
| 230 | description with the proper package descriptions, as many people didn't get |
---|
| 231 | the joke, while others felt it was getting old. Ah well, I had my fun for |
---|
| 232 | a while anyway. ;o) |
---|
| 233 | |
---|
| 234 | * Wed Nov 30 2005 Mike A. Harris <mharris@redhat.com> 2.0-1 |
---|
| 235 | - Updated libdrm to version 2.0 from dri.sf.net. This is an ABI incompatible |
---|
| 236 | release, meaning everything linked to it needs to be recompiled. |
---|
| 237 | |
---|
| 238 | * Tue Nov 01 2005 Mike A. Harris <mharris@redhat.com> 1.0.5-1 |
---|
| 239 | - Updated libdrm to version 1.0.5 from dri.sf.net upstream to work around |
---|
| 240 | mesa unichrome dri driver compile failure. |
---|
| 241 | |
---|
| 242 | * Mon Oct 24 2005 Mike A. Harris <mharris@redhat.com> 1.0.4-1 |
---|
| 243 | - Updated libdrm to version 1.0.4 from X11R7 RC1 |
---|
| 244 | - Remove i915_drv.h, imagine_drv.h, mach64_drv.h, mga_drv.h, mga_ucode.h, |
---|
| 245 | r128_drv.h, radeon_drv.h, savage_drv.h, sis_drv.h, sis_ds.h, tdfx_drv.h, |
---|
| 246 | via_drv.h, via_ds.h, via_mm.h, via_verifier.h from file manifest. |
---|
| 247 | |
---|
| 248 | * Tue Oct 04 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-3 |
---|
| 249 | - Update BuildRoot to use Fedora Packaging Guidelines. |
---|
| 250 | - Add missing "BuildRequires: libX11-devel, pkgconfig" |
---|
| 251 | |
---|
| 252 | * Thu Sep 29 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-2 |
---|
| 253 | - Add missing documentation to doc macro |
---|
| 254 | - Fix spec file project URL |
---|
| 255 | |
---|
| 256 | * Sat Sep 03 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-1 |
---|
| 257 | - Initial build. |
---|