libdrm-vl.spec 8.8 KB

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