libdrm-vl.spec 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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.27
  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.26-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_mode.h
  97. %{_includedir}/libdrm/drm_sarea.h
  98. %{_includedir}/libdrm/intel_bufmgr.h
  99. %{_includedir}/libdrm/intel_debug.h
  100. %{_includedir}/libdrm/radeon*.h
  101. %{_includedir}/libdrm/nouveau_drmif.h
  102. %{_includedir}/libdrm/*_drm.h
  103. %dir %{_includedir}/nouveau
  104. %{_includedir}/nouveau/nouveau_*.h
  105. %{_includedir}/nouveau/nv04_*.h
  106. %{_includedir}/nouveau/nvc0_pushbuf.h
  107. %dir %{_includedir}/libkms
  108. %{_includedir}/libkms/libkms.h
  109. %{_libdir}/libdrm.so
  110. %{_libdir}/libdrm_intel.so
  111. %{_libdir}/libdrm_radeon.so
  112. %{_libdir}/libdrm_nouveau.so
  113. %{_libdir}/libkms.so
  114. %{_libdir}/pkgconfig/libdrm.pc
  115. %{_libdir}/pkgconfig/libdrm_intel.pc
  116. %{_libdir}/pkgconfig/libdrm_radeon.pc
  117. %{_libdir}/pkgconfig/libdrm_nouveau.pc
  118. %{_libdir}/pkgconfig/libkms.pc
  119. # compat32
  120. %if %{build_compat32}
  121. %files -n compat32-%{name}
  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. %files -n compat32-%{name}-devel
  129. %defattr(-,root,root,-)
  130. %{_libdir}/libdrm.so
  131. %{_libdir}/libdrm_intel.so
  132. %{_libdir}/libdrm_radeon.so
  133. %{_libdir}/libdrm_nouveau.so
  134. %{_libdir}/libkms.so
  135. %{_libdir}/pkgconfig/libdrm.pc
  136. %{_libdir}/pkgconfig/libkms.pc
  137. %{_libdir}/pkgconfig/libdrm_intel.pc
  138. %{_libdir}/pkgconfig/libdrm_radeon.pc
  139. %{_libdir}/pkgconfig/libdrm_nouveau.pc
  140. %endif
  141. %changelog
  142. * Tue Nov 01 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.27-1
  143. - new upstream release
  144. * Sat Jul 09 2011 Yoji TOYODA <bsyamato@aea.plala.or.jp> 2.4.26-1
  145. - new upstream release
  146. - add BuildRequires: libpciaccess-devel
  147. - change BuildRequires: libudev-devel instead of udev
  148. - update Patch10
  149. * Mon May 16 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.25-2
  150. - add patch5 to build libkms with in-tree libdrm
  151. - add --enable-vmwgfx-experimental-api
  152. * Fri Apr 15 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.25-1
  153. - new upstream release
  154. * Sun Mar 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.24-2
  155. - fix %%files devel (add %%{_includedir}/nouveau/nvc0_pushbuf.h)
  156. * Sun Mar 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.24-1
  157. - new upstream release
  158. * Fri Jan 28 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.23-1
  159. - new upstream release
  160. * Thu Nov 25 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.22-1
  161. - new upstream release
  162. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.21-2
  163. - rebuild with rpm-4.8.1 for pkg-config file
  164. * Tue Aug 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.21-1
  165. - new upstream release
  166. * Fri Apr 30 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.20-1
  167. - new upstream release
  168. - move include files to new location which are not conflict with kernel.
  169. * Tue Mar 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-2
  170. - add libkms
  171. * Mon Mar 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.19-1
  172. - new upstream release
  173. * Thu Mar 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.18-1
  174. - new upstream release
  175. * Mon Jan 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.17-1
  176. - new upstream release
  177. * Sat Dec 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.16-1
  178. - new upstream release
  179. - drop Patch5
  180. - add BR: libatomic_ops-devel
  181. * Sat Nov 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-2
  182. - ad Patch5, pull in intel bo busy.
  183. * Fri Jul 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.12-1
  184. - new upstream release
  185. - drop upstream patch
  186. * Sun Jun 28 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.9-4
  187. - added compat32 package for x86_64 arch support
  188. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-3
  189. - add /dev/dri/card* rule to 91-drm-modeset.rules
  190. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-2
  191. - build libdrm_nouveau
  192. - add Patch9 to update nouveau code
  193. - move /etc/udev/rules.d/91-drm-modeset.rules to /lib/udev/rules.d/
  194. - remove i915modeset
  195. * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.9-1
  196. - new upstream release
  197. * Thu Apr 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.7-1
  198. - new upstream release
  199. * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.5-1
  200. - new upstream release
  201. * Thu Dec 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.3-1
  202. - new upstream release
  203. * Sat Dec 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-4
  204. - remove kernel header files from -devel package.
  205. - add BR: kernel-headers >= 2.6.27-1
  206. - add Requires; kernel-headers >= 2.6.27-1 to -devel package
  207. * Tue Oct 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-3
  208. - update to libdrm-2.4.0 release
  209. * Tue Jul 01 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-2.20080303
  210. - update to new git snapshot
  211. * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1
  212. - new versioning policy
  213. * Fri Jan 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl0.1
  214. - update to upstream snapshot
  215. * Thu Jan 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.0-0vl1
  216. - new upstream release
  217. * Wed Feb 15 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1
  218. - initial build for Vine Linux partially based on FC package
  219. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.0-2.2
  220. - bump again for double-long bug on ppc(64)
  221. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 2.0-2.1
  222. - rebuilt for new gcc4.1 snapshot and glibc changes
  223. * Wed Jan 11 2006 Mike A. Harris <mharris@redhat.com> 2.0-2
  224. - Replaced the temporary tongue-in-cheek humourous package summary and
  225. description with the proper package descriptions, as many people didn't get
  226. the joke, while others felt it was getting old. Ah well, I had my fun for
  227. a while anyway. ;o)
  228. * Wed Nov 30 2005 Mike A. Harris <mharris@redhat.com> 2.0-1
  229. - Updated libdrm to version 2.0 from dri.sf.net. This is an ABI incompatible
  230. release, meaning everything linked to it needs to be recompiled.
  231. * Tue Nov 01 2005 Mike A. Harris <mharris@redhat.com> 1.0.5-1
  232. - Updated libdrm to version 1.0.5 from dri.sf.net upstream to work around
  233. mesa unichrome dri driver compile failure.
  234. * Mon Oct 24 2005 Mike A. Harris <mharris@redhat.com> 1.0.4-1
  235. - Updated libdrm to version 1.0.4 from X11R7 RC1
  236. - Remove i915_drv.h, imagine_drv.h, mach64_drv.h, mga_drv.h, mga_ucode.h,
  237. r128_drv.h, radeon_drv.h, savage_drv.h, sis_drv.h, sis_ds.h, tdfx_drv.h,
  238. via_drv.h, via_ds.h, via_mm.h, via_verifier.h from file manifest.
  239. * Tue Oct 04 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-3
  240. - Update BuildRoot to use Fedora Packaging Guidelines.
  241. - Add missing "BuildRequires: libX11-devel, pkgconfig"
  242. * Thu Sep 29 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-2
  243. - Add missing documentation to doc macro
  244. - Fix spec file project URL
  245. * Sat Sep 03 2005 Mike A. Harris <mharris@redhat.com> 1.0.3-1
  246. - Initial build.