libdrm-vl.spec 9.9 KB

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