libdrm-vl.spec 8.8 KB

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