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