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