libdrm-vl.spec 10 KB

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