libdrm-vl.spec 8.1 KB

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