[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 |
---|
[1595] | 6 | Version: 2.4.21 |
---|
[1901] | 7 | Release: 2%{?_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 |
---|
[1901] | 159 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.21-2 |
---|
| 160 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 161 | |
---|
[1595] | 162 | * Tue Aug 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.21-1 |
---|
| 163 | - new upstream release |
---|
| 164 | |
---|
[908] | 165 | * Fri Apr 30 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.20-1 |
---|
| 166 | - new upstream release |
---|
| 167 | - move include files to new location which are not conflict with kernel. |
---|
| 168 | |
---|
[648] | 169 | * Tue Mar 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-2 |
---|
| 170 | - add libkms |
---|
| 171 | |
---|
[582] | 172 | * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-1 |
---|
| 173 | - new upstream release |
---|
| 174 | |
---|
[537] | 175 | * Thu Mar 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.18-1 |
---|
| 176 | - new upstream release |
---|
| 177 | |
---|
[521] | 178 | * Mon Jan 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.17-1 |
---|
| 179 | - new upstream release |
---|
| 180 | |
---|
| 181 | * Sat Dec 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.16-1 |
---|
| 182 | - new upstream release |
---|
| 183 | - drop Patch5 |
---|
| 184 | - add BR: libatomic_ops-devel |
---|
| 185 | |
---|
| 186 | * Sat Nov 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-2 |
---|
| 187 | - ad Patch5, pull in intel bo busy. |
---|
| 188 | |
---|
| 189 | * Fri Jul 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-1 |
---|
| 190 | - new upstream release |
---|
| 191 | - drop upstream patch |
---|
| 192 | |
---|
| 193 | * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.9-4 |
---|
| 194 | - added compat32 package for x86_64 arch support |
---|
| 195 | |
---|
| 196 | * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-3 |
---|
| 197 | - add /dev/dri/card* rule to 91-drm-modeset.rules |
---|
| 198 | |
---|
| 199 | * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-2 |
---|
| 200 | - build libdrm_nouveau |
---|
| 201 | - add Patch9 to update nouveau code |
---|
| 202 | - move /etc/udev/rules.d/91-drm-modeset.rules to /lib/udev/rules.d/ |
---|
| 203 | - remove i915modeset |
---|
| 204 | |
---|
| 205 | * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-1 |
---|
| 206 | - new upstream release |
---|
| 207 | |
---|
| 208 | * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.7-1 |
---|
| 209 | - new upstream release |
---|
| 210 | |
---|
| 211 | * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-1 |
---|
| 212 | - new upstream release |
---|
| 213 | |
---|
| 214 | * Thu Dec 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.3-1 |
---|
| 215 | - new upstream release |
---|
| 216 | |
---|
| 217 | * Sat Dec 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-4 |
---|
| 218 | - remove kernel header files from -devel package. |
---|
| 219 | - add BR: kernel-headers >= 2.6.27-1 |
---|
| 220 | - add Requires; kernel-headers >= 2.6.27-1 to -devel package |
---|
| 221 | |
---|
| 222 | * Tue Oct 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-3 |
---|
| 223 | - update to libdrm-2.4.0 release |
---|
| 224 | |
---|
| 225 | * Tue Jul 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-2.20080303 |
---|
| 226 | - update to new git snapshot |
---|
| 227 | |
---|
| 228 | * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1 |
---|
| 229 | - new versioning policy |
---|
| 230 | |
---|
| 231 | * Fri Jan 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl0.1 |
---|
| 232 | - update to upstream snapshot |
---|
| 233 | |
---|
| 234 | * Thu Jan 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.0-0vl1 |
---|
| 235 | - new upstream release |
---|
| 236 | |
---|
| 237 | * Wed Feb 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1 |
---|
| 238 | - initial build for Vine Linux partially based on FC package |
---|
| 239 | |
---|
| 240 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.0-2.2 |
---|
| 241 | - bump again for double-long bug on ppc(64) |
---|
| 242 | |
---|
| 243 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 2.0-2.1 |
---|
| 244 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
| 245 | |
---|
| 246 | * Wed Jan 11 2006 Mike A. Harris <mharris@redhat.com> 2.0-2 |
---|
| 247 | - Replaced the temporary tongue-in-cheek humourous package summary and |
---|
| 248 | description with the proper package descriptions, as many people didn't get |
---|
| 249 | the joke, while others felt it was getting old. Ah well, I had my fun for |
---|
| 250 | a while anyway. ;o) |
---|
| 251 | |
---|
| 252 | * Wed Nov 30 2005 Mike A. Harris <mharris@redhat.com> 2.0-1 |
---|
| 253 | - Updated libdrm to version 2.0 from dri.sf.net. This is an ABI incompatible |
---|
| 254 | release, meaning everything linked to it needs to be recompiled. |
---|
| 255 | |
---|
| 256 | * Tue Nov 01 2005 Mike A. Harris <mharris@redhat.com> 1.0.5-1 |
---|
| 257 | - Updated libdrm to version 1.0.5 from dri.sf.net upstream to work around |
---|
| 258 | mesa unichrome dri driver compile failure. |
---|
| 259 | |
---|
| 260 | * Mon Oct 24 2005 Mike A. Harris <mharris@redhat.com> 1.0.4-1 |
---|
| 261 | - Updated libdrm to version 1.0.4 from X11R7 RC1 |
---|
| 262 | - Remove i915_drv.h, imagine_drv.h, mach64_drv.h, mga_drv.h, mga_ucode.h, |
---|
| 263 | r128_drv.h, radeon_drv.h, savage_drv.h, sis_drv.h, sis_ds.h, tdfx_drv.h, |
---|
| 264 | via_drv.h, via_ds.h, via_mm.h, via_verifier.h from file manifest. |
---|
| 265 | |
---|
| 266 | * Tue Oct 04 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-3 |
---|
| 267 | - Update BuildRoot to use Fedora Packaging Guidelines. |
---|
| 268 | - Add missing "BuildRequires: libX11-devel, pkgconfig" |
---|
| 269 | |
---|
| 270 | * Thu Sep 29 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-2 |
---|
| 271 | - Add missing documentation to doc macro |
---|
| 272 | - Fix spec file project URL |
---|
| 273 | |
---|
| 274 | * Sat Sep 03 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-1 |
---|
| 275 | - Initial build. |
---|