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